I have an Ubuntu machine with 2 ethernet ports. eth0 has an ip of 192.168.1.10 and has UDP port 1194 forwarded to it by the router at 192.168.1.1. eth1 has 192.168.82.5 and is connected to another LAN with other 192.168.82.x machines on it. OpenVPN uses 10.85.230.0/24 for its IP subnet. I'm pushing 192.168.82.0/24 to the client and I've enable ip_forward. I have also set up a static route on my 192.168.82.1 router so that packets for 10.85.230.0/24 are sent to 192.168.82.5.
I've set up a test client on Mac OS X, and I'm able to bring the VPN up. From the client, which is 10.85.230.2, I can ping 10.85.230.1, and I can ping 192.168.82.5, but I'm unable to ping 192.168.82.4 (which is another machine on the .82 network).
My server config is (comments have been removed):
Code: Select all
port 1194
proto udp
dev tun
ca easy-rsa/keys/ca.crt
cert easy-rsa/keys/server.crt
key easy-rsa/keys/server.key # This file should be kept secret
dh easy-rsa/keys/dh2048.pem
topology subnet
server 10.85.230.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.82.0 255.255.255.0"
keepalive 10 120
cipher BF-CBC
comp-lzo
max-clients 100
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 5
mute 20
Code: Select all
client
dev tun
proto udp
resolv-retry infinite
nobind
user nobody
group nobody
persist-key
persist-tun
ca ca.crt
cert eduval.crt
key eduval.key
ns-cert-type server
cipher BF-CBC
comp-lzo
verb 3
Thanks!