S
S
syxoi2016-05-27 13:10:10
linux
syxoi, 2016-05-27 13:10:10

How to combine tun* into a bridge?

This is in continuation of my previous question.
So, the idea is this: raise several vpn connections, first without prescribing a default route, merge into a bridge with mode=0 (balance-rr), as described in this article . But the fact is that when creating a bridge, all network interfaces are cut off and connected at the same time, and if you omit the tun interface, the connection will break and you will need to reconnect to the vpn and nothing will come of it. There are articles on the internet about merging into an openvpn bridge, but it didn’t work out for me, something needs to be written on the server, nothing is clear in general.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2016-05-27
@leahch

Well, in general it is. TUN cannot be combined into a bridge (bridge), simply by definition. Since tun is a tunnel interface. And you can only bridge something that somehow resembles ethernet, for example, the TAP interface.
Accordingly, in order to implement our plans, you need to transfer all openvpn to use tap.
Just in case, read the differences - https://ru.wikipedia.org/wiki/TUN/TAP
PS. Remember that when using TAP, all the dirt from the entire ethernet segment will pour into the tunnel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question