Hello,
Ok, i'll try to be a little more specific. My fbsd box is doing nat and
firewall for my internal network. The ipnat seems to be working. I've got:
map ep0 192.168.0.0/16 -> 0.0.0.0/32
in my ipnat.conf file. And with that in place all my internal machines
can see out. When i load my firewall rules, any connections that were in
place before i loaded them such as a download in progress or an instant
messenger session work fine, however I'm unable to do any kind of pinging or
additional web surfing until i flush the rules. Below are my rules. I hope
this makes a little more sense.
Thanks.
Dave.
# Allow everything on the loopback interface.
pass in quick on lo0
pass out quick on lo0
# Allow packets to come in on the internal interface from our subnet.
pass in quick on ep1 proto tcp/udp from 192.168.0.0/16 to any keep state
pass in quick on ep1 proto icmp from 192.168.0.0/16 to any keep state
pass out quick on ep1
# Allow trafic from our subnet to go out on the external interface.
pass out quick on ep0 proto tcp/udp from 192.168.0.0/16 to any keep state
pass out quick on ep0 proto icmp from 192.168.0.0/16 to any keep state
pass out quick on ep0 proto tcp/udp from 0.0.0.0/16 to any keep state
pass out quick on ep0 proto icmp from 0.0.0.0/16 to any keep state
# Allow inbound SSH.
pass in quick on ep0 proto tcp from any to 0/32 port = 22 keep state
# Allow DHCP.
pass in quick on ep0 proto udp from 24.29.163.32/32 port = 68 to
255.255.255.255 port = 67
# Block and log everything else...
block in log first on ep0
block out log first on ep0