sudo iptables -F
#sudo iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
sudo iptables -A INPUT -p tcp --dport 8080 ! -s 24.86.126.251 -j DROP
#sudo iptables -A INPUT -p tcp --dport 8080 -m iprange --src-range 24.86.126.251 -j ACCEPT
sudo iptables -L
No comments:
Post a Comment