Em 02-11-2015 17:10, Adam Wysocki escreveu:
> OpenVPN is running and ifconfig looks like that:
>
> tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
> priority: 0
> groups: tun
> status: active
>From tun(4) man page:
Both layer 3 and layer 2 tunneling is supported; layer 3 tunneling
is the
default mode. To enable layer 2 tunneling mode, where the tun
interface
simulates an Ethernet network interface, the link0 flag needs to be set
with ifconfig(8) or by setting up a hostname.if(5) configuration
file for
netstart(8). Note that setting or unsetting the link0 flag causes
tun to
lose any configuration settings, and that it is not advisable to
use the
flag with any other parameters.
I don't see link0 being set on your interface, at least on your ifconfig
output. It won't work in tap mode without it. As for assigning the ip
address, you can't assign one directly to a bridge interface. You need a
vether(4) one for that. But, if what you want is to bridge an internal
lan with an OpenVPN interface, for making any client being able to
operate on your LAN as if they were physically present, you don't need
an ip address on the bridge, only on the internal LAN interface.
Cheers,
Giancarlo Razzolini