Block all IP, but open to certain IP for certain port with iptables

iptables -A INPUT -p tcp --dport 25 -j DROP
iptables -A INPUT -p tcp -s 202.162.229.0/24 --dport 25 -j ACCEPT

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

find large file

find / -type f -size +100000000c -ls This will list all file located at "/" that...

Installing DBD::mysql from source

wget http://www.cpan.org/modules/by-module/DBD/DBI-1.56.tar.gz tar xvzf DBI-1.56.tar.gz cd...

Can I increase my VPS plan without upgrade my package?

No. The only way you increase your RAM is to upgrade the currect package to a higher package. We...

Hardening Server included

  LSM (Linux Socket Monitoring) installed and configured - Function is to monitor ANY...

Where is the datacenter VPS located?

Windows VPS is located at Colo4Dallas Taxes US BlueSquare UK Linux VPS is...

Powered by WHMCompleteSolution