Joseph Spenner wrote:

> I'm running squid 2.4 as a proxy on a Blade 100,
> Solaris 8.  2 ethernets:
> 
> hme1: 10.0.0.1        (internal private net)
> eri0: 212.X.Y.Z       (external Internet connection)
> 
> I simply want the machine to proxy, and ipfilter
> (v3.4.25) to allow 2 way communication on established
> connections.  I want to block everything else hitting
> eri0.  From what I've read, the 'keep state' should do
> this, but I can't get it to work correctly.  Here's
> what I've got so far (from various FAQs, like
> http://www.obfuscation.org/ipf/ipf-howto.html#TOC_20):
> 
> 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
> 



I believe you want:

block in log quick on eri0 all
pass in quick on hme1 proto tcp from any to any keep
  state
pass in quick on hme1 proto udp from any to any keep
  state
pass in quick on hme1 proto icmp from any to any keep
  state


That will let it in from the internal interface, then out the external, then 
in the external then out the internal.

Phil Dibowitz
-- 
"They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety."
-Benjamin Franklin, 1759

Reply via email to