Skip to contentSkip to conversation

OpenVPN on NetBSD

Openvpn-devel [email protected]... 2 participants 2 messages Jul 25, 2002

lore
Share & tools
lore
#0 lore raw

Hello developers,

Tried to setup a vpn with a friend today.
The box ist running NetBSD 1.5.2.
But when I tried to start the openvpn with "ifconfig 10.0.0.2 10.0.0.1" in my config file I've got the error
"Sorry, but I don't know how to do 'ifconfig'
commands on this operating system. You should ifconfig your tun/tap device manually or use an --up script."

The --up thing didn't woked. I tried "--up ifconfig 10.0.0.2 10.0.0.2". I don't know why but it always did:
4: tun/tap device /dev/tun1 opened
5: ifconfig tun1 10.0.0.2 10.0.0.1 tun1 1300 1344

After some testings I've decided to try the OpenBSD ifconfig code in tun.c since the syntax is similar for such simple operations.
I replaced the message about unknown ifconfig with this code and it worked without any problems.
It's quick and dirty, but if there is interest in a NetBSD port then I will add it properly.

Greets,
Dimitri

Signature · 4 lines
"A towel is about the most massively useful                                     
 thing an interstellar hitch hiker can have." -- Hitchicker's Guide             
pub  1024D/3A264EA8 2002-07-07 Dimitri Goldin <[email protected]...>              
Fingerprint: 3AA9 1264 51AA 0BB5 EB29  A6E3 9648 F42A 3A26 4EA8                 
#1 lore raw

Hi Dimitri,

Yes, it would be great if you would like to do a NetBSD port. I imagine it would be pretty straightforward, given the existence of FreeBSD, OpenBSD, and Mac OS X ports.

The "PORTS" file has a nice rundown on making a clean port, with some points on testing to make sure all the major features work correctly.

Best Regards,
James

Quoted 15 lines

Hello developers,

Tried to setup a vpn with a friend today.
The box ist running NetBSD 1.5.2.
But when I tried to start the openvpn with "ifconfig 10.0.0.2 10.0.0.1" in my config file I've got the error
"Sorry, but I don't know how to do 'ifconfig'
commands on this operating system. You should ifconfig your tun/tap device manually or use an --up script."

The --up thing didn't woked. I tried "--up ifconfig 10.0.0.2 10.0.0.2". I don't know why but it always did:
4: tun/tap device /dev/tun1 opened
5: ifconfig tun1 10.0.0.2 10.0.0.1 tun1 1300 1344

Quoted 5 lines

After some testings I've decided to try the OpenBSD ifconfig code in tun.c since the syntax is similar for such simple operations.
I replaced the message about unknown ifconfig with this code and it worked without any problems.
It's quick and dirty, but if there is interest in a NetBSD port then

I will add it properly.

Quoted 19 lines

Greets,
Dimitri
--
"A towel is about the most massively useful
thing an interstellar hitch hiker can have." -- Hitchicker's Guide
pub 1024D/3A264EA8 2002-07-07 Dimitri Goldin <[email protected]...>
Fingerprint: 3AA9 1264 51AA 0BB5 EB29 A6E3 9648 F42A 3A26 4EA8

-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel