|
|
Hi, I have just set the openvpn as routing. At the bottom of the email I will insert all the configuration files, routing tables and other details. Here is the following. Server network 192.168.0.0 tun0 10.1.0.1 eth1 192.168.0.1 Client netwok 192.168.1.0 tun0 10.1.0.6 eth1 192.168.1.254 The openvpn server is setting the tun0 IP to 10.1.0.1 and pointing it to 10.1.0.2 The client is set tun0 to 10.1.0.6 and point it to 10.1.0.5 So far so good The vpn is established and the server can ping the clients tun0 and the client can ping the server tun0 After that, for testing (i have tryied using the config files to) I add the routes on the server and client by hand At the server: route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.1.0.2 At the client route add -net 192.168.0.0 netmask 255.255.255.0 gw 10.1.0.5 The client can ping 192.168.0.1 and a internal machine with the IP 192.168.0.10 The server cannot ping 192.168.1.254 or any other machine on the client side What's wrong? I used an older beta version of the 2.0 Openvpn, now I'm using the stable one and nothing works Here are the routes and files... Thanks for your help. // Server -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Destination Gateway Genmask Flags Metric Ref Use Iface 200.217.255.169 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 10.1.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 10.20.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.1.0 10.1.0.2 255.255.255.0 UG 0 0 0 tun0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 10.1.0.0 10.1.0.2 255.255.255.0 UG 0 0 0 tun0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo //Server.conf -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- port 5000 proto udp server 10.1.0.0 255.255.255.0 dev tun ca ca.crt cert server.crt key server.key dh dh1024.pem ifconfig-pool-persist ipp.txt client-to-client keepalive 10 120 user nobody group nobody persist-key persist-tun status openvpn-status.log log openvpn.log log-append openvpn.log verb 4 daemon //Client -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.1.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 200.100.11.67 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.0.0 10.1.0.5 255.255.255.0 UG 0 0 0 tun0 10.1.0.0 10.1.0.5 255.255.255.0 UG 0 0 0 tun0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 200.100.11.67 0.0.0.0 UG 0 0 0 ppp0 //Client.conf -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- client dev tun proto udp remote exista.no-ip.info 5000 resolv-retry infinite nobind ;ns-cert-type client ;ns-cert-type server user nobody group nobody persist-key persist-tun ca ca.crt cert openvpncliente1.crt key openvpncliente1.key ;comp-lzo verb 4 persist-key persist-tun log openvpn.log daemon ____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-06/msg00022.html on line 295 Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-06/msg00022.html on line 295 |