go-dispatch-proxy icon indicating copy to clipboard operation
go-dispatch-proxy copied to clipboard

How to using it for windows to ubuntu vps

Open isaacbrh opened this issue 2 years ago • 1 comments
trafficstars

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

isaacbrh avatar Apr 11 '23 00:04 isaacbrh

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

extremecoders-re avatar Apr 11 '23 15:04 extremecoders-re