A DNAT question.

Ted Gervais ve1drg at av.eastlink.ca
Sun Feb 6 00:22:35 CET 2005


I am new to this list and to iptables generally.

I have a line I am trying to translate into a current iptables line that
will work in my firewall.

' DNAT net loc:192.168.0.147 udp 5198,5199 '

If anyone could venture a thought as to how that might be translated into
a current iptables statement I would really appreicate it.

I have tried - iptables -t nat -A PREROUTING -i eth0 -d 192.168.0.1 -p tcp
--dport 5198:5199 -j DNAT --to 192.168.0.147

That doesn't appear to work so obviously I have not interpreted that line
correctly..

---
The big cities of America are becoming Third World countries.
                -- Nora Ephron


Ted Gervais
Coldbrook Nova Scotia
Canada B4R1A7



More information about the netfilter mailing list