[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Routing



Does it work if you add on the 192.168.1.4 machine a route:
10.3.0.0/255.255.255.252 192.168.1.2
?
 
Why don't you simply assign an address from the 192.168.1.x range to the VPN client ?
You are using tap device, so bridging should work.
 
Regards,
David
 


From: openvpn-users-bounces@xxxxxxxxxxxxxxxxxxxxx on behalf of probsd org
Sent: Tue 31-Jul-07 16:53
To: openvpn-users@xxxxxxxxxxxxxxxxxxxxx
Subject: [Openvpn-users] Routing

Hey Group, I have a pretty simple setup. My internal LAN is a 192.168.1.x 255.255.255.0 network. The OpenVPN server is running on 192.168.1.2 and the virtual IP is 10.3.0.1

I can connect to the VPN fine and use VNC and I can ping 192.168.1.2 just fine. However, I cannot ping 192.168.1.4 which I need to get to.

Below is my server and client conf files. I also have set the following in my Linksys Router routing table

Destination LAN IP: 10.3.0.0
Netmask: 255.255.255.252
Gateway IP: 192.168.1.2

server conf
----------------
local 192.168.1.2
port 1194
proto udp
dev tap
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.3.0.0 255.255.255.252
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
client-to-client
keepalive 10 120
tls-auth ta.key 0
comp-lzo
max-clients 20
persist-key
persist-tun
status openvpn-status.log
verb 3

client conf
---------------

client
dev tap
dev-node mytap
proto udp
remote 24.172.108.224 1194
resolv-retry infinite
nobind
persist-key
persist-tun
route 192.168.1.0 255.255.255.0 vpn_gateway 3
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
tls-auth ta.key 1
comp-lzo
verb 3

Thanks, Michael


Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.