Good morning friends...
I use CentOs 6.1 with CSF 14.2. I have two network cards, one external to connect to the Internet (PPPOE) and the internal network.
I am trying to open some ports (Port Forward) and forward them to my internal server (192.168.1.2).
For example. I need to open port 27015 and forward all the external Ip's that arrive to that port and forward to 192.168.1.2. I put some rules in csfpost.sh, but it doesn't work.
What am I doing wrong??
In my csfpost.sh there are these rules for sharing the internet with the internal network
/ sbin / iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
/ sbin / iptables -A FORWARD -i ppp0 -o eth1 -m state --state RELATED, ESTABLISHED -j ACCEPT
/ sbin / iptables -A FORWARD -i eth1 -o ppp0 -j ACCEPT
echo 1> / proc / sys / net / ipv4 / ip_forward
I already tried to use CSF.REDIRECT, but when I use it, the internal network is without internet.
Thx