Portal Home > Knowledgebase > 4. VPS / Virtual Server > Block all IP, but open to certain IP for certain port with iptables
iptables -A INPUT -p tcp --dport 25 -j DROPiptables -A INPUT -p tcp -s 202.162.229.0/24 --dport 25 -j ACCEPT
Was this answer helpful? Yes No
Add to Favourites Print this Article
Powered by WHMCompleteSolution
Quick Navigation
Client Login
Email
Password
Remember Me
Search
Knowledgebase Downloads