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

Kernels, 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: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

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?
Black Lives Matter

Debian buster-backports ISO image: for new hardware support

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..

User avatar
ortizfugh
Posts: 1
Joined: 2021-07-18 21:40

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

#4 Post by ortizfugh »

Hmm, the thread is already old, but I would like to say that I had a similar situation. I think I found an article on xtrium.com or something like that. I think that this problem appears due to the fact that for some devices the Internet connection must occur through a network that has administrator rights and you may have such a problem if you have more than one router installed in the house. It is best to contact the operator of Internet services. Also in my case, there was a problem in the operation of the SIM card. I inserted it from the router into the phone and rebooted the SIM card. I hope you coped with your problem and I suggested someone a solution to their problem.
Last edited by ortizfugh on 2021-07-21 16:20, edited 2 times in total.

arochester
Global Moderator
Global Moderator
Posts: 2015
Joined: 2010-12-07 19:55
Has thanked: 1 time
Been thanked: 2 times

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

#5 Post by arochester »

@ortizfugh

This post is 3 years old...

Forum for Raspbian >>> https://www.raspberrypi.org/forums/view ... c411403a0e

Post Reply