On Wed, Nov 26, 2003 at 11:18:41AM +0100, Thelmo Loisio wrote: > All run correctly and it's a charm but now for some reasons that > overcomes my willing i cannot set this as the def gw for my lan and as > soon as i don't set this as the def gw all stop working, > for it to work > again i've to set it as proxy in all browsers (which is what i don't > want to do)
i'm not certain this is the problem you're having as i am not following clearly your description; but if it is that squid works if you set it as the proxy to use in the browser but does not work if you try to transparently redirect traffic to it using pf but is saying something like: ----- ERROR the requested url cannot be retrieved missing or incorrect protocol: http:// or similar ----- i put up a post in early september to misc@ about that and the stuff to put in squid.conf for it to work. if i'm way off base, disregard. > Also if it isn't the def gw shouldn't it cath all the request anyway !? if the box you're running squid on is also listed as the default gateway for PCs in your LAN, the PCs in your LAN will try to send their packets to it for further forwarding if the PC in the LAN is trying to communicate with anything outside of your subnet. the packet will simply be forwarded by the machine who is the default gateway. if you put rdr on that machine to redirect incoming requests bound for the world at port 80 - sending them to the port squid is at, then they are probably doing that. easy way to check: $ sudo pfctl -vsn see if it is redirecting the packets to squid. jared -- [ openbsd 3.4 GENERIC ( nov 22 ) // i386 ]
