In this network only port 8080 is allowed. I set up a Softether Server on a home server, and connected to it
After setting the priority of adapters, I can connect to Internet with the IP of the server on Windows PC.
However, when I try to set this up on my router(Openwrt/Linux), I cannot connect to the Internet.
I've created a virtual adapter and obtained IP address by using "dhclient".
I never used VPN before. so if you can help, please keep answers straightforward.
Connecting to Internet via Softether on Linux(Openwrt)
-
- Posts: 4
- Joined: Mon Mar 04, 2024 6:32 am
-
- Posts: 1517
- Joined: Sun Feb 14, 2021 10:31 am
-
- Posts: 4
- Joined: Mon Mar 04, 2024 6:32 am
Re: Connecting to Internet via Softether on Linux(Openwrt)
hey solo, thanks so much for your reply! There's still something I didn't get the point. In thread it says <server address> and <default GW>. I use a wireless connection, which gateway is 172.22.79.254, and connected to vpn server at 113.*.*.189. Should I exec
sudo ip route add 113.*.*.189 via 172.22.79
254
and delete default?
If so, I already tried that, didn't work :(
-
- Posts: 1517
- Joined: Sun Feb 14, 2021 10:31 am
Re: Connecting to Internet via Softether on Linux(Openwrt)
Code: Select all
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 enp0s3
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3
~~~ SE client connect to VPN Gate ~~~
netstat -tapn
tcp 0 0 10.0.2.15:33248 219.100.37.193:443 ESTABLISHED //a VPN Gate server
ip route add 219.100.37.193/32 via 10.0.2.2
ip route del default
dhclient vpn_vpn
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.245.254.254 0.0.0.0 UG 0 0 0 vpn_vpn
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3
10.245.0.0 0.0.0.0 255.255.0.0 U 0 0 0 vpn_vpn
219.100.37.193 10.0.2.2 255.255.255.255 UGH 0 0 0 enp0s3
curl ifconfig.me
219.100.37.245 //the VPN Gate server's IP
-
- Posts: 4
- Joined: Mon Mar 04, 2024 6:32 am
Re: Connecting to Internet via Softether on Linux(Openwrt)
hi solo!
Thanks for your reply! When I come to 'netstat -tapn', I found no entry that matches my vpn gate. As field 'Program Name' says, a process with name 'vpnclient' connected to 127.0.0.1. I have no idea about the reason (never used a local proxy)
Thanks for your reply! When I come to 'netstat -tapn', I found no entry that matches my vpn gate. As field 'Program Name' says, a process with name 'vpnclient' connected to 127.0.0.1. I have no idea about the reason (never used a local proxy)
-
- Posts: 1517
- Joined: Sun Feb 14, 2021 10:31 am
Re: Connecting to Internet via Softether on Linux(Openwrt)
host: public-vpn-185.opengw.net
port: 443
hub: VPNGATE
user: vpn
pass: vpn
This is the 219.100.37.193 server. Use it for tests. Check on OpenWrt forum for more info.
port: 443
hub: VPNGATE
user: vpn
pass: vpn
This is the 219.100.37.193 server. Use it for tests. Check on OpenWrt forum for more info.
-
- Posts: 4
- Joined: Mon Mar 04, 2024 6:32 am
Re: Connecting to Internet via Softether on Linux(Openwrt)
Thank you so much! I can use internet on my router now. Now I can dive into the next problem: all lan device are not connected to internet.
Anyway, thank you so much on helping me solving this problem!
Anyway, thank you so much on helping me solving this problem!