tun creation problem with security/openvpn

Daniel O'Connor doconnor at gsoft.com.au
Wed Feb 9 03:40:06 PST 2005


On Wed, 9 Feb 2005 22:04, Daniel O'Connor wrote:
> Hi,
> I am trying to using openvpn on a 4.x system but it doesn't seem to want to
> create tun devices and I can't make them by hand with ifconfig.
>
> I've currently worked around it by running PPP first which creates a tun
> device but it's a bit difficult to automate properly.
>
> I've tried this for ifconfig..
> [inchoate 22:01] ~ >sudo ifconfig tun0 create inet 1.2.3.4
> ifconfig: SIOCIFCREATE: Invalid argument
> [inchoate 22:02] ~ >sudo ifconfig tun0 create inet 1.2.3.4 4.5.6.7
> ifconfig: SIOCIFCREATE: Invalid argument
> [inchoate 22:02] ~ >sudo ifconfig tun0 create
> ifconfig: SIOCIFCREATE: Invalid argument
>
> Anyone got any hints?

Ahh I found a work around..
cat /dev/null > /dev/tunN

Kind of strange openvpn doesn't open the dev node first though, I'll have a 
closer look at it's code..

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050209/a41f3c01/attachment.bin


More information about the freebsd-stable mailing list