Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
redhat:other-redhat:wireguard-redhat [2020/01/31 22:47] – [Install VPN-Server on CentOS 7.x] michael | redhat:other-redhat:wireguard-redhat [2020/01/31 22:56] (current) – michael | ||
---|---|---|---|
Line 10: | Line 10: | ||
- | ===== Install VPN-Server on CentOS 7.x ===== | + | ===== Install VPN-Server on CentOS 7 / 8 ===== |
''< | ''< | ||
Line 75: | Line 75: | ||
<WRAP center box 100%> | <WRAP center box 100%> | ||
< | < | ||
- | # vim / | + | # echo " |
+ | # echo " | ||
+ | # echo " | ||
+ | |||
+ | # cat / | ||
</ | </ | ||
- | <sxh bash; highlight: [11]> | + | <sxh bash; highlight: [11-13]> |
# sysctl settings are defined through files in | # sysctl settings are defined through files in | ||
# / | # / | ||
Line 90: | Line 94: | ||
# For more information, | # For more information, | ||
net.ipv4.ip_forward=1 | net.ipv4.ip_forward=1 | ||
+ | net.ipv4.conf.all.forwarding=1 | ||
+ | net.ipv6.conf.all.forwarding=1 | ||
</ | </ | ||
</ | </ | ||
Line 103: | Line 109: | ||
'' | '' | ||
< | < | ||
- | # firewall-cmd --permanent --direct --add-rule ipv4 nat POSTROUTING 0 -s 192.164 ! -d 192.168.200.0/24 -j SNAT --to 192.168.1.8 | + | # firewall-cmd --permanent --direct --add-rule ipv4 nat POSTROUTING 0 -s 192.168.100.0/ |
# firewall-cmd --reload | # firewall-cmd --reload | ||
</ | </ |