Hello, thanks for reading. I'm trying to use OpenVPN to treat my remote Ubuntu server as though it were on my home LAN. I want it to be able to mount my local network drive, and a few other things.
At this point, I can ping the server from systems on my home network, and I can mount my home folder on the server as a Samba share locally. I cannot, however, ping or do anything from the server to my home system. I can ping and access 10.8.0.1 from home. I cannot access home from 10.8.0.1.
I do not have much experience with OpenVPN or setting up these types of things. I've basically patched it all together by Googling, consulting IRC channels, etc. The consensus has been that I needed to set up split tunneling by adding...
route-nopull
route 10.8.0.0 255.255.255.252 vpn_gateway
...on the client-side.
At this point, DD-WRT's OpenVPN status tab seems to indicate some kind of success.
http://pastie.org/pastes/9691786/text?key=89nccmgnqddl0n2cy4qofa
Below is my server-side openvpn.conf file:
dev tun
port 31195
server 10.159.12.0 255.255.255.0
ifconfig-pool-persist ipp.txt
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
push "route 10.159.12.0 255.255.255.0"
push "redirect-gateway"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
group daemon
daemon
This is server.conf:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 213.186.33.99"
push "dhcp-option DNS 127.0.0.1"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
This is the client-side openvpn.conf
ca /tmp/openvpncl/ca.crt
cert /tmp/openvpncl/client.crt
key /tmp/openvpncl/client.key
management 127.0.0.1 16
management-log-cache 100
verb 3
mute 3
syslog
writepid /var/run/openvpncl.pid
client
resolv-retry infinite
nobind
persist-key
persist-tun
script-security 2
dev tun1
proto udp
cipher bf-cbc
auth sha1
remote ****MYSERVERIP*** 1194
comp-lzo adaptive
tun-mtu 1400
mtu-disc yes
fast-io
tun-ipv6
route-nopull
route 10.8.0.0 255.255.255.252 vpn_gateway
Another thing I noticed that may or may not be an issue - my server says it has a tun1 and a tun0. tun0 has the IP 10.159.12.1, tun1 has the ip 10.8.0.1. I have no idea why there are two tunnels, or if that is even important.
Thank you very much for reading and helping me out with this. I'm really at a loss, I can't seem to find any answers through Googling. Maybe I lack the vocabulary to do it effectively.