OpenVPN: Difference between revisions
Jump to navigation
Jump to search
(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...") |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
* Also you need to enter such a forwarding rule: | * Also you need to enter such a forwarding rule: | ||
iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o | iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eno0 -j MASQUERADE | ||
* If you need to connect simultaneously with the same certificate / user (eg having multiple simultaneous connections on the same VPN server), you need to add this to your configuration: | |||
duplicate-cn |
Latest revision as of 15:05, 20 March 2020
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 eno0 -j MASQUERADE
- If you need to connect simultaneously with the same certificate / user (eg having multiple simultaneous connections on the same VPN server), you need to add this to your configuration:
duplicate-cn