Some assistance would be great. I am using an outside provider for VPN (privateinternetaccess)
I have a media server that I have setup OpenVPN client on and configured it to use VPN for private internetaccess
client
dev tun
proto udp
remote us-east.privateinternetaccess.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
tls-client
remote-cert-tls server
auth-user-pass login.conf
comp-lzo
verb 1
reneg-sec 0
crl-verify crl.pem
I am able to login to the service fine but since I have a media server running on this box I need to be able to access some services that are running via the web (WAN) outside my network.
For example.
My Phone over the internet to my public ip and port to the media server ip and port.
The port forwarding it already setup on my router which works fine when the VPN Client is turrned off, but once it is enabled i can no longer connect to the external ip and port via the web.
If I enable route-nopull this allows the connections but essentially disables the vpn as it shows my external ip instead of my vpn.
How do I configure OpenVPN client / Linux Debian distro to route all traffic through the VPN but allow the few ports that I want to open to be able to be connected to outside of the network.
Please assist me