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

[Openvpn-users] still problem with server mode


  • Subject: [Openvpn-users] still problem with server mode
  • From: Canhua <dreameration@xxxxxxxxx>
  • Date: Wed, 12 Sep 2007 11:28:36 +0800

server side conf file:
port 1194
proto udp
dev tun
ca keys/ca.crt
cert keys/xxbvpnserver.crt
dh keys/dh1024.pem
server 10.237.1.0 255.255.255.0
client-to-client
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3

and "route" and "ifconfig" :
10.237.1.2      *               255.255.255.255 UH    0      0        0 tun0
10.137.0.27     *               255.255.255.255 UH    0      0        0 ppp27
10.137.0.21     *               255.255.255.255 UH    0      0        0 ppp6
10.137.0.20     *               255.255.255.255 UH    0      0        0 ppp18
10.137.0.18     *               255.255.255.255 UH    0      0        0 ppp19
10.137.0.16     *               255.255.255.255 UH    0      0        0 ppp1
10.137.0.15     *               255.255.255.255 UH    0      0        0 ppp12
10.137.0.13     *               255.255.255.255 UH    0      0        0 ppp8
10.137.0.12     *               255.255.255.255 UH    0      0        0 ppp13
10.137.0.11     *               255.255.255.255 UH    0      0        0 ppp10
10.137.0.10     *               255.255.255.255 UH    0      0        0 ppp9
10.137.0.9      *               255.255.255.255 UH    0      0        0 ppp3
10.137.0.8      *               255.255.255.255 UH    0      0        0 ppp16
10.137.0.7      *               255.255.255.255 UH    0      0        0 ppp5
10.137.0.6      *               255.255.255.255 UH    0      0        0 ppp11
10.137.0.5      *               255.255.255.255 UH    0      0        0 ppp7
10.137.0.4      *               255.255.255.255 UH    0      0        0 ppp0
10.137.0.3      *               255.255.255.255 UH    0      0        0 ppp4
10.137.0.2      *               255.255.255.255 UH    0      0        0 ppp2
10.237.1.0      10.237.1.2      255.255.255.0   UG    0      0        0 tun0
a.129.0.0      *               255.255.0.0     U     0      0        0 eth0
link-local      *               255.255.0.0     U     0      0        0 eth1
10.137.0.0      10.137.0.2      255.255.0.0     UG    0      0        0 ppp2
10.137.0.0      *               255.255.0.0     U     0      0        0 eth1
loopback        *               255.0.0.0       U     0      0        0 lo
default         a.b.c.d 0.0.0.0         UG    0      0        0 eth0

eth0      Link encap:Ethernet  HWaddr 00:11:43:CD:F7:7C
          inet addr:a.129.42.45  Bcast:a.129.255.255  Mask:255.255.0.0
          inet6 addr: 2001:*:*:81:211:43ff:fecd:f77c/64 Scope:Global
          inet6 addr: fe80::211:43ff:fecd:f77c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2019941446 errors:381 dropped:762 overruns:381 frame:0
          TX packets:2004470060 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2333029522 (2224.9 Mb)  TX bytes:3070383770 (2928.1 Mb)
          Base address:0xece0 Memory:fe1e0000-fe200000

eth1      Link encap:Ethernet  HWaddr 00:11:43:CD:F7:7D
          inet addr:10.137.0.1  Bcast:10.137.255.255  Mask:255.255.0.0
          inet6 addr: fe80::211:43ff:fecd:f77d/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0xdcc0 Memory:fdee0000-fdf00000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1715 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1715 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:133890 (130.7 Kb)  TX bytes:133890 (130.7 Kb)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.4  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:47660 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63735 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:3131469 (2.9 Mb)  TX bytes:17756859 (16.9 Mb)

ppp1      Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.16  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:8287 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8345 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1031916 (1007.7 Kb)  TX bytes:4849595 (4.6 Mb)

ppp2      Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:914560 errors:0 dropped:0 overruns:0 frame:0
          TX packets:826534 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:702472872 (669.9 Mb)  TX bytes:552404906 (526.8 Mb)

ppp3      Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.9  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:35520 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34198 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:2969072 (2.8 Mb)  TX bytes:21786817 (20.7 Mb)

ppp4      Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.3  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:48099 errors:0 dropped:0 overruns:0 frame:0
          TX packets:57377 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:3630328 (3.4 Mb)  TX bytes:58973942 (56.2 Mb)

pppp5      Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.7  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:1059040 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1081589 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:409381629 (390.4 Mb)  TX bytes:714168893 (681.0 Mb)

ppp6      Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.21  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:174 errors:0 dropped:0 overruns:0 frame:0
          TX packets:226 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:17668 (17.2 Kb)  TX bytes:14377 (14.0 Kb)

ppp7      Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.5  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:932 errors:0 dropped:0 overruns:0 frame:0
          TX packets:816 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:142181 (138.8 Kb)  TX bytes:460339 (449.5 Kb)

ppp8      Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.13  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:20665 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22960 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:4081528 (3.8 Mb)  TX bytes:4940355 (4.7 Mb)

ppp9      Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.10  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:685 errors:0 dropped:0 overruns:0 frame:0
          TX packets:448 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:56670 (55.3 Kb)  TX bytes:139369 (136.1 Kb)

ppp10     Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.11  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:12333 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10675 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:7184633 (6.8 Mb)  TX bytes:3701988 (3.5 Mb)

ppp11     Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.6  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:945990 errors:0 dropped:0 overruns:0 frame:0
          TX packets:690605 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:474457368 (452.4 Mb)  TX bytes:84153275 (80.2 Mb)

ppp12     Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.15  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:22838 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26564 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:2146392 (2.0 Mb)  TX bytes:25193579 (24.0 Mb)

ppp13     Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.12  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:2848503 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1649810 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:943032516 (899.3 Mb)  TX bytes:1979812424 (1888.0 Mb)

ppp16     Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.8  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:64990 errors:0 dropped:0 overruns:0 frame:0
          TX packets:47645 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:7425378 (7.0 Mb)  TX bytes:10758336 (10.2 Mb)

ppp18     Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.20  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:16610 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11811 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1526304 (1.4 Mb)  TX bytes:6687705 (6.3 Mb)

ppp19     Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.18  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:119623 errors:0 dropped:0 overruns:0 frame:0
          TX packets:120306 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:7574013 (7.2 Mb)  TX bytes:120422888 (114.8 Mb)

ppp27     Link encap:Point-to-Point Protocol
          inet addr:10.137.0.1  P-t-P:10.137.0.27  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:2907831 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1633773 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:3133063609 (2987.9 Mb)  TX bytes:123915098 (118.1 Mb)

tun0      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.237.1.1  P-t-P:10.237.1.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:2184 (2.1 Kb)  TX bytes:2184 (2.1 Kb)


Client side config file:
tls-client
pull
dev tun
proto udp
remote 61.129.42.45 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
ca keys/ca.crt
cert keys/rxp.crt
key keys/rxp.key
comp-lzo
verb 3
keepalive 10 120

and "route" and "ifconfig":
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.237.1.5      *               255.255.255.255 UH    0      0        0 tun0
10.237.1.0      10.237.1.5      255.255.255.0   UG    0      0        0 tun0
a.b.c.0     *               255.255.255.0   U     0      0        0 eth1
default         a.c.d.f   0.0.0.0         UG    0      0        0 eth1

eth1      Link encap:Ethernet  HWaddr 00:12:3F:24:D9:09
          inet addr:*.*.*.*  Bcast:61.129.42.255  Mask:255.255.255.0
          inet6 addr: 2001:*:*:212:3fff:fe24:d909/64 Scope:Global
          inet6 addr: fe80::212:3fff:fe24:d909/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:31164764 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12574221 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:2104361821 (1.9 GiB)  TX bytes:927327282 (884.3 MiB)
          Base address:0xdcc0 Memory:fdee0000-fdf00000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6508 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6508 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560760 (547.6 KiB)  TX bytes:560760 (547.6 KiB)

tun0      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.237.1.6  P-t-P:10.237.1.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:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:2184 (2.1 KiB)

______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users