Good day all, I need some help and I've been crawling through the net for 2 days trying to find an answer to my problem.
Here is my problem. I have setup a FreeBSD 4.7 box with IPFILTER and IPNAT witch I plan to use for a corp. firewall for my company. In my test enviorment I have a Win2k server behind the BSD firewall with the main ip of 192.168.0.2 and also bound 192.168.0.93 & 94 as well. In IIS I have 2 webs running, one on each IP. Now my firewall has 2 NICs external 208.63.55.77 with 208.63.55.93 and 208.63.55.94 aliased to it. then I have the internal NIC 192.168.0.1. My IPFILTER rules are as follows. pass out quick on fxp0 proto tcp from any to any keep state pass out quick on fxp0 proto udp from any to any keep state pass out quick on fxp0 proto icmp from any to any keep state pass in quick on fxp0 proto tcp/udp from any to 208.63.55.77/32 port = 53 keep state pass in quick on fxp0 proto tcp from any to 208.63.55.93/32 port = 80 keep state pass in quick on fxp0 proto tcp from any to 208.63.55.94/32 port = 80 keep state block return-rst in log quick on fxp0 proto tcp from any to any block return-icmp-as-dest(port-unr) in log quick on fxp0 proto udp from any to any pass out quick on xl0 proto tcp from any to any keep state pass out quick on xl0 proto udp from any to any keep state pass out quick on xl0 proto icmp from any to any keep state pass in quick on xl0 proto tcp from any to any keep state pass in quick on xl0 proto udp from any to any keep state pass in quick on xl0 proto icmp from any to any keep state pass in quick on lo0 all pass out quick on lo0 all My ipnat rules map fxp0 192.168.0.0/20 -> 0/32 bimap fxp0 208.63.55.93/32 -> 192.168.0.93/32 bimap fxp0 208.63.55.94/32 -> 192.168.0.94/32 Now here is what is happaning. When I try to connect to one of the websites from the outside I see the following when I do a ipmon -o N 31/10/2002 11:45:55.562946 @3 NAT:BIMAP 208.63.55.94,80 <- -> 192.168.0.94,80 [208.63.55.76,4086] 31/10/2002 11:46:18.508976 @3 NAT:BIMAP 208.63.55.94,80 <- -> 192.168.0.94,80 [208.63.55.76,4087] 31/10/2002 11:47:07.326955 @2 NAT:EXPIRE 208.63.55.93,80 <- -> 192.168.0.93,80 [208.63.55.76,4083] Pkts 6 Bytes 264 Now to me it looks like the request is coming in and being handed off to ipnat witch is sending it to the proper address & port on my Win2k box, but when it leaves ipnat is changeing the port. I have also tried it with IPFILTER rules: pass in quick from any to any pass out quick from any to any With the same results. Can anyone please help??? Thanks
