question about -t nat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello list-users,

i want clean up my pre- and postrouting chains with rules like this:

iptables -t nat -A PREROUTING -i eth0 -j first_group
iptables -t nat -A PREROUTING -i eth1 -j second_group

iptables -t nat first_group -s a.b.c.d -d x/y -p tcp --sport
1024:65535 --dport 10001 -j DNAT --to-destination 1.2.3.4:25
iptables -t nat second_group -s a.b.c.d -d x/y -p tcp --sport
1024:65535 --dport 10002 -j DNAT --to-destination 4.5.6.7:25

is there any modul which makes this possible?


best regards

Jan



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux