Page 1 of 1

My iptables rules not working

Posted: 27 Dec 2013, 19:17
by fiolipi
I need to run a rule and a redirect ip to port more active when the csf this rule does not work, I tried to release the port more still did not work
my rule: iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT --to-destination MY_EXTERNAL_IP:80
iptables -t nat -A POSTROUTING -j MASQUERADE


if anyone has a suggestion and can help me thank you!

Re: My iptables rules not working

Posted: 27 Dec 2013, 22:06
by ForumAdmin
Ensure that you have remembered (see the readme.txt) to use the full path to any binaries, including /sbin/iptables, in your csfpost.sh