OpenVPN: Difference between revisions
imported>Zarkone Small instruction on how to start/stop created VPN services. |
imported>MatthiasvB Added line that potentially fixes DNS issues |
||
| Line 21: | Line 21: | ||
<syntaxHighlight> | <syntaxHighlight> | ||
systemctl start openvpn-officeVPN.service | systemctl start openvpn-officeVPN.service | ||
</syntaxHighlight> | |||
Should you have trouble with DNS resolution for services that should be available via the VPN, try adding the following to the config: | |||
<syntaxHighlight lang="nix"> | |||
{ | |||
... | |||
services.openvpn.servers = { | |||
officeVPN = { | |||
config = '' config /root/nixos/openvpn/officeVPN.conf ''; | |||
updateResolvConf = true; | |||
}; | |||
}; | |||
... | |||
} | |||
</syntaxHighlight> | </syntaxHighlight> | ||