Forwarding packets on same interface (echoing)

Martin van den Berg martinvdberg at
Fri Aug 12 13:05:26 CEST 2005


I have this NAT/firewall box (debian) configured with iptables. Port
forwarding etc works fine for one exception: A need a rule that
'echoes' back udp packets if they meet the following criteria:
+ in-interface=eth1 (that's the 'private' interface)
+ destination IP is public ip-address (e.g. (that's eth0)
+ Port range is e.g. 30000-32000
+ The packets need to be forwarded via eth0 (thus echoed) to e.g., same port.

Hope you can help me and thanks in advance!


More information about the netfilter mailing list