Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-09-2019, 09:00 AM   #1
LQ Newbie
Registered: Jun 2019
Posts: 1

Rep: Reputation: Disabled
Help setting up a proxy server with Squid on Raspbian

I'd like to use Squid to set up a proxy server on a Raspberry Pi and am having some trouble.

My Pi is connected to two networks - Network1 via ethernet and Network2 via wifi, and I would Squid to redirect traffic coming from Network1 to Network2.

I am using the default Squid config with the following line, to make sure the traffic comes out of Network2:
( is the Pi's IP in Network2).

Unfortunately, when trying to connect to the proxy through other machines, I am getting an error from Squid (The requested URL could not be retrieved; connection timed out). I'm getting this error on public websites which are accessible through either network (e.g
Note: when not using the tcp_outgoing_address directive the proxy works, but it uses Network1 rather the one I want.

This is the output I get when running `route -n`:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    100    0        0 eth0         UG    303    0        0 wlan0   U     100    0        0 eth0   U     303    0        0 wlan0
I have successfully used a practically identical Squid config in the past to make this kind of setup work on Windows, which is why I believe it's a Linux-level config issue. Help would be greatly appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Raspbian GNU/Linux upgrade from Jessie to Raspbian Stretch 9 LXer Syndicated Linux News 0 03-01-2018 07:50 PM
LXer: Raspbian GNU/Linux upgrade from Wheezy to Raspbian Jessie 8 LXer Syndicated Linux News 1 06-09-2016 12:12 PM
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 01:16 PM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
Need help to connect a squid proxy to connect to another squid proxy server bellerophon Linux - Newbie 1 02-07-2006 06:52 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration