My iptables rules not working

Post Reply
fiolipi
Junior Member
Posts: 1
Joined: 27 Dec 2013, 19:11
Location: brasil

My iptables rules not working

Post 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!
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: My iptables rules not working

Post 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
Post Reply