extremecoders-re / go-dispatch-proxy

SOCKS5/Transparent load balancing proxy developed in Go, combines multiple internet connections
MIT License
278 stars 45 forks source link

How to using it for windows to ubuntu vps #32

Open isaacbrh opened 1 year ago

isaacbrh commented 1 year ago

I want to use go-dispatch to conect to my vps! Using 2 or more internet connection on my windows pc to my ubntu vps ! its posabale? Server side code? Pc side go-dispatch

extremecoders-re commented 1 year ago

This is possible.

First set up two SSH tunnels from your PC to the VPS. Use the binding feature in ssh.

From the man pages,

-b bind_address
             Use bind_address on the local machine as the source address of
             the connection.  Only useful on systems with more than one
             address.

Something like,

D:\> ssh -D 127.0.0.1:7777 -b <interface1_ip> user@<vps_ip>
D:\> ssh -D 127.0.0.1:7778 -b <interface2_ip> user@<vps_ip>

where interface1_ip & interface2_ip are the IP addresses of the two interfaces on your windows PC.

Then you can use go-dispatch-proxy to load balance the two SSH tunnels.

go-dispatch-proxy.exe -tunnel 127.0.0.1:7777 127.0.0.1:7778