You have configured it wrong
in the 3proxy file change to: 192.168.8.100 -> 192.168.0.100 is for ZTE
also change what you had to this:
sudo ip route add 192.168.8.0/24 dev eth1 table src 192.168.8.100 gw1
sudo ip route add default via 192.168.8.1 dev eth1 table gw1
sudo ip rule add from 192.168.8.100/32 table gw1
sudo ip rule add to 192.168.8.100/32 table gw1
You use: 192.168.8.1 because when you enter that in your adress bar when the dongle is conencted it will open the interface of the dongle thats why you use 192.168.8.1 instead of 192.168.0.1 (ZTE)
Should be working now.
hi, can you help me please with my proxy, I spent like 2 weeks non stop trying to make it work.
I'm using Huawei E3372, Odroid XU4 with Ubuntu Minimal 22.04 installed.
here are the interfaces:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.111 netmask 255.255.255.0 broadcast 192.168.1.255
ether 00:1e:08:34:f1:2e txqueuelen 1000 (Ethernet)
RX packets 55 bytes 6838 (6.8 KB)
RX errors 0 dropped 11 overruns 0 frame 0
TX packets 46 bytes 7588 (7.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.117 netmask 255.255.255.0 broadcast 192.168.8.255
ether 00:1e:10:1f:00:00 txqueuelen 1000 (Ethernet)
RX packets 5 bytes 676 (676.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 19 bytes 1776 (1.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 80 bytes 5920 (5.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 80 bytes 5920 (5.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I did put a static ip allocation on my router for eth0 192.168.1.111
eth0 is my wired connection, and eth1 is the 4g huawei dongle connection
I did put the following to /etc/iproute2/rt_tables
1 gw1
here is the content of 3proxy config file
#!/usr/local/bin/3proxy
daemon
pidfile /usr/local/etc/3proxy/3proxy.pid
nserver 1.1.1.1
nserver 1.0.0.1
nscache 65536
timeouts 1 5 30 60 180 1800 15 60
log /usr/local/etc/3proxy/log/3proxy.log D
logformat \"- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T\"
archiver rar rar a -df -inul %A %F
rotate 30
internal 0.0.0.0
external 0.0.0.0
authcache ip 60
auth strong
users user:CL

ass
allow user
proxy -p3128 -a -n -i0.0.0.0 -e192.168.8.117
both the following commands return two different ips if I don't enable net.ipv4.ip_forward=1
curl --interface eth0
https://eth0.me
curl --interface eth1
https://eth0.me
now I need the routing commands for my case, I tried so many combinations nothing worked.
if someone can help me it would be really appreciated.