What's new

3proxy with multiple gateways

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

jiroko25

New Around Here
I recently flashed my ASUS AC66U with Merlin 380.70 and successfully installed Entware to run 3Proxy. Currently, I have 3 devices on my local network: the ASUS modem at 192.168.1.1, 4G modem #1 at 192.168.1.8, and 4G modem #2 at 192.168.1.9. My objective is to use the internet from either 4G modem on demand through 3Proxy.

Here's my current setup:

  • ASUS modem at 192.168.1.1
  • 4G modem #1 at 192.168.1.8
  • 4G modem #2 at 192.168.1.9
Previously, I achieved this by installing 3Proxy on a different computer on the network. However this is not an option now, I need to find a way to run 3Proxy directly from the ASUS modem.

I've been experimenting with routing and virtual interfaces for the past three days without success. Networking is not my strong suit, and I'm hoping to find some assistance here.

Any guidance on how to configure 3Proxy on the ASUS AC66U to use the gateways 192.168.1.8 or 192.168.1.9 on demand would be greatly appreciated. Thank you in advance for your help!
 
Resolved,
I needed to create a virtual interface say eth0:1 on an ip I choose, say 192.168.1.200
so my problem was when I tried adding another gateway I get an error that a default gateway exist
so this is how I was able to do it

Code:
ip route add default via 192.168.1.8 table 200
ip rule add from 192.168.1.200/32 table 200
iptables -t mangle -A PREROUTING -s 192.168.1.200 -j MARK --set-mark 1
ip rule add fwmark 1 table 200
ip route show table 200

Now I just bind to my virtual interface, and I get the request routed through 192.168.1.8 gateway
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top