Bump...
I take it that there are not many OpenBSD gurus here anymore..... :-[
Update :: I now have this configuration. I also feel that this looks cleaner. At this point I have been trying to figure out some of my logs. Stuff isn't getting back to the user's machine.
/etc/pf.conf
Code:#################################################### # Setup a variable for who IS allowed to go online # #################################################### FullInternetIPs="{192.168.254.2/32, 192.168.1.2/32, 206.190.6.3/32, 206.190.6.8/32, 206.190.6.11/32, 206.190.6.32/32, 206.190.6.56/32, 206.190.6.222/32, 206.190.6.243/32, 206.190.6.247/32, 206.190.6.249/32}" DNS="{206.141.239.126/32, 206.141.251.2/32, 209.253.113.118/32, 209.253.113.2/32} WAN="xl0" LAN="ne4" pass out on $LAN all # Block and log everything by default block in log on $LAN all # Allow loopback adpater traffic full reign pass in quick on lo0 all pass out quick on lo0 all # Silently drop broadcasts block in quick on $WAN from any to 255.255.255.255/32 ############################### # Filter Internet connections # ############################### # Allow DNS queries pass in quick on $LAN from 206.190.6.0/24 to $DNS keep state pass out quick on $LAN from $DNS to 206.190.6.0/24 keep state # Allow Toolbar access pass out quick on $LAN from 206.190.6.0/24 to 209.184.193.164/32 keep state pass in quick on $LAN from 209.184.193.164/32 to 206.190.6.0/24 keep state # Allow Mapquest pass out quick on $LAN from 206.190.6.0/24 to 64.12.37.89/32 keep state pass out quick on $LAN from 206.190.6.0/24 to 64.12.51.56/32 keep state pass out quick on $LAN from 206.190.6.0/24 to 64.12.37.57/32 keep state pass in quick on $LAN from 64.12.37.89/32 to 206.190.6.0/24 keep state pass in quick on $LAN from 64.12.51.56/32 to 206.190.6.0/24 keep state pass in quick on $LAN from 64.12.37.57/32 to 206.190.6.0/24 keep state # Allow full access for the chosen ones pass out quick log on $LAN from $FullInternetIPs to any keep state pass in quick log on $LAN from any to $FullInternetIPs keep state # Allow SSH sessions from LAN pass in quick log on 206.190.6.0/24 to 206.190.6.222/32 port = 22 keep state pass out quick log on 206.190.6.222/32 to 206.190.6.0/24 keep state


Reply With Quote


Bookmarks