From owner-freebsd-questions@FreeBSD.ORG Fri Apr 24 21:37:00 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CD821065675 for ; Fri, 24 Apr 2009 21:37:00 +0000 (UTC) (envelope-from neo@gothic-chat.de) Received: from gothnet.eu (srv1.gothnet.eu [83.133.111.128]) by mx1.freebsd.org (Postfix) with ESMTP id 8B87D8FC21 for ; Fri, 24 Apr 2009 21:36:59 +0000 (UTC) (envelope-from neo@gothic-chat.de) Received: from localhost (localhost [127.0.0.1]) by gothnet.eu (Postfix) with ESMTP id A86A933CA7 for ; Fri, 24 Apr 2009 23:36:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at gothnet.eu Received: from gothnet.eu ([127.0.0.1]) by localhost (gothnet.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O64hjQbHgdx1 for ; Fri, 24 Apr 2009 23:36:52 +0200 (CEST) Received: from [192.168.2.4] (p579868BD.dip.t-dialin.net [87.152.104.189]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: neo) by gothnet.eu (Postfix) with ESMTPSA id BC88633C98 for ; Fri, 24 Apr 2009 23:36:52 +0200 (CEST) Message-ID: <49F230E3.3000402@gothic-chat.de> Date: Fri, 24 Apr 2009 23:36:35 +0200 From: "Neo [GC]" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: strange routing behaviour with openvpn X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 21:37:01 -0000 Hi, I'm using openvpn to connect my vpn-gateway at home to an external server, both are FreeBSD-boxes (6.2-STABLE). The external server has an fixed IP, the client at home connects to a router, which gets a new IP every 24 hours. The client is configured as router (gateway_enable="YES") which works... at least sometimes. After my router gets a new IP, the openvpn client reconnects to the server and the tunnel is usable from FreeBSD@home to FreeBSD@external. But: I have one Vista and one OSX at home, both have static routes to the FreeBSD-box. They are able to use the tunnel, when the openvpn-client is freshly startet. After getting a new IP from my ISP, the tunnel is up (and - as I wrote - the FreeBSD is able to use it), but the two other boxes don't get routed through the tunnel, but the default gateway. When I restart the openvpn-client, everythink works again like it should. Sample output of traceroute when openvpn is restarted: 1 <1 ms <1 ms <1 ms wintermute [192.168.2.2] 2 29 ms 30 ms 32 ms GOTHNET [10.10.0.1] (works) After router gets net external IP: 1 <1 ms <1 ms <1 ms wintermute [192.168.2.2] 2 <1 ms <1 ms <1 ms 192.168.2.1 3 19 ms 19 ms 19 ms 217.0.119.195 4 217.0.89.70 meldet: Zielhost nicht erreichbar. Any advice? :( Regards, Neo [GC]