I need to send all of my traffic from the first server to another one, for that I used shuttle but after executing the following command
sshuttle -r username@sshserver 0.0.0.0/0 -vv
it paused in the following line:
s: assembling 'sshuttle' (88 bytes)
s: assembling 'sshuttle.cmdline_options' (85 bytes)
s: assembling 'sshuttle.helpers' (2853 bytes)
s: assembling 'sshuttle.ssnet' (5805 bytes)
s: assembling 'sshuttle.hostwatch' (2522 bytes)
s: assembling 'sshuttle.server' (3789 bytes)
s: latency control setting = True
s: > channel=0 cmd=PING len=7 (fullness=0)
s: auto-nets:False
s: > channel=0 cmd=ROUTES len=0 (fullness=7)
s: Waiting: 1 r=[0] w=[1] x=[] (fullness=7/0)
s: Ready: 1 r=[] w=[1] x=[]
s: mux wrote: 15/15
s: Waiting: 1 r=[0] w=[1] x=[] (fullness=7/0)
s: Ready: 1 r=[] w=[1] x=[]
s: mux wrote: 8/8
s: Waiting: 1 r=[0] w=[] x=[] (fullness=7/0)
c : Connected to server.
c : Waiting: 2 r=[5, 7, 9] w=[9] x=[] (fullness=7/0)
c : Ready: 2 r=[9] w=[9] x=[]
c : < channel=0 cmd=PING len=7
c : > channel=0 cmd=PONG len=7 (fullness=7)
c : < channel=0 cmd=ROUTES len=0
fw: Got subnets: [(2, 0, False, '0.0.0.0', 0, 0), (2, 32, True, '127.0.0.1', 0, 0), (10, 128, True, '::1', 0, 0)]
fw: Got nslist: []
fw: Got ports: 12300,12300,0,0
fw: Got udp: False, user: None, tmark: 0x01, sshuttle_pid: 75459
fw: setting up.
fw: setting up IPv6.
fw: ip6tables -w -t nat -N sshuttle-12300
fw: ip6tables -w -t nat -F sshuttle-12300
fw: ip6tables -w -t nat -I OUTPUT 1 -j sshuttle-12300
fw: ip6tables -w -t nat -I PREROUTING 1 -j sshuttle-12300
fw: ip6tables -w -t nat -A sshuttle-12300 -j RETURN -m addrtype --dst-type LOCAL
fw: ip6tables -w -t nat -A sshuttle-12300 -j RETURN --dest ::1/128 -p tcp
fw: setting up IPv4.
fw: iptables -w -t nat -N sshuttle-12300
fw: iptables -w -t nat -F sshuttle-12300
fw: iptables -w -t nat -I OUTPUT 1 -j sshuttle-12300
fw: iptables -w -t nat -I PREROUTING 1 -j sshuttle-12300
fw: iptables -w -t nat -A sshuttle-12300 -j RETURN -m addrtype --dst-type LOCAL
fw: iptables -w -t nat -A sshuttle-12300 -j RETURN --dest 127.0.0.1/32 -p tcp
fw: iptables -w -t nat -A sshuttle-12300 -j REDIRECT --dest 0.0.0.0/0 -p tcp --to-ports 12300
fw: which() found 'resolvectl' at /usr/bin/resolvectl
fw: Flushing systemd's DNS resolver cache: resolvectl flush-caches
c : mux wrote: 15/15
c : mux wrote: 15/15
c : Waiting: 2 r=[5, 7, 9] w=[] x=[] (fullness=14/0)
s: Ready: 1 r=[0] w=[] x=[]
s: < channel=0 cmd=PING len=7
s: > channel=0 cmd=PONG len=7 (fullness=7)
s: < channel=0 cmd=PONG len=7
s: received PING response
s: mux wrote: 15/15
s: Waiting: 1 r=[0] w=[] x=[] (fullness=0/0)
c : Ready: 2 r=[9] w=[] x=[]
c : < channel=0 cmd=PONG len=7
c : received PING response
c : Waiting: 2 r=[5, 7, 9] w=[] x=[] (fullness=0/0)
c : Ready: 2 r=[7] w=[] x=[]
c : Accept TCP: 103.215.221.150:59122 -> 18.225.36.18:80.
c : > channel=1 cmd=TCP_CONNECT len=17 (fullness=0)
c : new channel: 1
c : Waiting: 3 r=[5, 7, 8, 9] w=[9] x=[] (fullness=17/0)
c : Ready: 3 r=[8] w=[9] x=[]
c : mux wrote: 25/25
c : > channel=1 cmd=TCP_DATA len=220 (fullness=17)
c : Waiting: 3 r=[5, 7, 8, 9] w=[9] x=[] (fullness=237/0)
c : Ready: 3 r=[] w=[9] x=[]
c : mux wrote: 228/228
c : Waiting: 3 r=[5, 7, 8, 9] w=[] x=[] (fullness=237/0)
both of my servers are using Centos-8.