Thanks for such a quick reply! Answers/Comments within--
--- Jim Sandoz <[EMAIL PROTECTED]> wrote: > > joe, > a couple of questions, then we can get started... > > a) my assumption is that you want to use the solaris > box to > provide (possibly among other things) http proxy > services > to clients on the 10.0.0.0/24 net -- is this > correct? That is correct. > b) you currently do not have any ipnat mappings. > maybe > this is because you didn't know you needed them, or > maybe this is because you took them out for testing. > which of those sounds about right? I did not know I needed them. > $ cat /etc/opt/ipf/ipnat.conf > # > # a mapping for NATing the 10.0.0.0/24 network via a > single > # IP address, and enable proxy for the ftp > protocol... > map eri0 10.0.0.0/24 -> 212.X.Y.Z/32 proxy port ftp > ftp/tcp > map eri0 10.0.0.0/24 -> 212.X.Y.Z/32 portmap tcp/udp > 10000:24000 > map eri0 10.0.0.0/24 -> 212.X.Y.Z/32 > # enable the ftp proxy for the firewall host as > well... > map eri0 212.X.Y.Z/32 -> 212.X.Y.Z/32 proxy port ftp > ftp/tcp Done > > $ cat /etc/opt/ipf/ipf.conf > # > # filter rules for ipfilter (pkginfo ipf) > # file: /etc/opt/ipf/ipf.conf > # > # after making changes: > # /etc/init.d/ipfboot reload > # > # or via brute force: > # /etc/init.d/ipfboot stop; sleep 1; > /etc/init.d/ipfboot start > # ip packet filtering rulesets: > # generic to all interfaces > block in log quick all with opt lsrr > block in log quick all with opt ssrr > block in log quick all with ipopts > block in log quick proto tcp all with short > block in log quick proto icmp all with frag > # > # inbound rules on iprb0 (default deny) > block in on eri0 all > # pass out all on eri0, and keep state > pass out quick on eri0 proto tcp all flags > S keep state keep frags > pass out quick on eri0 proto udp all keep > state keep frags > pass out quick on eri0 proto icmp all keep > state keep frags > pass out quick on eri0 all > > > to load everything you just changed in the conf > files, run (as root) > $ /etc/init.d/ipfboot reload > Done > let us know where you are at. > > jim OK. After doing all the above, here's what I've got: # ipfstat -io pass out quick on eri0 proto tcp from any to any flags S/FSRPAU keep state keep frags pass out quick on eri0 proto udp from any to any keep state keep frags pass out quick on eri0 proto icmp from any to any keep state keep frags pass out quick on eri0 from any to any block in log quick from any to any with opt lsrr block in log quick from any to any with opt ssrr block in log quick from any to any with ipopt block in log quick proto tcp from any to any with short block in log quick proto icmp from any to any with frag block in on eri0 from any to any # I am not able to surf through this box with the new configuration. It appears I'm getting blocked on the way back in again. If I change your last config line to include log, I can see the deny: May 14 14:51:24 proxyboxy ipmon[473]: [ID 702911 local0.warning] 14:51:23.650303 2x eri0 @0:6 b 216.239.35.119,80 -> 212.X.Y.Z,8215 PR tcp len 20 48 -AS IN So, my original problem still exists where my requests can't seem to come back in. I know the box is able to proxy, because the following ipf.conf (with no ipnat.conf ) will allow me to surf: pass in quick on eri0 from 212.X.Y.Z/24 to any pass in quick on eri0 proto tcp from any to 212.X.Y.Z/32 keep state block in log quick on eri0 all pass out quick on eri0 proto tcp from any to any keep state pass out quick on eri0 proto udp from any to any keep state pass out quick on eri0 proto icmp from any to any keep state Although this probably isn't correct (the first and/or second line seem to be too permissive). -- __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
