Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   squid on other box than iptables NAT? (http://www.linux-archive.org/debian-user/704705-squid-other-box-than-iptables-nat.html)

Simon Brandmair 09-17-2012 02:42 PM

squid on other box than iptables NAT?
 
Hi group,

I thought I could run squid (3.1.20) on one box, and iptables with DNAT
on another box with

iptables -t nat -A PREROUTING -p tcp --dport 80 -i $LOCIF ! -s $squidbox
! -d $localnet -j DNAT --to-destination $squidbox:3128

squid.conf snip:
http_port 192.x.x.x:3128 intercept

But on the squidbox /var/var/log/squid3/cache.log says:
IpIntercept.cc(137) NetfilterInterception: NF
getsockopt(SO_ORIGINAL_DST) failed on FD 45: (92) Protocol not available

Some manuals on the internet suggest that this setup should be possible
[1], while others claim squid must run on the same box performing NAT
[2].

Can anybody help me out with this?

Cheers,
Simon



[1] http://tldp.org/HOWTO/TransparentProxy-6.html
[2]
http://squid-web-proxy-cache.1019090.n4.nabble.com/external-NAT-and-quot-Protocol-not-available-quot-td3173494.html


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/k37ctf$s3o$1@news.albasani.net


All times are GMT. The time now is 01:24 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.