Cannot set IPv4 route when using Softether VPN.
I am trying to set route for specific IP range through VPN.
But when connection is made it ends up putting 0.0.0.0/1 through VPN.
No problem when using SSTP, only for Softether VPN.
My setting
upload
Route after connection was made
upload
Problems with routing in Softether VPN
-
- Posts: 4
- Joined: Wed Dec 27, 2023 6:18 pm
Re: Problems with routing in Softether VPN
Hello,
this is not a bug but is expected behavior.
DHCP client sets default gateway when receiving DHCP_OP_ROUTER (0x03) option
The DHCP client is only used if a static address is not set.
However the VPN log shows what happens
this is not a bug but is expected behavior.
DHCP client sets default gateway when receiving DHCP_OP_ROUTER (0x03) option
The DHCP client is only used if a static address is not set.
However the VPN log shows what happens
-
- Posts: 4
- Joined: Wed Dec 27, 2023 6:18 pm
Re: Problems with routing in Softether VPN
That is not supposed to happened when "redirect gateway" is unchecked.
If that is supposed to happen.... how can I redirect just a specific target IP range through VPN (in my case 192.168.99.0/24) but not the public IP (such as google.com)?
When I am using SSTP that is not a problem with the same VPN server and the same route setting.
If that is supposed to happen.... how can I redirect just a specific target IP range through VPN (in my case 192.168.99.0/24) but not the public IP (such as google.com)?
When I am using SSTP that is not a problem with the same VPN server and the same route setting.
-
- Posts: 4
- Joined: Wed Dec 27, 2023 6:18 pm
Re: Problems with routing in Softether VPN
The "Redirect gateway" options is used to force the client to redirect all packets regardless of the server configuration.
This happens because they are two different protocols.
The SSTP protocol is configured through the PPP protocol, while the SoftEther protocol is configured with the DHCP protocol.
The SoftEther server Virtual HUB most likely has Secure NAT enabled. If so you can edit the Secure NAT configuration and remove the Default Gateway Address. In this way the DHCP client will no longer receive the DHCP_OP_ROUTER option and so not set the default routes
This happens because they are two different protocols.
The SSTP protocol is configured through the PPP protocol, while the SoftEther protocol is configured with the DHCP protocol.
The SoftEther server Virtual HUB most likely has Secure NAT enabled. If so you can edit the Secure NAT configuration and remove the Default Gateway Address. In this way the DHCP client will no longer receive the DHCP_OP_ROUTER option and so not set the default routes