On Thu, Jul 12, 2007 at 02:58:26PM +0700, sonjaya wrote:
> i try bridge mode but i think not support in obsd 4.1 , below log
> 
> Thu Jul 12 14:56:45 2007 notebook/202.93.xx.xxx:62358 write to TUN/TAP
> : Address family not supported by protocol family (code=47)
> Thu Jul 12 14:56:46 2007 notebook/202.93.xx.xxx:62358 write to TUN/TAP
> : Address family not supported by protocol family (code=47)
> 
> #ifconfig
> enc0: flags=0<> mtu 1536
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
>        groups: tun
>        inet6 fe80::250:daff:fe80:63e1%tun0 ->  prefixlen 64 scopeid 0x6
> #cat /etc/openvpn/bridgemode.conf
> dev tun0
> dev-type tap
> server-bridge 192.168.2.1 255.255.255.0 192.168.2.2 192.168.2.3
> 

The tun(4) interface is still in Layer 3 mode. Destroy it and restart
openvpn. Your interface should look similar to this one:

tun0: flags=9843<UP,BROADCAST,RUNNING,SIMPLEX,LINK0,MULTICAST> mtu 1500
        lladdr 00:bd:e4:a9:e8:01
        inet 10.0.42.2 netmask 0xffffff00 broadcast 10.0.42.255
        inet6 fe80::2bd:e4ff:fea9:e801%tun0 prefixlen 64 scopeid 0x10

Btw.
dev tun0
dev-type tap
ifconfig 10.0.42.1 255.255.255.0
server-bridge 10.0.42.1 255.255.255.0 10.0.42.2 10.0.42.192

works for me on the server and plus this on the client side:
dev tun0
dev-type tap
ifconfig 10.0.42.2 255.255.255.0

One system is running 4.0 the other is mostly -current.

-- 
:wq Claudio

> 
> 
> On 7/12/07, Claudio Jeker <[EMAIL PROTECTED]> wrote:
> >On Thu, Jul 12, 2007 at 01:50:51PM +0700, sonjaya wrote:
> >> how to create device tap  ( for openvpn bridge mode )  in OBSD 4.1
> >>
> >
> >Man tun(4) and look for link0 or layer 2 mode. For openvpn the magic is:
> >dev tun0
> >dev-type tap
> >
> >--
> >:wq Claudio
> >
> >
> 
> 
> -- 
> sonjaya
> http://sicute.blogspot.com

Reply via email to