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

Kernels & Hardware, configuring network, installing services

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

Postby Derva » 2018-11-20 09:54

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!
Derva
 
Posts: 2
Joined: 2018-11-20 07:13

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

Postby Head_on_a_Stick » 2018-11-20 16:03

Does it work if you try Debian instead of Raspbian?
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8322
Joined: 2014-06-01 17:46
Location: /dev/chair

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

Postby Derva » 2018-11-20 21:34

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..
Derva
 
Posts: 2
Joined: 2018-11-20 07:13


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable