Open warren-bank opened 1 year ago
failed attempt:
Host *
CheckHostIP no
failed attempt:
sudo -s
# cat /home/tc/openvpn/log.txt
/usr/local/sbin/ip route add 192.168.0.0/24 via 10.114.204.1
failed attempt:
# https://www.qemu.org/docs/master/system/devices/net.html
sudo /usr/local/sbin/ip route add 10.0.2.15 via 10.114.204.1
failed attempt:
# https://www.qemu.org/docs/master/system/devices/net.html
sudo /usr/local/sbin/ip route add 10.0.2.2 via 10.114.204.1
restore access by host via loopback:
sudo /usr/local/sbin/ip route del 10.0.2.2
failed attempt:
# https://www.qemu.org/docs/master/system/devices/net.html
sudo /usr/local/sbin/ip route del 10.0.2.0/24
sudo /usr/local/sbin/ip route add 10.0.2.0/24 via 10.114.204.1
restore access by host via loopback:
sudo /usr/local/sbin/ip route del 10.0.2.0/24
sudo /usr/local/sbin/ip route add 10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15
successful workaround:
test environment:
url='http://ipv4.icanhazip.com/'
curl --silent "$url"
proxy='socks5h://127.0.0.1:1080'
curl --silent --proxy "$proxy" "$url"
test:
gost -L socks5://:1081 -F=socks5://127.0.0.1:1080?notls=true
proxy='socks5h://127.0.0.1:1081'
curl --silent --proxy "$proxy" "$url"
proxy='socks5h://192.168.0.2:1081'
curl --silent --proxy "$proxy" "$url"
notes:
OpenSSH config:
GatewayPorts yes
successful test performed by host:
failed test performed by host:
background: