Marco wrote:
> hi all,
> I have configured a vpn with openvpn: I can open the channel but I can
> not go over... As you can see I get the two ip address
>
> tun0 Link encap:UNSPEC HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> inet addr:192.168.100.6 P-t-P:192.168.100.5 Mask:
> 255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:530 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:0 (0.0 B) TX bytes:43432 (43.4 KB)
>
> but I can ping only my peer and not the other peer.. I mean I can not
> ping the server and the internal network
>
> This is the network by serverside:
>
> tun0 Link encap:UNSPEC HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> inet addr:192.168.100.1 P-t-P:192.168.100.2 Mask:
> 255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
> RX packets:578 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:47464 (46.3 Kb) TX bytes:0 (0.0 b)
They are talking - serverside has received packets, clientside sent.
>
> and this is the configuration file
>
> local 192.168.1.5
> port 5001
> proto udp
> dev tun
> tls-server
> comp-lzo
> mtu-test
> mode server
> tls-server
> dh ssl/bsi_dh_1024.pem
> ca ssl/bsi_ca_cert.pem
> cert ssl/bsi_server_cert.pem
> key ssl/bsi_server.key.pem
> crl-verify ssl/bsi_ca_crl.pem
> server 192.168.100.0 255.255.255.0
> duplicate-cn
Just curios: Why this? Might open a hole in security.
> keepalive 60 600
> status openvpn-status-RW.log
> log openvpn-RW.log
> log-append openvpn-RW.log
> verb 4
> mute 20
>
> Moreover the ip_forward is 1
[snip]
> It seems that something is missing but... what? Could you help me?
Did you try to ping your VPN-endpoint from the client, in this case
192.168.100.5? If that works, your VPN is set up. Next thing: You need a
route on the client, telling it that 192.168.1.0/24 is to be reached via gw
192.168.100.5 dev tun0.
This is set up via push-route in the server's vpn configuration file.
If you need your VPN server to be a DNS server for VPN clients, you also
need to push some DHCP-options which Windows OpenVPN will understand, in
Linux you need a tunnel-up and tunnel-down script to
modify /etc/resolv.conf with DHCP options received from openvpn server.
HTH,
Felix
|