Alex Huang's Blog
Saturday, January 5, 2019
Utilize IPTABLES to block ports
Block a port:
#iptables -A INPUT -p tcp --dport 22 -j REJECT
See all rules:
#iptables --list
Empty all rules:
#iptables --flush
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment