LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Totally messed up with squid3 as transparent proxy (https://www.linuxquestions.org/questions/linux-networking-3/totally-messed-up-with-squid3-as-transparent-proxy-675855/)

PATRINOS06 10-12-2008 11:13 AM

Totally messed up with squid3 as transparent proxy
 
Hi there.

I'm trying to set up squid3 as a transparent proxy for my home gateway.It uses eth0 (192.168.1.100) for the external network and eth1 (172.16.0.1) for the internal.So far,after spending the whole day googling and trying various parameters in the squid3.conf i've ended up to this

/etc/squid3/squid.conf


Code:

http_port 172.16.0.1:3128 transparent
cache_mgr poscaman@gmail.com
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
access_log /var/log/squid/access.log squid
hosts_file /etc/hosts
refresh_pattern ^ftp:          1440    20%    10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .              0      20%    4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563      # https, snews
acl SSL_ports port 873          # rsync
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 563    # https, snews
acl Safe_ports port 70          # gopher
acl Safe_ports port 210        # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280        # http-mgmt
acl Safe_ports port 488        # gss-http
acl Safe_ports port 591        # filemaker
acl Safe_ports port 777        # multiling http
acl Safe_ports port 631        # cups
acl Safe_ports port 873        # rsync
acl Safe_ports port 901        # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
acl lan src 172.16.0.0/24
http_access allow localhost
http_access allow lan
http_access deny all
http_reply_access allow all
icp_access allow all
visible_hostname Router
always_direct allow all
coredump_dir /var/spool/squid 800 16 256

although the config files seems to be ok,an squid3 goes on,i mention that port 3128 is not open
Code:

nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-10-12 22:07 EEST
Interesting ports on localhost (127.0.0.1):
Not shown: 1677 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
111/tcp open  rpcbind
113/tcp open  auth

also browser responds

Code:


Proxy Server Refused Connection

could u pls take a look at my squid.conf?what is the real problem?

thanks a lot.
Dimitris
__________

salasi 10-12-2008 01:06 PM

Quote:

Originally Posted by PATRINOS06 (Post 3307750)
Hi there.

I'm trying to set up squid3 as a transparent proxy for my home gateway.It uses eth0 (192.168.1.100) for the external network and eth1 (172.16.0.1) for the internal.

It uses a non-routable address for the external network and a routable address for the internal? Are you sure that you haven't interchanged these?

What does squid then connect to, an ethernet modem/router or something else?

PATRINOS06 10-12-2008 01:10 PM

an ethernet modem/router under 192.168.1.1 (bridged mode)


All times are GMT -5. The time now is 01:29 PM.