Linux/OpenVPN: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 4: Zeile 4:
Do not forget to first setup the key infrastructure: https://wiki.gentoo.org/wiki/Create_a_Public_Key_Infrastructure_Using_the_easy-rsa_Scripts
Do not forget to first setup the key infrastructure: https://wiki.gentoo.org/wiki/Create_a_Public_Key_Infrastructure_Using_the_easy-rsa_Scripts


Add these lines to /etc/openvpn/openvpn.conf for routing all traffic:
Add these lines to '''/etc/openvpn/openvpn.conf''' for routing all traffic:
  push "dhcp-option DNS 8.8.8.8"
  push "dhcp-option DNS 8.8.8.8"
  push "redirect-gateway def1"
  push "redirect-gateway def1"
Zeile 18: Zeile 18:
  CONFIG_IP_NF_NAT
  CONFIG_IP_NF_NAT


Allow IP forwarding in /etc/sysctl.conf:
Allow IP forwarding in '''/etc/sysctl.conf''':
  net.ipv4.ip_forward = 1
  net.ipv4.ip_forward = 1


Zeile 34: Zeile 34:


Start OpenVPN:
Start OpenVPN:
  /etc/init.d/openvpn restart
  /etc/init.d/openvpn start
   
   
If everything works, add OpenVPN to the default runlevel, so that it starts during boot:
If everything works, add OpenVPN to the default runlevel, so that it starts during boot:
1.103

Bearbeitungen

Navigationsmenü