marcofarnezi
Posts: 3
Joined: Tue Apr 09, 2019 1:52 pm

Making a proxy with Squid

Tue May 14, 2019 7:00 pm

Hello guys.
I have a config problem in my raspberry pi 3.
I need to use an ethernet port to access my raspberry with fixed IP and I need to configure a 4g modem in a USB port with fixed IP too.

I'll to use that raspberry like an internet proxy. For this, I'm using the squid to redirect the traffic to the 4g modem.

I'm using raspbian OS to try this solution.
This is my network configuration:
/etc/network/interfaces

Code: Select all

auto eth0
iface eth0 inet static
    address 192.168.0.49
    netmask 255.255.255.0
    gateway 192.168.0.1Hello guys. 

auto usb0
iface usb0 inet static
    address 10.4.4.123
    netmask 255.255.255.0
So, I want to redirect this traffic using a proxy. Every PC that uses the IP 192.168.0.49:3128 to go out will use the modem(usb0) to access the internet.
/etc/squid/squid.conf

Code: Select all

[...]
tcp_outgoing_address 10.4.4.123
When I can configure the ethernet port correctly, I can't access the 4g internet and vice versa.

I think that a route configuration will resolve but I could not make it work until now.

Someone could help me?

Shoss1
Posts: 1
Joined: Sun Jun 09, 2019 2:12 pm

Re: Making a proxy with Squid

Sun Jun 09, 2019 2:14 pm

I'm having the exact same issue. Did you manage to make this work? Anyone else has an idea?

Return to “Networking and servers”