#to allow access to server with iptables
iptables -A INPUT -s 192.111.111.111 -j ACCEPT
service iptables save
#tp remove access to server with iptables
iptables -A INPUT -s 192.111.111.111 -j DROP
service iptables save
//to list properties of iptables and show allowed ip is added
iptables -L
No comments:
Post a Comment