zoltanric 0 Posted ... I have multiple OpenVPN client connections setup on my pfSense router. Traffic on one of my subnets is configured to use the AirVPN interfaces for outgoing traffic. The DHCP server on the subnet gives out 10.4.0.1 as the DNS server and firewall rules are in place so no other DNS server can be queried on the subnet. On each of the client connections I have the Don't pull routes/Don't add/remove routes options enabled. In the past connections would pass the 10.4.0.0/16 subnet and 10.4.x.1 gateway to my routing table but wouldn't assign a default route or add other routing options. More recently my client connections would assign a route in the 10.x.x.0/24 range with a gateway at 10.x.x.1. And since I have the above options enabled I have no route to the 10.4.0.1 DNS server. Is there a way I can have the client connection add a route to 10.4.0.0/16 while avoiding having the connection assigned as the default route? Or should i use the default gateway addresses as the DNS servers instead? Quote Share this post Link to post
Staff 9973 Posted ... Hello! This happens with all "Generation 2" servers (see also https://airvpn.org/plans and https://airvpn.org/topic/28153-ipv6-support-and-new-smart-features ). 10.4.0.1 remains reachable from any other subnet (but not ping-able), however picking the VPN default gateway IP address as the DNS server address is a superior choice because it prevents any possible DNS hijacking through a route injection attack (the attacker anyway needs to control the immediate upstream router so in your case this risk is minimal or zero). Kind regards Quote Share this post Link to post
zoltanric 0 Posted ... picking the VPN default gateway IP address as the DNS server address is a superior choice I have five concurrent connections to specific servers close to my geographic location. If one assigns the 10.x.x.1 as the default gateway and 10.x.x.0/24 as the subnet will this persist on reconnects? Are the subnets static on a specific server or are client connections dynamically assigned to a random subnet? Quote Share this post Link to post
Staff 9973 Posted ... Hello! Subnets are static and unique for each OpenVPN daemon of each server, so you will never have overlapping subnets (useful for multihoming). However you can't know in advance which daemon your OpenVPN client will connect to due to our load balancing system. We are not sure but just in case you need to determine the VPN default gateway IPv4 address this might help:https://airvpn.org/topic/28793-monitor-ip/?do=findComment&comment=75755 Kind regards Quote Share this post Link to post
zoltanric 0 Posted ... Thanks for the help, that clears things up. Quote Share this post Link to post