Forrest logo
back to the iptables tool

iptables:ai:fb39e

/usr/sbin/iptables -A INPUT -i eth1 -p all -s 160.86.0.0/16 -j ACCEPT /usr/sbin/iptables -A INPUT -i eth1 -p all -j DROP
$ /usr/sbin/iptables -A INPUT -i eth1 -p all -s 160.86.0.0/16 -j ACCEPT ; /usr/sbin/iptables -A INPUT -i eth1 -p all -j DROP
try on your machine

Allow all connections from the IP range 160.86.0.0/16 on interface eth1 and drop all other incoming connections on eth1

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • /usr/sbin/iptables -A INPUT -i eth1 -p all -s 160.86.0.0/16 -j ACCEPT /usr/sbin/iptables -A INPUT -i eth1 -p all -j DROP?
back to the iptables tool