Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

LAN to 4G Modem Proxy Not Working / Run 2 Networks Same Time

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Derva
Posts: 2
Joined: 2018-11-20 07:13

LAN to 4G Modem Proxy Not Working / Run 2 Networks Same Time

#1 Post by Derva »

I'm very new to Linux and hope you guys can help me out here.

Setup Raspberry Pi 3B+, Raspbian & Squid Proxy latest versions.

Situation & Question
I try to create 4G Modem proxies via squid proxy but it is currently not working.
Understand that I'm able to create a proxy for the LAN connection and connect to my Rpi from an external network and use it as a proxy. (German VPS > Rpi in my home in the Netherlands)

I'm 100% certain that the 4G modem is working because when I unplug the LAN cable, wait 30 seconds and reconnect to the Rpi via VNC Viewer it connects and I can browse the web.
As soon as plugin the LAN cable again I need to wait 30 seconds again to reconnect.

As I'm new to this, after an extensive amount of tries I believe it has something to do with Raspbian not connecting to my LAN and 4G modem at the same time.
So when a 3128 request comes in, it can go out via LAN, but not via the 4G modem (while the modem is connected and has internet).

How can I resolve this?

Squid Proxy Config
http_access allow all <-- I'm not 100% sure from the top of my head that this is correct, but it is correct in my config file.

Does NOT Work

Code: Select all

http_port 3128
acl port1 myport 3128
acl 4g1 localip 192.168.178.200 # <--  Static internal IP from the LAN connection
tcp_outgoing_address 192.168.8.100 4g1 port1 # <-- IP that the 4G modem got
Works

Code: Select all

http_port 3128
acl port1 myport 3128
acl 4g1 localip 192.168.178.200 # <--  Static internal IP from the LAN connection
tcp_outgoing_address 192.168.178.200 4g1 port1 # <--  Static internal IP from the LAN connection
Also Works

Code: Select all

http_port 3128
acl port1 myport 3128
tcp_outgoing_address 192.168.178.200 port1
Maybe my assumption is incorrect, I don't really know, I'm working on this for 2 full days and 2 evenings but still not resolved and I don't know what to do anymore..
Hope you guys can help me out!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: LAN to 4G Modem Proxy Not Working / Run 2 Networks Same

#2 Post by Head_on_a_Stick »

Does it work if you try Debian instead of Raspbian?
deadbang

Derva
Posts: 2
Joined: 2018-11-20 07:13

Re: LAN to 4G Modem Proxy Not Working / Run 2 Networks Same

#3 Post by Derva »

I did not try that but I don't believe that is the solution.. I've also got the advice from someone that it has something to do with routing tables, but that also did not help..


Post Reply