bwhiteford
Hello all,
Thanks for the great forum. I've been doing some digging on this question to make sure it hasn't been asked elsewhere, and so far have not found an answer.
I have an OpenVPN client on a Raspberry Pi that connects to an OpenVPN server running on pfSense. The VPN portion works just fine. The issue is that I need to be able to access that Raspberry Pi on the local network it sits on, even when it is connected to VPN using its local IP address. For example, the Pi has wired IP address of 192.168.0.10, and the remote network is 10.0.0.0/24. Before I connect to VPN, I can access the Pi (by SSH, for example) at 192.168.0.10 from other devices on that same 192.168.0.0/24 network. As soon as I connect to VPN, the Pi gets an address from the pfSense server, but I am no longer able to reach it by SSH, ping or any other method at 192.168.0.10 from the 192.168.0.0/24 network. As soon as I disconnect VPN, I'm able to reach it again.
Thanks for your help!
dev tun
float
persist-tun
persist-key
ping-timer-rem
keepalive 15 30
cipher AES-256-CBC
auth SHA1
tls-client
client
resolv-retry infinite
remote hq.myvpnsite.com 443 tcp-client
verify-x509-name "Common Name" name
auth-user-pass /etc/openvpn/client/vpn.login
pkcs12 /etc/openvpn/client/router-TCP4-443-cdsclient.p12
tls-auth /etc/openvpn/client/router-TCP4-443-cdsclient-tls.key 1
remote-cert-tls server
comp-lzo no
pull-filter ignore redirect-gateway
log /etc/openvpn/openvpn.log