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
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
Code: Select all
http_port 3128
acl port1 myport 3128
tcp_outgoing_address 192.168.178.200 port1
Hope you guys can help me out!