Access Server not routing past the tunnel
Posted: Sun Jan 08, 2023 3:32 am
I've been using OpenVPN AS 2.1.2 for many years without issue running on a CentOS7 host. I'm trying to deploy a new system using Rocky Linux (tried both 8 and 9) and OpenVPN AS 2.11.1, and even though I am using much of the same configuration as my previous setup, I cannot get it to work.
Dynamic IP Address Network - 172.27.224.0/20
Internal Network on the VPN: 10.0.0.0/22
Internal Host used for testing: 10.2.2.1
When connected using the OpenVPN client, if I try to run a 'tracert -d 10.2.2.1', it hits the address of the tunnel interface on the AS (172.27.232.1), and then just stops. If I fire up the old 2.1.2 AS and connect, the second hop will be the gateway I've configured in the routing table on the server for that network (10.0.0.250). I know the host has the routes setup correctly since I can ping that IP (10.2.2.1) when logged into the server running the OpenVPN AS.
I do have SELinux set to 'permissive' and 'net.ipv4.ip_forward' is set to 1. I tried adding the tunnel interfaces to the 'public' zone with 'firewall-cmd', but this did not help. Does anyone have any suggestions as why traffic out of the tunnels is not getting routed?
Dynamic IP Address Network - 172.27.224.0/20
Internal Network on the VPN: 10.0.0.0/22
Internal Host used for testing: 10.2.2.1
When connected using the OpenVPN client, if I try to run a 'tracert -d 10.2.2.1', it hits the address of the tunnel interface on the AS (172.27.232.1), and then just stops. If I fire up the old 2.1.2 AS and connect, the second hop will be the gateway I've configured in the routing table on the server for that network (10.0.0.250). I know the host has the routes setup correctly since I can ping that IP (10.2.2.1) when logged into the server running the OpenVPN AS.
I do have SELinux set to 'permissive' and 'net.ipv4.ip_forward' is set to 1. I tried adding the tunnel interfaces to the 'public' zone with 'firewall-cmd', but this did not help. Does anyone have any suggestions as why traffic out of the tunnels is not getting routed?