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

[Openvpn-users] Problem with redirect-gatewway local


  • Subject: [Openvpn-users] Problem with redirect-gatewway local
  • From: Erich Titl <erich.titl@xxxxxxxx>
  • Date: Sat, 05 Aug 2006 14:24:21 +0200

Hi folks

this is a heads up for 2.0.7

I am running a server instance on a linux appliance and clients on XP
Home edition (WLAN)

-when specifying --redirect-gateway on the server everything is OK

when using the local parameter the tunnel is unusable

these are dumps of the routing table on XP

C:\Dokumente und Einstellungen\mega>route print
===========================================================================
Schnittstellenliste
0x1 ........................... MS TCP Loopback interface
0x2 ...00 15 f2 57 1b e0 ...... ASUS 802.11g Netzwerkadapter -
Paketplaner-Minip
ort
0x3 ...00 ff 20 dd b9 f2 ...... TAP-Win32 Adapter V8 - Paketplaner-Miniport
0x10005 ...00 15 f2 38 40 2d ...... Realtek RTL8139/810x Family Fast
Ethernet NIC
===========================================================================
===========================================================================
Aktive Routen:
Netzwerkziel    Netzwerkmaske     Gateway       Schnittstelle     Anzahl
0.0.0.0         0.0.0.0           10.111.2.33   10.111.2.34       1
10.111.2.1      255.255.255.255   10.111.2.33   10.111.2.34       1
10.111.2.32     255.255.255.252   10.111.2.34   10.111.2.34       30
10.111.2.34     255.255.255.255   127.0.0.1     127.0.0.1         30
10.255.255.255  255.255.255.255   10.111.2.34   10.111.2.34       30
127.0.0.0       255.0.0.0         127.0.0.1     127.0.0.1         1
192.168.2.0     255.255.255.0     192.168.2.4   192.168.2.4       1
192.168.2.4     255.255.255.255   127.0.0.1     127.0.0.1         1
192.168.2.255   255.255.255.255   192.168.2.4   192.168.2.4       1
224.0.0.0       240.0.0.0         10.111.2.34   10.111.2.34       30
224.0.0.0       240.0.0.0         192.168.2.4   192.168.2.4       1
255.255.255.255 255.255.255.255   10.111.2.34   10005             1
255.255.255.255 255.255.255.255   10.111.2.34   10.111.2.34       1
255.255.255.255 255.255.255.255   192.168.2.4   192.168.2.4       1
Standardgateway:       10.111.2.33
===========================================================================
Ständige Routen:
  Keine

Here is the routing table which runs

===========================================================================
Schnittstellenliste
0x1 ........................... MS TCP Loopback interface
0x2 ...00 15 f2 57 1b e0 ...... ASUS 802.11g Netzwerkadapter -
Paketplaner-Minip
ort
0x3 ...00 ff 20 dd b9 f2 ...... TAP-Win32 Adapter V8 - Paketplaner-Miniport
0x10005 ...00 15 f2 38 40 2d ...... Realtek RTL8139/810x Family Fast
Ethernet NIC
===========================================================================
===========================================================================
Aktive Routen:
Netzwerkziel    Netzwerkmaske     Gateway       Schnittstelle     Anzahl
0.0.0.0         0.0.0.0           10.111.2.33   10.111.2.34       1
10.111.2.1      255.255.255.255   10.111.2.33   10.111.2.34       1
10.111.2.32     255.255.255.252   10.111.2.34   10.111.2.34       30
10.111.2.34     255.255.255.255   127.0.0.1     127.0.0.1         30
10.255.255.255  255.255.255.255   10.111.2.34   10.111.2.34       30
127.0.0.0       255.0.0.0         127.0.0.1     127.0.0.1         1
192.168.2.0     255.255.255.0     192.168.2.4   192.168.2.4       1
192.168.2.4     255.255.255.255   127.0.0.1     127.0.0.1         1
192.168.2.255   255.255.255.255   192.168.2.4   192.168.2.4       1
217.193.153.58  255.255.255.255   192.168.2.1   192.168.2.4       1
224.0.0.0       240.0.0.0         10.111.2.34   10.111.2.34       30
224.0.0.0       240.0.0.0         192.168.2.4   192.168.2.4       1
255.255.255.255 255.255.255.255   10.111.2.34   10005             1
255.255.255.255 255.255.255.255   10.111.2.34   10.111.2.34       1
255.255.255.255 255.255.255.255   192.168.2.4   192.168.2.4       1
Standardgateway:       10.111.2.33
===========================================================================
Ständige Routen:
  Keine


It appears that the following route gets lost

217.193.153.58  255.255.255.255   192.168.2.1   192.168.2.4       1

due to the 'local' parameter. This is the route which points to the
OpenVPN server :-( .

In reality this server is a catching server which redirects all OpenVPN
traffig on the WLAN to itself, regardless of the destination address.
This is done, so the user does not need to know the ip address of the
OpenVPN server on the WLAN, just the port is immportant.

cheers

Erich



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users