Answer the question
In order to leave comments, you need to log in
How to forward a port through squid?
The bottom line is this:
the Internet goes through a proxy that has authorization, everything goes through port 8080.
You need to get rid of this authorization by installing a gateway. Those. end users do not have to configure anything at all - plug in the wire and you are on the Internet.
There is a computer with two setevukha and Debian on board - it will be a gateway.
HDCP is configured on the local network, the external Internet is obtained by static.
Installed and configured squid according to this instruction:
Instruction on Habré
authorization is done like this:
cache_peer DOMAINIP parent 8080 0 no-query no-digest default login=LOGIN:PASSWORD
never_direct allow all
dns_v4_first on
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl my_network src 192.168.100.0/24
cache_peer DOMAINIP parent 8080 0 no-query no-digest default login=LOGIN:PASSWORD
never_direct allow all
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 CONNECT method CONNECT
http_access allow my_network
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
coredump_dir /var/spool/squid3
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
shutdown_lifetime 5.00 second
cache_dir ufs /var/cache/squid 2048 16 256
maximum_object_size 10024.00 bytes
Answer the question
In order to leave comments, you need to log in
I filed an opaque proxy, made a wpad.dat file - threw it where it should, it seems to work.
you need to wrap the ssl port to your proxy, something like this:
iptables -t nat -A PREROUTING -i $LAN -p tcp --dport 443 -j DNAT --to $IP:3128
iptables -t nat -A PREROUTING -i $WAN -p tcp --dport 443 -j REDIRECT --to-port 3128
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question