From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 21:29:45 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82D2F16A4CE for ; Thu, 8 Jul 2004 21:29:45 +0000 (GMT) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.8.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id E31EA43D1D for ; Thu, 8 Jul 2004 21:29:44 +0000 (GMT) (envelope-from peo@intersonic.se) Message-ID: <40EDBCC7.8010007@intersonic.se> Date: Thu, 08 Jul 2004 23:29:43 +0200 From: "Per olof Ljungmark" Organization: Intersonic AB User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040417 X-Accept-Language: en-us, en, sv MIME-Version: 1.0 To: FreeBSD-Questions Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: add route called from script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 21:29:45 -0000 Hi all, I am experimenting with openvpn-2 and so far it looks promosing. As this version of openvpn can assign client addresses similar to dhcp, I need to find out how to assign a route from a script, like (this is the client end, running FreeBSD): [simplifed example] #!/bin/sh openvpn --daemon --config my-vpn.conf route add 192.168.0.0/16 How/from where can I get the dynamically assigned tun ip to insert into script? It is not known before openvpn is started. Thanks, Per olof