OpenVPN Extras

Aus NAS Wiki

Wechseln zu:Navigation, Suche

Inhaltsverzeichnis

Deutsch

Das Netzwerk hinter dem OpenVPN server erreichen

OpenVPN läuft auf einem NAS hinter einem Router, du willst jedoch außer dem NAS noch andere Geräte im Heimnetzwerk erreichen.

  • Route im Modem/Router setzen: Ausgehend vom Standard Szenario trägst du die Route 10.8.0.0 255.255.255.0 über den Gateway 192.168.4.7 ein. Auf einer Fritzbox wäre das unter -->System >Netzwerkeinstellungen >IP-Routen einzutragen.
  • ip-forward aktivieren: Aktiviere ip-forward auf deiner OpenVPN Server Instanz:
# echo "1" > /proc/sys/net/ipv4/ip_forward

Achtung: Dieses forward hält auf den meisten NAS nur bis zum nächsten reboot. Um es zu "fixieren" musst du das Kommando in deine autostart Datei einbauen.

English

Reach the network behind the OpenVPN server

OpenVPN is running on your NAS, but you want to access not just the NAS, but also other devices within your home-LAN.

  • Add a route in your router: Based on our standard scenario, add the following route in your routing device: 10.8.0.0 255.255.255.0 gateway 192.168.4.7 (see the manual of your router for details).
  • activate ip-forwarding in your NAS:
# echo "1" > /proc/sys/net/ipv4/ip_forward

This is very likely to last only until your next reboot. Put it into your autostart file, if you want it to be always active.