Hello,
I've been trying to research this and troubleshoot for a few days to no avail so if anyone can point me in the right direction, it would be greatly appreciated.
I have a few machines at home, one is an ubuntu 14.04 server that serves up media and a personal cloud, another is a gaming pc running windows 8.1, an htpc running ubuntu 14.10 for watching movies in the den, and a headless raspberry pi that has a permanent VPN connection to my Private Internet Access VPN service. Usually all I do w/ this Pi is access Transmission Web GUI to add torrents for download.
All machines are directly behind an Asus RT-AC66R router. When I'm not home, I'd like to be able to access my home network machines remotely and securely, so I set up an OpenVPN server using the router's built in OpenVPN setup. It works great, and after much tinkering I was able to successfully connect to my home network and route my traffic through my OpenVPN server and also connect to LAN devices behind the router.
One thing though... I cannot for the life of me figure out why, but I can't connect to the raspberry pi remotely. From any local machine it can be pinged at it's local address (192.168.1.120) but it cannot be pinged through OpenVPN. I can ping any other machines at 192.168.1.105, 192.168.1.110, etc. etc. on the local network remotely.
client.ovpn (bold lines edited for security):
client
dev tun
proto tcp-client
remote server 1194
float
cipher AES-128-CBC
comp-lzo adaptive
keepalive 15 60
auth-user-pass
ns-cert-type server
<ca>
ca
</ca>
<cert>
cert
</cert>
<key>
key
</key>
resolv-retry infinite
nobind
server config:
Diagram might help:
RaspberryPi --- tun1 ------------------------------------------------------ PIA VPN --------------- (Internet)
|
|------- eth0 --------------------------------------------------------|
|
Gaming PC -- eth0 -----------------------------------------------| |
| |
Router (OpenVPN Server) --------------- (Internet)
| | |
HTPC ---- etho --------------------------------------------------| | |
| |
Media Server --- eth0 ------------------------------------------------| |
|
|---------- tun0 ----------------------------------------|
|
Laptop (Remote Connection)---- eth0 ---------------------------------------------------------------- (Internet)
I'm usually pretty tech saavy but this has gotten the better of me. If anyone has any suggestions, again, it would be greatly appreciated. Thanks in advance.