Код: Выделить всё
block in all
block out all
pass out quick on lo0 from 127.0.0.0/8 to 127.0.0.0/8
pass in quick on lo0 from 127.0.0.0/8 to 127.0.0.0/8
pass in quick on rl1 proto icmp from any to 192.168.1.2/32
pass out quick on rl1 proto icmp from 192.168.1.2/32 to any
pass in quick on rl1 proto tcp from any to 192.168.1.2/32 port = 21 keep state
pass in quick on rl1 proto tcp from any to 192.168.1.2/32 port = 22
pass in quick on rl1 proto tcp from any to 192.168.1.2/32 port = 80
pass out quick on rl1 proto tcp/udp from 192.168.1.2/32 to any
fisher@fisher-laptop:~$ nmap 192.168.1.2
Starting Nmap 5.00 ( http://nmap.org ) at 2010-08-09 16:55 KRAST
Interesting ports on server (192.168.1.2):
Not shown: 997 filtered ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
80/tcp open http