mnt/router/rc
edit rc_user*
add right after the the line "#ipfwadm -I -a reject -P tcp -W $INET -D 0.0.0.0/0 22 -y -o"
use the command "ipautofw -A -r tcp firstportnumber lastportnumber -h ipaddress"
Make note to the caps on -A linux is caps sensitive
Here is what mine looks like with ports opened for 3 ICQ clients
f [ "$1" = firewall ]; then
# Add your custom firewall rules here. Warning, incorrect rules could
# leave your system insecure. $INET always represents the internet
# interface. These rules come before standard system rules. Example:
# reject incomming tcp connections to port 22 from the internet and log
#ipfwadm -I -a reject -P tcp -W $INET -D 0.0.0.0/0 22 -y -o
#icq ports
ipautofw -A -r tcp 20000 20019 -h 192.168.0.2
ipautofw -A -r tcp 20020 20039 -h 192.168.0.3
ipautofw -A -r tcp 20040 20059 -h 192.168.0.4