I was able to do it using other tech different than openvpn for TCP connections but UDP not . Before I did them:
1-I used redsocks smoothly to direct all tcp conenctions. But could't do it for UDP. 2- I used ssh dynamic tunneling and created a socks proxy. I used it with redsocks. But still couldnt do it for UDP.
So I considered using openvpn to get all my traffic and use internet for UDP and TCP behind dorm proxy.
I used http-proxy settings to use my dorm proxy once. It could be Authenticated and sequenced succesfully but couldn't use internet.
I used socks-proxy settings to use my ssh dynamic tunnel through dorm proxy. It could be Authenticated and sequenced succesfully but couldn't use internet, either.
I am forcing my openvpn to use TCP only because I know the restrictions about using udp with proxies.
I can use my openvpn server with cellphone internet smoothly but can't connect internet with dorm network.
It is my last week in my school and I never tried to do anything forbidden. I just want to know HOW in my last week. If you help, I appreciate you !
it is my client.ovpn's critic part:
Code: Select all
remote amazon-ec2-ip 443 tcp
route amazon-ec2-ip 255.255.255.255 net_gateway
dev tun
dev-type tun
http-proxy school-proxy-ip 3128 ntlm ntlm // it use ntlm auth. so I prepare ntlm file to auth it, it works dont worry.
http-proxy-timeout 5m
http-proxy-retry
allow-pull-fqdn
redirect-gateway def1
Code: Select all
Thu Aug 5 11:12:22 2021 ROUTE_GATEWAY 10.10.120.1/255.255.248.0 IFACE=wlp5s0 HWADDR=MY_MAC_ADDRESS
Thu Aug 5 11:12:22 2021 TUN/TAP device tun0 opened
Thu Aug 5 11:12:22 2021 TUN/TAP TX queue length set to 100
Thu Aug 5 11:12:22 2021 /sbin/ip link set dev tun0 up mtu 1500
Thu Aug 5 11:12:22 2021 /sbin/ip addr add dev tun0 172.27.224.54/20 broadcast 172.27.239.255
Thu Aug 5 11:12:27 2021 ROUTE remote_host is NOT LOCAL
Thu Aug 5 11:12:27 2021 /sbin/ip route add SCHOOL-PROXY-IP/32 via 10.10.120.1
Thu Aug 5 11:12:27 2021 /sbin/ip route add 0.0.0.0/1 via 172.27.224.1
Thu Aug 5 11:12:27 2021 /sbin/ip route add 128.0.0.0/1 via 172.27.224.1
Thu Aug 5 11:12:27 2021 /sbin/ip route add AMAZON-EC2-IP32 metric 101 via 10.10.120.1
Thu Aug 5 11:12:27 2021 Initialization Sequenced Completed