Код: Выделить всё
${FwCMD} pipe 1 config bw 64000 bit/s mask dst-ip 0xffffffff
${FwCMD} pipe 2 config bw 64000 bit/s mask dst-ip 0xffffffff
Код: Выделить всё
${FwCMD} add pipe 1 ip from (192.168.20.13 or 192.168.20.22) to any
${FwCMD} add pipe 2 ip from any to (192.168.20.13 or 192.168.20.22)
Код: Выделить всё
sysctl net.inet.ip.fw.one_pass
где action представляет собой "pipe N", a body - обычное тело правила# man ipfw
SYNOPSIS
FIREWALL CONFIGURATION
ipfw [-cq] add rule
RULE FORMAT
The format of firewall rules is the following:
[rule_number] [set set_number] [prob match_probability] action
[log [logamount number]] [altq queue] [{tag | untag} number] body
и да, читать man ipfw. можно распечатать и читать пред сном