Re: unable to add tun interface to bridge
blockquote, div.yahoo_quoted { margin-left: 0 !important; border-left:1px #715FFA solid !important; padding-left:1ex !important; background-color:white !important; } Hi, I was just looking for usage of tap device.Is there any real world example for tap?There is no information about tap at man pages of hostname.if and ifconfig...Only tap(4) man page tells about creating tapN device. Is there any other parameters like adding interfaces just like bridge interface? Thanks. Sent from Yahoo Mail for iPhone On Pazar, Nisan 24, 2016, 9:58 ÃÃ, Claudio Jekerwrote: On Sun, Apr 24, 2016 at 03:39:58AM +0100, niya levi wrote: > hi everyone > i am trying to setup openvpn with tun on a bridge (openbsd 5.9), > i tried the following but got an Invalid argument error, > > ifconfig tun0 create > ifconfig bridge0 create > ifconfig bridge0 add em0 > ifconfig bridge0 add tun0 > ifconfig: bridge0: tun0: Invalid argument > > what is the correct way to add the tun interface to the bridge ? You need to use the tap(4) interface in 5.9 to get a Ethernet tunneling device. tun(4) is now Layer 3 only. -- :wq Claudio
Re: unable to add tun interface to bridge
On 24.04.2016 04:39, niya levi wrote: > hi everyone > i am trying to setup openvpn with tun on a bridge (openbsd 5.9), > i tried the following but got an Invalid argument error, > > ifconfig tun0 create > ifconfig bridge0 create > ifconfig bridge0 add em0 > ifconfig bridge0 add tun0 > ifconfig: bridge0: tun0: Invalid argument > > what is the correct way to add the tun interface to the bridge ? > > shadrock > Hi I think what you need is a tap device, not a tun device. Prior to 5.9, you could use a tun device and set the link0 flag, but that was changed in 5.9. -- Unix _IS_ user friendly - it's just selective about who its friends are!
Re: unable to add tun interface to bridge
On Sun, Apr 24, 2016 at 03:39:58AM +0100, niya levi wrote: > hi everyone > i am trying to setup openvpn with tun on a bridge (openbsd 5.9), > i tried the following but got an Invalid argument error, > > ifconfig tun0 create > ifconfig bridge0 create > ifconfig bridge0 add em0 > ifconfig bridge0 add tun0 > ifconfig: bridge0: tun0: Invalid argument > > what is the correct way to add the tun interface to the bridge ? You need to use the tap(4) interface in 5.9 to get a Ethernet tunneling device. tun(4) is now Layer 3 only. -- :wq Claudio