Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jul 2004 23:29:43 +0200
From:      "Per olof Ljungmark" <peo@intersonic.se>
To:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   add route called from script
Message-ID:  <40EDBCC7.8010007@intersonic.se>

next in thread | raw e-mail | index | archive | help
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 <adress from tun{if} here>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40EDBCC7.8010007>