VPN Lan to Lan

Configuración del Servidor ### /etc/openvpn/server.conf ### port 1194 proto tcp dev tun ca /etc/openvpn/keys/ca.crt cert /etc/openvpn/keys/gwA.crt key /etc/openvpn/keys/gwA.key dh /etc/openvpn/keys/dh1024.pem server 10.0.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt push "route 192.168.1.0 255.255.255.0" push "route 192.168.2.0 255.255.255.0" push "route 192.168.3.0 255.255.255.0" client-config-dir ccd route 192.168.1.0 255.255.255.0 route 192.168.2.0 255.255.255.0 route 192.168.3.0 255.255.255.0 push "redirect-gateway def1" client-to-client keepalive 10 120 comp-lzo persist-key persist-tun status openvpn-status.log log-append /var/log/openvpn.log verb 3 ### EOF ###

key ns-cert-type server comp-lzo verb 3 log-append /var/log/openvpn.168.1.168.255.0 255.### /etc/openvpn/ccd/gwA ### iroute 192.168.conf ### .crt cert /etc/openvpn/keys/gwB.log ### EOF ### Bit de Forward Cambiar el Bit de Forward de 0 a 1 en cada GW: A.255.0 255.255. B y C.conf ### client dev tun proto tcp remote IP_SERVIDOR_gwA 1194 resolv-retry infinite nobind persist-key persist-tun ca /etc/openvpn/keys/ca.conf ### client dev tun proto tcp remote IP_SERVIDOR_gwA 1194 resolv-retry infinite nobind persist-key persist-tun ca /etc/openvpn/keys/ca.ip_forward = 1 ...2.0 ### EOF ### Configuración de los Clientes ### /etc/openvpn/client.conf ### /etc/sysctl.ipv4.log ### EOF ### ### /etc/openvpn/client.crt key /etc/openvpn/keys/gwB. net..crt key /etc/openvpn/keys/gwC.key ns-cert-type server comp-lzo verb 3 log-append /var/log/openvpn.3.0 ### EOF ### ### /etc/openvpn/ccd/gwB ### iroute 192.. Agregar en sysctl.255.255.255.0 255.0 ### EOF ### ### /etc/openvpn/ccd/gwC ### iroute 192.crt cert /etc/openvpn/keys/gwC. ### EOF ### Recaragar las constantes de sysctl sysctl -p .

Sign up to vote on this title
UsefulNot useful