Yes sorry, wanted to edit to add detail, but couldn't as was my first post so had to be moderated.
Our web apps are also published externally through nginx, but ping and tracert both show traffic is taking the OVPN route to them.
client config:
dev tun
proto tcp
remote remote.DOMAIN_NAME.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\PATH_TO_CA_CERT"
cert "C:\\PATH TO CLIENT CERT"
key "C:\\PATH TO CLIENT KEY"
comp-lzo
verb 3
auth-user-pass
reneg-sec 0
auth-retry interact
And server:
port 1194
proto tcp
dev tun
ca /PATH TO CA CERT
cert / PATH TO HOST CERT
key /PATH TO KEY FILE
dh /etc/ssl/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.1.0.0 255.255.255.0"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
push "dhcp-option DNS 10.1.0.1"
plugin /opt/duo/duo_openvpn.so DUO_CREDENTIALS
reneg-sec 0
Our OVPN server also runs various web apps, so we run SSLH to allow port 443 sharing between SSL and OVPN, and this re-routes incoming traffic (to TCP 1194 in the case of OVPN). Any ideas why nginx sees OVPN clients as from their public ip (and hence is blocking them)? Many thanks.