Page 1 of 1

Test Ping clarification required

Posted: Tue Mar 27, 2012 7:38 am
by katvis
Hi
I am new to OpenVPN. I need to verify that I understand the ping test correctly.

I have setup 2 Linux machines.

The Server starts up the VPN link and opens a tun device with:
inet addr:10.0.1.1 P-t-P:10.0.1.2 Mask:255.255.255.255

Then I start the Client and it creates a tun device with tun0 local 10.0.1.6 peer 10.0.1.5

I found that can can ping the server from the client when using an IP of 10.0.1.1 and from the server I can ping 10.0.1.6.
I cannot ping from the client 10.0.1.5, the 'peer' IP.

Is this the working or what?
This means I should ignore the p-to-p IP of 10.0.1.5?

Thanks

Re: Test Ping clarification required

Posted: Tue Mar 27, 2012 9:30 am
by janjust
this is normal behaviour for the default 'net30' mode. the P-t-P remote endpoint is not pingable, but it IS needed for the VPN to function correctly.
You can also switch to 'topology subnet' mode to assign only a single IP to a client.

Re: Test Ping clarification required

Posted: Wed Mar 28, 2012 7:43 am
by katvis
Thanks very much for the quick response. :D