Я уже даже не знаю.
Пояснения rl0 - внешний интерфейс. rl1 - внутренний
123.456.789.0 - rl0 провайдерский (взят ради примера)
192.168.0.100 - rl1
192.168.0.1 и 192.168.0.2 - локальные компы
Вот пример файла firewall.conf
/sbin/ipfw -f flush
/sbin/ipfw 10 add divert natd all from any to any via rl0
/sbin/ipfw 20 add allow all from any to any via rl1
#FTP
/sbin/ipfw 30 add pass tcp from any 21 to any
/sbin/ipfw 40 add pass tcp from any to any 21
/sbin/ipfw 50 add pass tcp from any 20 to any
/sbin/ipfw 60 add pass tcp from any to any 20
/sbin/ipfw 70 add pass udp from any 21 to any
/sbin/ipfw 80 add pass udp from any to any 21
/sbin/ipfw 90 add pass udp from any 20 to any
/sbin/ipfw 100 add pass udp from any to any 20
#SSH
/sbin/ipfw 110 add pass tcp from 192.168.0.1 22 to 192.168.0.100
/sbin/ipfw 120 add pass tcp from 192.168.0.100 to 192.168.0.1 22
#DNS
/sbin/ipfw 350 add pass udp from any 53 to any
/sbin/ipfw 360 add pass udp from any to any 53
#POP3
/sbin/ipfw 370 add pass udp from any 110 to any
/sbin/ipfw 380 add pass udp from any to any 110
#HTTP
/sbin/ipfw 390 add pass tcp from any 80 to any
/sbin/ipfw 400 add pass tcp from any to any 80
#HTTPS
/sbin/ipfw 410 add pass tcp from any 443 to any
/sbin/ipfw 420 add pass tcp from any to any 443
#computers
/sbin/ipfw 430 add allow ip from 192.168.0.1 to any
/sbin/ipfw 440 add allow ip from 192.168.0.1 via rl0
/sbin/ipfw 450 add allow ip from 192.168.0.1 via rl1
/sbin/ipfw 460 add allow ip from 192.168.0.2 to any
/sbin/ipfw 470 add allow ip from 192.168.0.2 via rl0
/sbin/ipfw 480 add allow ip from 192.168.0.2 via rl1
#Netbios
/sbin/ipfw 1210 add deny tcp from any to any 135-139 via rl0
/sbin/ipfw 65000 allow ip from 123.456.789.0 to any
В чём моя ошибка?