OpenVPN

From Elvanör's Technical Wiki
Revision as of 09:32, 17 April 2018 by Elvanor (talk | contribs) (Created page with "= OpenVPN Setup = * A basic configuration is easy to setup. You can just follow guides / official documentation. * You need to make sure IP forwarding is enabled. You can do...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

OpenVPN Setup

  • A basic configuration is easy to setup. You can just follow guides / official documentation.
  • You need to make sure IP forwarding is enabled. You can do this by running sysctl -w net.ipv4.ip_forward=1 or making it permanent by editing /etc/sysctl.conf and setting
net.ipv4.ip_forward = 1
  • Also you need to enter such a forwarding rule:
iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o enp1s0 -j MASQUERADE