[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bridging to a tun device?



Hello,

I am trying to set up a bridged VPN with openvpn[1] between an OpenBSD 3.4-STABLE and a Windows box.
The first problem I've faced with on the OpenBSD side is that I cannot include a tun device in any bridge groups:


# ifconfig vlan2
vlan2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        address: 00:07:e9:14:ea:34
        vlan: 10 parent interface: em0
        inet6 fe80::207:e9ff:fe14:ea34%vlan2 prefixlen 64 scopeid 0x20
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255

# ifconfig tun1
tun1: flags=51<UP,POINTOPOINT,RUNNING> mtu 3000

# brconfig bridge0 add vlan2 add tun1 up
brconfig: bridge0: tun1: Invalid argument

# brconfig bridge0
bridge0: flags=0<>
        Configuration:
                priority 32768 hellotime 2 fwddelay 15 maxage 20
        Interfaces:
                vlan2 flags=3<LEARNING,DISCOVER>
                        port 32 ifpriority 128 ifcost 55
        Addresses (max cache: 100, timeout: 240):

Is it possible to do this somehow?

Thanks,

[1]: http://openvpn.sourceforge.net/

--
Attila Nagy                                   e-mail: Attila_(_dot_)_Nagy_(_at_)_fsn_(_dot_)_hu
Free Software Network (FSN.HU)           phone @work: +361 210 1415/127
ISOs: http://www.fsn.hu/?f=download            cell.: +3630 306 6758



Visit your host, monkey.org