mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 03:59:16 +01:00
Correct bridge example in the OPENVPN doc
This commit is contained in:
parent
974aeb9e39
commit
a8084370b6
@ -764,7 +764,7 @@ secret /etc/openvpn/bridgekey</programlisting>
|
||||
|
||||
<programlisting>iface br0 inet static
|
||||
pre-up /usr/sbin/openvpn --mktun --dev tap0
|
||||
pre-up /usr/sbin/brctl addbr br1
|
||||
pre-up /usr/sbin/brctl addbr br0
|
||||
address 192.168.1.254
|
||||
network 192.168.1.0
|
||||
broadcast 192.168.1.255
|
||||
@ -774,14 +774,14 @@ secret /etc/openvpn/bridgekey</programlisting>
|
||||
post-up /sbin/ip link set eth1 up
|
||||
post-up /usr/sbin/brctl addif br0 eth1
|
||||
post-down /usr/sbin/brctl delbr br0
|
||||
post-down /usr/sbin/tunctl -d tap0
|
||||
post-down /usr/sbin/openvpn --rmtun tap0
|
||||
post-down /sbin/ip link set eth1 down </programlisting>
|
||||
|
||||
<para>/etc/network/interfaces on the right-hand firewall:</para>
|
||||
|
||||
<programlisting>iface br0 inet static
|
||||
pre-up /usr/sbin/openvpn --mktun --dev tap0
|
||||
pre-up /usr/sbin/brctl addbr br1
|
||||
pre-up /usr/sbin/brctl addbr br0
|
||||
address 192.168.1.253
|
||||
network 192.168.1.0
|
||||
broadcast 192.168.1.255
|
||||
@ -791,7 +791,7 @@ secret /etc/openvpn/bridgekey</programlisting>
|
||||
post-up /sbin/ip link set eth1 up
|
||||
post-up /usr/sbin/brctl addif br0 eth1
|
||||
post-down /usr/sbin/brctl delbr br0
|
||||
post-down /usr/sbin/tunctl -d tap0
|
||||
post-down /usr/sbin/openvpn --rmtun tap0
|
||||
post-down /sbin/ip link set eth1 down </programlisting>
|
||||
|
||||
<para>The Shorewall configuration is just a <ulink
|
||||
|
Loading…
Reference in New Issue
Block a user