I think the configuration should be: block in log quick on eri0 from any to any pass out quick on eri0 proto tcp from any to any keep state keep frags pass out quick on eir0 proto udp from any to any keep state
If you want to come in more details, you may use flags S. Keep in mind that you may have a big number of logged packets with Ack or Ack/Fin flags, because of a network lag. Ivailo Tanusheff System Administrator and Security Advisor ProCredit Bank -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Joseph Spenner Sent: Tuesday, May 21, 2002 1:12 AM To: [EMAIL PROTECTED] Subject: Re: "keep state" on squid web proxy server Gatis: Would love details. My configuration is extremely simple. Here's what I have: hme1: 10.0.0.1/24 (internal private lan) eri0: 212.1.2.3/24 (example, Internet connection) squid, port 3128 (default), bound to 10.0.0.1 My users are on the 10.0.0.0/24 network, and need to use the proxy. I do not care about protecting hme1, because it is internal. I might do some filtering later on hme1. I want to protect eri0. I want to block EVERYTHING trying to enter eri0 from the Internet except for my return http requests. What do you suggest for a simple configuration? Thanks in advance! joe --- [EMAIL PROTECTED] wrote: > Squid+IPFilter works for me. > > Should any details be needed, pass a note. > > Gatis > > > I think I know what my problem might be. Could it > be > > that my 'keep state' is never keeping state > because > > the original request isn't recorded due to squid? > > > > In other words, if I turn off the proxy and make > my > > default route use the ipfilter box, keep state > will > > work since all traffic entered the box without a > > proxy, and thus can return back through the keep > > state. > > > > I think the proxy/ipfilter combo is the cause of > my > > grief. > > > > > > --- Joseph Spenner <[EMAIL PROTECTED]> wrote: > > > --- Phil Dibowitz <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > following lines should allow the return > traffic > > > > from > > > > > web requests: > > > > > > > > > > block in log quick on eri0 all > > > > > pass out quick on eri0 proto tcp from any to > any > > > > keep > > > > > state > > > > > > > > > > Shouldn't the above be an extremely simple > > > > > proxy/ipfilter box configuration? > > > > > > > > > > > > No. How will the traffic from your internal > hosts > > > > get to you to be proxied??? > > > > Also you may want the port = 80 deal here as > well. > > > > > > > > > > I'm not sure I follow. If I have the following > > > config: > > > > > > eri0: 212.X.Y.Z to the Internet > > > hme1: 10.0.0.1 to my private Intranet > > > > > > block in log quick on eri0 all > > > pass out quick on eri0 proto tcp from any to any > > > keep > > > state > > > > > > Then I visit ups.com. The 2nd line in my config > > > allows the packet out, with keep state. > > > When ups.com sends me something back, it should > be > > > allowed to return since the keep state. > > > > > > As I mentioned earlier, the following line will > > > permit > > > everything to work: > > > > > > pass in quick on eri0 proto tcp from any to > > > 212.X.Y.Z/32 > > > > > > So I know that my system is able to route > correctly. > > > > > > > > > SO, doesn't the line: > > > > > > pass out quick on eri0 proto tcp from any to any > > > keep > > > state > > > > > > translate to: "Let tcp packets out to any > > > destination > > > on eri0, and remember where the destination is. > > > When > > > I see packets trying to come back from that > > > destination, let them in." ?? > > > > > > > > > > > > > > > I still see the following type of entries in > my > > > > logs: > > > > > > > > > > May 14 22:49:45 proxyboxy ipmon[2192]: [ID > > > 702911 > > > > > local0.warning] 22:49:45.339559 eri0 @0:6 b > > > > > 153.2.224.55,80 -> 212.X.Y.Z,9561 PR tcp len > 20 > > > 40 > > > > -A > > > > > IN > > > > > > > > > > > > Not sure. I think that should work. > > > > Funny side note, given your above snippet: at > one > > > of > > > > my old jobs, our NAT box > > > > was called 'proxbox'. > > > > > > > > > > > > Phil > > > > > > > > -- > > > > "They that can give up essential liberty to > obtain > > > a > > > > little temporary safety > > > > deserve neither liberty nor safety." > > > > -Benjamin Franklin, 1759 > > > > > > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > LAUNCH - Your Yahoo! Music Experience > > > http://launch.yahoo.com > > > > > > __________________________________________________ > > Do You Yahoo!? > > LAUNCH - Your Yahoo! Music Experience > > http://launch.yahoo.com > > > > > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
BEGIN:VCARD VERSION:2.1 N:Tanusheff;Ivailo FN:Ivailo Tanusheff ORG:ProCredit Bank TITLE:System administrator and Security advisor TEL;WORK;VOICE:+359 2 9217161 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20020510T125145Z END:VCARD
