Adding a new iptable rule through SSH
Question:
When adding a new IP table rule through ssh. Let's say for IP: 1.2.3.4 /CSF is installed and it's on a Centos system.
Would it be like this:
Open or create this file: /etc/csf/csfpost.sh
Insert this line for each subnet
iptables -I INPUT -s SUBNET_HERE -p tcp -m multiport --dports 81,999 -j ACCEPT
When you are done, save and close the file, then run:
csf -r
Would that be correct?
The reason I'm not doing it through WHM is because even though the IP has been white listed, i can't telnet into it from the remote server via ssh(as a test to check incoming connections)
-
You should just be able to edit /etc/csf/csf.allow. There are examples in the file for how the entry should be formatted. 0 -
[quote="vanessa, post: 1630201">You should just be able to edit /etc/csf/csf.allow. There are examples in the file for how the entry should be formatted.
Hey, It's alreasdy added in the .etc/alow but I still cant seem to run a telnet xx.remorte.xx.ip Getting connection refused.0
Please sign in to leave a comment.
Comments
4 comments