The following command in a linux based system will show all the IPs assigned to that system: # ip addr show Or alternatively, if you'd like to know the IP address(es) of a certain port (for example eth0) type the following: # ip addr show eth0 Sample output: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state…
Continue readingTag: IP address
How to block IP address in Linux – Using IPTables Rule
Using IPTables rules we can block a Single IP address or a block of IP Addresses. The following command (via ssh) will drop any packet coming from the IP address 1.2.3.4 : # iptables -I INPUT -s 1.2.3.4 -j DROP or you can use append # iptables -A INPUT -s 1.2.3.4 -j DROP How To Block Subnet…
Continue reading