Quantcast
Channel: OpenVPN Support Forum
Viewing all articles
Browse latest Browse all 268

Server Administration • Re: [SOLVED] sitnl_send Invalid argument, Linux can't add IP to interface tun2

$
0
0
This response is for those who read this post and its solution to disable topology subnet (and revert to topology net30) but would like to use:

Code:

topology subnet
in their OpenVPN Server configurations.

The reason the client configuration triggers an error when configuring a static IP address as follows:

Code:

ifconfig-push 10.8.0.101 10.8.0.102
is because topology subnet expects an IP address and subnet mask to be configured as opposed to two IP addresses as is necessary in the case of the default topology net30. Therefore, when your server is configured with topology subnet, use the following client configuration to push an IP address:

Code:

ifconfig-push <IP address> <subnet mask>
For example:

Code:

ifconfig-push 10.8.0.100 255.255.255.0
Make sure that the IP address is assigned in a routable network on the VPN server. If you just want to assign static IP addresses, use the default server subnet for clients.

Statistics: Posted by ezoer — Sun Dec 29, 2024 7:37 am



Viewing all articles
Browse latest Browse all 268

Trending Articles