$fw
= IPChains->new(-option => value, ... );
$fw->append('chain');
ipchains(8)
userspace
utility by Paul ``Rusty'' Russell
(http://www.rustcorp.com/linux/ipchains/). It attempts to include all the
functionality of the original code with a simplified user interface via
Perl. In addition, plans for log parsing facilities, an integrated
interface to ipmasqadm, and possibly traffic shaping are slated for up and
coming versions.
The new()
and attribute()
methods support the
following options:
port(s).
Here is a small table of some of the most common ICMP packets:
Number Name Required by
0 echo-reply ping 3 destination-unreachable Any TCP/UDP traffic. 5 redirect routing if not running routing daemon 8 echo-request ping 11 time-exceeded traceroute
list()
(1 or 0).
list()
in numeric format. No DNS lookups,
etc.. (1 or 0).
The first mask is ANDed with the packet's current TOS, and the second mask is XORed with it. Use the following table for reference:
TOS Name Value Typical Uses
Minimum Delay 0x01 0x10 ftp, telnet Maximum Throughput 0x01 0x08 ftp-data Maximum Reliability 0x01 0x04 snmp Minimum Cost 0x01 0x02 nntp
$fw
= IPChains->new(option => value, ...) create new fw
object with options
$value
= $obj->attribute(option) to get current value of
option.
list(),
flush(),
delete(),
etc.
that take only a few specific options).