1. yes
2. yes, BUT I'd recommend to not use kernel modules for iptables, build all iptables modules static into your kernel
3. you can redirect whatever to whatever (as long as there'e no IP-conflict), SNAT and DNAT are your friends here
4. (don't know what you mean here)
5. iptables -L -n -t nat && iptables -L -n -t mangle
6. hmm, not shure here, simply test it
AFAIK the kernel at least will not catch the packets destinied for forwarding (e.g. all those you want to NAT)
why would you not simply use MASQUERADING instead of [SD]NAT? makes things simpler ...
Main Topics
Browse All Topics





by: telmanPosted on 2004-07-26 at 14:36:08ID: 11641885
iptables -A PREROUTING -i eth0 -t nat -p tcp -s 0/0 -d <Public_ip_1> --dport 25 -j DNAT --to-destination <Public_ip_2>:25
Public_ip_1 & Public_ip_2 are located behind firewall but they are public ip address.
Telman