ICMP PING PACKETS ON LINUX SECURITY IPTABLES

View previous topic View next topic Go down

ICMP PING PACKETS ON LINUX SECURITY IPTABLES

Post by jamied_uk on 4th August 2016, 23:58

Code:
sudo iptables -A INPUT -s x.x.x.x -p ICMP --icmp-type 8 -j ACCEPT
sudo iptables -A INPUT -p ICMP --icmp-type 8 -j DROP

Where x.x.x.x is the ip of allowed ip (needs to be put in 1st)

avatar
jamied_uk
Admin

Posts : 2260
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum