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

Re: [Openvpn-users] Multi-Client Server problem


  • Subject: Re: [Openvpn-users] Multi-Client Server problem
  • From: "Cole" <cole@xxxxxxxxxxxx>
  • Date: Tue, 17 Jul 2007 22:53:44 +0200

Hi.

Before I do the ifconfig tun3 alias line, I cant ping anything, not
192.168.0.1 or any other ip that should be there.

Heres the output from the server without me adding any alias's to the tun
device.

tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet 192.168.0.1 --> 192.168.0.2 netmask 0xffffffff 
        Opened by PID 44359

Heres a tcpdump on tun1 on the server with client trying to ping
192.168.0.1:

# tcpdump -l -n -i tun1
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tun1, link-type NULL (BSD loopback), capture size 96 bytes
20:49:56.159176 IP 192.168.0.10 > 192.168.0.1: ICMP echo request, id 14724,
seq 1536, length 64
20:49:57.251863 IP 192.168.0.10 > 192.168.0.1: ICMP echo request, id 14724,
seq 1792, length 64
20:49:58.050506 IP 192.168.0.10 > 192.168.0.1: ICMP echo request, id 14724,
seq 2048, length 64
20:49:59.116247 IP 192.168.0.10 > 192.168.0.1: ICMP echo request, id 14724,
seq 2304, length 64
20:50:00.496433 IP 192.168.0.10 > 192.168.0.1: ICMP echo request, id 14724,
seq 2560, length 64
20:50:01.669230 IP 192.168.0.10 > 192.168.0.1: ICMP echo request, id 14724,
seq 2816, length 64
20:50:02.574288 IP 192.168.0.10 > 192.168.0.1: ICMP echo request, id 14724,
seq 3072, length 64

As you can see, no replies at all from server side.

-----Original Message-----
From: Erich Titl [mailto:erich.titl@xxxxxxxx] 
Sent: Tuesday, July 17, 2007 10:43 PM
To: cole@xxxxxxxxxxxx; openvpn-users@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Openvpn-users] Multi-Client Server problem

Hi

Cole schrieb:
> Hi.
> 
...

> 
> The client log:
> Tue Jul 17 19:56:16 2007 TUN/TAP device /dev/tun1 opened
> Tue Jul 17 19:56:16 2007 /sbin/ifconfig tun1 192.168.0.10 192.168.0.9 mtu
> 1500 netmask 255.255.255.255 up
> add net 192.168.0.1: gateway 192.168.0.9
> Tue Jul 17 19:56:16 2007 Initialization Sequence Completed
> 
> As you can see, everything connected fine and authentication completed
fine.
> However now is where the problem comes in, I cannot get a reply to any
> request. If I ping the remote end point from the client, I see the
following
> on both the client and server tun device:
> 
> # tcpdump -l -n -i tun1
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on tun1, link-type NULL (BSD loopback), capture size 96 bytes
> 17:54:24.113934 IP 192.168.0.10 > 192.168.0.9: ICMP echo request, id
40835,
> seq 5632, length 64
> 17:54:25.123957 IP 192.168.0.10 > 192.168.0.9: ICMP echo request, id
40835,
> seq 5888, length 64
> 17:54:26.169340 IP 192.168.0.10 > 192.168.0.9: ICMP echo request, id
40835,
> seq 6144, length 64
> 17:54:27.143516 IP 192.168.0.10 > 192.168.0.9: ICMP echo request, id
40835,
> seq 6400, length 64
> 17:54:28.549388 IP 192.168.0.10 > 192.168.0.9: ICMP echo request, id
40835,
> seq 6656, length 64
> 17:54:29.181950 IP 192.168.0.10 > 192.168.0.9: ICMP echo request, id
40835,
> seq 6912, length 64
> 
> As you can see, the server is receiving the icmp request, but its not
> replying to it. I found out that if i run the following line:
> # ifconfig tun1 alias 192.168.0.9 192.168.0.10
> 
> Then the ping starts working, and I can even ping 192.168.0.1. This is the
> output of tcpdump running on server now after running the ifconfig alias
> line:
> # tcpdump -l -n -i tun1
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on tun1, link-type NULL (BSD loopback), capture size 96 bytes
> 17:56:28.739707 IP 192.168.0.10 > 192.168.0.9: ICMP echo request, id
42627,
> seq 0, length 64
> 17:56:28.739727 IP 192.168.0.9 > 192.168.0.10: ICMP echo reply, id 42627,
> seq 0, length 64
> 17:56:29.509003 IP 192.168.0.10 > 192.168.0.9: ICMP echo request, id
42627,
> seq 256, length 64
> 17:56:29.509023 IP 192.168.0.9 > 192.168.0.10: ICMP echo reply, id 42627,
> seq 256, length 64
> 17:56:30.803112 IP 192.168.0.10 > 192.168.0.9: ICMP echo request, id
42627,
> seq 512, length 64
> 17:56:30.803132 IP 192.168.0.9 > 192.168.0.10: ICMP echo reply, id 42627,
> seq 512, length 64
> 
> 
> Any help or suggestions would be appreciated.

Try to ping 192.168.0.1 as this is the endpoint on the net

cheers

Erich


____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users