|
361.
|
|
|
![](/@@/translation-newline)
;dev tun ![](/@@/translation-newline)
dev tap ![](/@@/translation-newline)
up "/etc/openvpn/up.sh br0 eth1" ![](/@@/translation-newline)
;server 10.8.0.0 255.255.255.0 ![](/@@/translation-newline)
server-bridge 10.0.0.4 255.255.255.0 10.0.0.128 10.0.0.254
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
![](/@@/translation-newline)
;dev tun ![](/@@/translation-newline)
dev tap ![](/@@/translation-newline)
up "/etc/openvpn/up.sh br0 eth1" ![](/@@/translation-newline)
;server 10.8.0.0 255.255.255.0 ![](/@@/translation-newline)
server-bridge 10.0.0.4 255.255.255.0 10.0.0.128 10.0.0.254
|
|
Translated by
Federico Lazcano
|
|
Reviewed by
Paco Molinero
|
|
|
|
Located in
serverguide/C/vpn.xml:649(programlisting)
|
|
362.
|
|
|
Next, create a helper script to add the <emphasis>tap</emphasis> interface to the bridge and to ensure that eth1 is promiscuous mode. Create <filename>/etc/openvpn/up.sh</filename>:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/vpn.xml:657(para)
|
|
363.
|
|
|
![](/@@/translation-newline)
#!/bin/sh
![](/@@/translation-newline)
BR=$1 ![](/@@/translation-newline)
ETHDEV=$2 ![](/@@/translation-newline)
TAPDEV=$3
![](/@@/translation-newline)
/sbin/ip link set "$TAPDEV" up ![](/@@/translation-newline)
/sbin/ip link set "$ETHDEV" promisc on ![](/@@/translation-newline)
/sbin/brctl addif $BR $TAPDEV
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
![](/@@/translation-newline)
#!/bin/sh
![](/@@/translation-newline)
BR=$1 ![](/@@/translation-newline)
ETHDEV=$2 ![](/@@/translation-newline)
TAPDEV=$3
![](/@@/translation-newline)
/sbin/ip link set "$TAPDEV" up ![](/@@/translation-newline)
/sbin/ip link set "$ETHDEV" promisc on ![](/@@/translation-newline)
/sbin/brctl addif $BR $TAPDEV
|
|
Translated by
Federico Lazcano
|
|
Reviewed by
Paco Molinero
|
|
|
|
Located in
serverguide/C/vpn.xml:661(programlisting)
|
|
364.
|
|
|
Then make it executable:
|
|
|
|
Luego, conviértalo en ejecutable:
|
|
Translated by
Federico Lazcano
|
|
Reviewed by
Paco Molinero
|
|
|
|
Located in
serverguide/C/vpn.xml:673(para)
|
|
365.
|
|
|
sudo chmod 755 /etc/openvpn/up.sh
|
|
|
|
sudo chmod 755 /etc/openvpn/up.sh
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/vpn.xml:678(command)
|
|
366.
|
|
|
After configuring the server, restart <application>openvpn</application> by entering:
|
|
|
|
Después de configurado el servidor, reinicie <application>openvpn</application> introduciendo:
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/vpn.xml:681(para)
|
|
367.
|
|
|
sudo systemctl restart openvpn@server
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/vpn.xml:686(command)
|
|
368.
|
|
|
Client Configuration
|
|
|
|
Configuración del cliente
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/vpn.xml:691(title)
|
|
369.
|
|
|
First, install <application>openvpn</application> on the client:
|
|
|
|
Primero instale <application>openvpn</application> en el cliente:
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/vpn.xml:693(para)
|
|
370.
|
|
|
Then with the server configured and the client certificates copied to the <filename>/etc/openvpn/</filename> directory, create a client configuration file by copying the example. In a terminal on the client machine enter:
|
|
|
|
Entonces, con el servidor configurado y el certificado del cliente copiado en el directorio <filename>/etc/openvpn/</filename>, creado una configuración cliente copiando el ejemplo. En una terminal en el equipo cliente, ejecute:
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/vpn.xml:701(para)
|