cjla.blogg.se

Iptables command
Iptables command







The –j option specifies what we’ll do for the matching packets. The –s option specifies the source IP address of incoming packets.įinally, the –j REJECT part of the command implied that we want to apply the REJECT rule to the incoming packets from the host with IP address 192.39.59.17.

iptables command iptables command

That means we’re interested in the incoming traffic.Īdditionally, the –s 192.39.59.17 part of the command specified that we’re only interested in the incoming traffic from the host with IP address 192.39.59.17. In this case, we appended the rule to the input chain using –A INPUT. The –A option of iptables is for appending rules to the specified chain.









Iptables command