Thread
:
iptables ... BUG: Can't use --to-ports
View Single Post
DavidJH
2008-06-09 , 00:17
Posts: 10 | Thanked: 2 times | Joined on Jun 2008
#
3
Yes, I have. I suppose I should have given the complete command. Also, note that I have tried this on other debian distros with absolutely no problem
The command is
iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-ports %rport
The %iface, %port, and %rport are being replace by a script, but as you can see, the tcp is being specified by "-p tcp". For some reason it just doesn't seem to be able to handle or recognize the "--to-ports".
Has anyone found a way to get iptables to recognize the --to-ports variable or have found a fix. Any hints would be greatly appreciated!
Quote & Reply
|
DavidJH
View Public Profile
Send a private message to DavidJH
Find all posts by DavidJH