I tried this solution but it didn't work. Basically, I can connect to my remote network via OpenVPN, but only to one IP on the network. For server-based connections, I employed port forwarding via ssh. This worked and I gained access to some resources but I still cannot connect to some network shares to which I need access.
Any ideas/hints/work-arounds?
EDIT - Here are the configs:
client
dev tun
proto udp
remote remote.mydomain.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert cert.crt
key key.key
comp-lzo
verb 3
server
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0. 255.255.255.0
ifconfig-pool-persist
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-kiey
persist-tun
status openvpn-status.log
verb 3
I should note that this configuration has worked for many months. It still works (sort of) in that I can access through the VPN tunnel the server where the VPN is running. I just cannot access the other IPs on the network without work-arounds (this is the new behavior).
The only thing I can think of that has changed is that I reconfigured a Drobo on the same network with samba.
EDIT 2 - Here is some more info on the network setup for this situation:
Where I sit is a local network: 192.168.5.0/24
Where I work is another local network: 192.168.1.0/24
VPN network: 10.8.0.0/24
On the 192.168.1.0 network, there are a couple servers (one of which is the OpenVPN server) and a couple network shares to which I need access. Using ssh port forwarding I can connect to the WRT router (192.168.1.1 - which has a port forward for the VPN, through port 1194) and another CRM server I need: 192.168.1.20. The machine running VPN (192.168.1.10) is the only accessible IP when I use my existing VPN configuration (see above) that, previously, worked well (this means, I had access to all networks shares, all servers, all local shared machines on the 192.168.1.0 network).
One of the network shares sits on 192.168.1.15. The Drobo I discussed earlier sits on the CRM server (192.168.1.20). The Drobo used to be a DroboShare, with its own IP (192.168.1.16). This was recently changed. I can mount the network shares discussed here on to 192.168.1.10 (since I can access this machine vis ssh), so technically I have access to everything I need. The problem is, it's is cumbersome to do it this way, especially since I was used to a VPN working as it should.
Hopefully this edit makes things more clear.
client-to-clientserver directive.I they're not on the VPN subnet but are instead connected to the server via a physical LAN with eg subnet 192.168.10.0 you'll need to add a
– imoatama Sep 17 '10 at 01:51push "route 192.168.10.0"directive to the server config.push "route". – nicorellius Sep 17 '10 at 16:30