Hello, Team,
I am using the SecureNAT in my VPN and I applied the static route table function to my VPN client. It worked fine after I submitted it. They can access the subnet I set. However, I found out that it won't work after I restart the VPN server, even though all the settings in the static route table function are unchanged. That means I have to go to "Edit static route table function" and submit a change after I restart the VPN server. For example, I had the setting 192.168.0.0/255.255.255.0/172.16.10.1 in it. I can see the same setting in "Edit static route table function", however, my client can not reach 192.168.0.X's resources until I go to "Edit static route table function" and click OK again without making any changes. After I click OK, everything works. I am wondering if this is a bug or if I have to do some setting. Thank you.
Static route table Issues
-
- Posts: 1636
- Joined: Sun Feb 14, 2021 10:31 am
Re: Static route table Issues
It works for me.
SEVPNSERVER v4.38
Code: Select all
net stop SEVPNSERVER
The SoftEther VPN Server service is stopping.
The SoftEther VPN Server service was stopped successfully.
net start SEVPNSERVER
The SoftEther VPN Server service was started successfully.
netstat -r
Network Destination Netmask Gateway Interface Metric
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 172.16.10.1 192.168.30.10 1
192.168.30.0 255.255.255.0 192.168.30.10 192.168.30.10 1
-
- Posts: 2
- Joined: Mon Aug 14, 2023 7:02 pm
Re: Static route table Issues
Sorry for confusion. My case is I am using a pc with Linux as vpn server, And I set the vpn server service will start when the Linux start. And I will turn on and turn off the pc every day. After I tun off the pc, and then turn on the pc. the vpn server will start, but the static route will lost.
-
- Posts: 1636
- Joined: Sun Feb 14, 2021 10:31 am
Re: Static route table Issues
It still works for me.
Code: Select all
root@ubuntu:/home/a# /usr/local/vpnserver/vpncmd localhost:443 /server /password:*** /adminhub:VPN /cmd DhcpGet
...
Version 4.34 Build 9745 (English)
Compiled 2020/04/05 23:39:56 by buildsan at crosswin
...
Item |Value
-------------------------------+-------------------------------------
Use Virtual DHCP Function |Yes
Start Distribution Address Band|192.168.30.10
End Distribution Address Band |192.168.30.200
Subnet Mask |255.255.255.0
Lease Limit (Seconds) |7200
Default Gateway Address |None
DNS Server Address 1 |None
DNS Server Address 2 |None
Domain Name |
Save NAT and DHCP Operation Log|No
Static Routing Table to Push |192.168.0.0/255.255.255.0/172.16.10.1
root@ubuntu:/home/a# reboot
Windows client: netstat -r
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.101.1 192.168.101.213 20
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
130.158.6.112 255.255.255.255 192.168.101.1 192.168.101.213 20
192.168.0.0 255.255.255.0 172.16.10.1 192.168.30.10 2 <---------
192.168.30.0 255.255.255.0 On-link 192.168.30.10 257