Nocser Technology | Main Page
Please Login or Register

Knowledgebase

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



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter