os:linux:tumbleweed:openvpn
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| os:linux:tumbleweed:openvpn [2024/07/08 21:15] – ebaer | os:linux:tumbleweed:openvpn [2024/07/08 21:25] (current) – ebaer | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| openssl dhparam -out / | openssl dhparam -out / | ||
| + | |||
| + | |||
| + | #Open incoming connections to the server, if you haven' | ||
| + | firewall-cmd --zone=public --add-service openvpn | ||
| + | |||
| + | #Add tun0 to trusted zone. Device name may vary depending on how many VPNs and other services like VMs you're running | ||
| + | firewall-cmd --zone=trusted --add-interface tun0 | ||
| + | |||
| + | #Enable masquerading | ||
| + | firewall-cmd --zone=trusted --add-masquerade | ||
| + | |||
| + | #Swap the eth0 for your device or ip that traffic goes out of that you need NAT'd. | ||
| + | firewall-cmd --direct --passthrough ipv4 -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE | ||
| + | |||
| + | #once you're happy it's working, save with | ||
| + | firewall-cmd --runtime-to-permanent | ||
| </ | </ | ||
os/linux/tumbleweed/openvpn.txt · Last modified: 2024/07/08 21:25 by ebaer
