Ptables Options

The IPtables package is designed to be extensible, and there are number of options with selection criteria that can be included with IPtables. For example, the TCP extension includes the --syn option that checks for SYN packets. The ICMP extension provides the --icmp-type option for specifying ICMP packets as those used in ping operations. The limit extension includes the --limit option, with which you can limit the maximum number of matching packets in a specified time period, such as a second.

In the following example, the user adds a rule to the INPUT chain to accept all packets originating from the address Any packets that are received (INPUT) whose source address (-s) matches are accepted and passed through (-j ACCEPT):

iptables -A INPUT -s 192.16 8.0.55 -j ACCEPT

0 0

Post a comment