I am trying to compose a PF rule-set for my FreeBSD system. FreeBSD is installed in a stand alone desktop and fully equipped PC which will replace a windows XP SP3 box. The FreeBSD is just a personal workstation in a home network of a few Windows PCs and doesn't run any services.
The pf.conf that I am currently using is:
Though I am (a little bit familiar) with the Windows firewalls I am not confident with the PF rule set that I came up with. Could you please offer some advice on how to make safer? Am I missing something?
The pf.conf that I am currently using is:
Code:
set block-policy return
scrub in all
tcp_services="{ssh, smtp, domain, www, pop3, auth, pop3s, http, https, imap, imaps imap3, telnet, ntp}"
udp_serices="{domain}"
trusted="{193.239.214.227 192.168.1.11}"
#193.239.214.227 is a time server; 192.168.1.11 is a win PC in the home network
block all
pass in log proto tcp to $trusted keep state
pass out log proto tcp to $trusted keep state
pass log proto udp to $trusted keep state
pass out proto tcp to any port $tcp_services keep state
pass proto udp to any port $udp_services keep state
pass proto icmp from any to any # I will remove this line later, doing some tests now.
Though I am (a little bit familiar) with the Windows firewalls I am not confident with the PF rule set that I came up with. Could you please offer some advice on how to make safer? Am I missing something?