Need help with iptables error.
I'm trying to set up ip forwarding to a port other than 80 on my SuSE 9 box to allow me to use DVArchive as a non-root user and I'm having some issues with the iptables commands. I want to do this:
/usr/sbin/iptables -A PREROUTING -t nat -p tcp -d 192.168.1.118 --dport 80 -j DNAT --to 192.168.1.118:13198
/usr/sbin/iptables -A OUTPUT -t nat -p tcp -d 192.168.1.118 --dport 80 -j DNAT --to 192.168.1.118:13198
Which used to work fine when I was running Red Hat.
The PREROUTING chain sets fine, but now with SuSE on the OUTPUT chain I get this error:
/usr/sbin/iptables -A OUTPUT -t nat -p tcp -d 192.168.1.118 --dport 80 -j DNAT --to 192.168.1.118:13198 -v
DNAT tcp opt -- in * out * 0.0.0.0/0 -> 192.168.1.118 tcp dpt:80 to:192.168.1.118:13198
iptables: Invalid argument
I know just enough to get in trouble with iptables I'm afraid, can someone help me debug this?
Thanks!
|