What's new

Squid Transparent?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Shonk

Senior Member
I have been messing with squid on my server and fancy trying redirecting all web traffic from the ac88u to squid

can anyone point me to a script plz

i want to redirect all to 192.168.0.4 port 3128

do i have to give squid any custom setup for transparent?
 
iptables -t nat -I PREROUTING -i br0 -p tcp --dport 80 -j DNAT --to 192.168.0.4:3128

If the service is running on the router:

iptables -t nat -I PREROUTING -i br0 -p tcp --dport 80 -j REDIRECT --to-port 3128


Squid need to be configured first to work as transparent mode.

http_port 3128 transparent
 
I have been messing with squid on my server and fancy trying redirecting all web traffic from the ac88u to squid

can anyone point me to a script plz

i want to redirect all to 192.168.0.4 port 3128

do i have to give squid any custom setup for transparent?
Curious to know what your experience with squid is after you had some time testing with it. I tried it on my pfSense appliance. But I removed it after a few days. It was causing issues with streaming media being non responsive.
 
thanks any other ports?

iptables -t nat -I PREROUTING -i br0 -p tcp --dport 80 -j DNAT --to 192.168.0.4:3128

If the service is running on the router:

iptables -t nat -I PREROUTING -i br0 -p tcp --dport 80 -j REDIRECT --to-port 3128


Squid need to be configured first to work as transparent mode.

http_port 3128 transparent
 
You are welcome.

If you want to redirect other ports than 80 (http), you can also add -dport 443 (https), 21 (ftp), etc...
 
What is your goal with using squid? Transparent mode will quite often introduce "oddities" in some web behavior. I without a doubt prefer explicit mode and just block general outbound Internet access that isn't coming from my squid box.
 
Similar threads
Thread starter Title Forum Replies Date
T [Solved]Configure Policy based routing for transparent proxy Asuswrt-Merlin 6

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top