I have 3 interface(2 wan, 1 local) and enabled forward, but only one incoming interface(ppp0) can to local destination, the following is my iptable command:
iptables -t nat -A PREROUTING -i ppp0 -p tcp -m multiport --destination-ports 80,443 -j DNAT --to 10.66.66.253
iptables -t nat -A PREROUTING -i eth1 -p tcp -m multiport --destination-ports 80,443 -j DNAT --to 10.66.66.253
############
How can I do let eth1 incoming to destination?
Here is my ip rules and rt_tables:
root@net:~# ip rule
0: from all lookup local
32762: from all fwmark 0x2 lookup int0.out
32763: from all fwmark 0x1 lookup ext0.out
32764: from all to 61.x.x.x lookup ext0.out
32765: from 61.x.x.x lookup ext0.out
32766: from all lookup main
32767: from all lookup default
root@net:~# ip route show table int0.out
default via 168.x.x.254 dev ppp0
10.66.66.0/24 dev eth2 scope link src 10.66.66.254
root@net:~# ip route show table ext0.out
default via 61.x.x.254 dev eth1
10.66.66.0/24 dev eth2 scope link src 10.66.66.254
What did I miss(-understand)?
Thanks for any help!