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 [2019/05/06 14:23] – [Weiteres] 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 23: | Line 23: | ||
</ | </ | ||
+ | <wrap em>For CentOS 7 ONLY:</ | ||
< | < | ||
+ | # yum install epel-release | ||
# curl -Lo / | # curl -Lo / | ||
- | |||
# yum update | # yum update | ||
+ | |||
# yum install wireguard-dkms wireguard-tools | # yum install wireguard-dkms wireguard-tools | ||
+ | </ | ||
+ | |||
+ | <wrap em>For CentOS 8 ONLY:</ | ||
+ | < | ||
+ | # yum install epel-release | ||
+ | # yum config-manager --set-enabled PowerTools | ||
+ | # yum copr enable jdoss/ | ||
+ | |||
+ | # yum install wireguard-dkms wireguard-tools | ||
+ | </ | ||
+ | |||
+ | <wrap em> | ||
+ | < | ||
# mkdir / | # mkdir / | ||
Line 60: | 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 75: | 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 83: | Line 104: | ||
# systemctl enable wg-quick@wg0.service | # systemctl enable wg-quick@wg0.service | ||
</ | </ | ||
+ | |||
+ | <WRAP center round important 100%> | ||
+ | '' | ||
+ | '' | ||
+ | < | ||
+ | # firewall-cmd --permanent --direct --add-rule ipv4 nat POSTROUTING 0 -s 192.168.100.0/ | ||
+ | # firewall-cmd --reload | ||
+ | </ | ||
+ | </ | ||
+ | |||
<WRAP center box 100%> | <WRAP center box 100%> | ||
Line 127: | Line 158: | ||
==== Fritzbox - Routing Konfigurieren ==== | ==== Fritzbox - Routing Konfigurieren ==== | ||
- | <wrap em>Nur falls kein Masquarading | + | <wrap em>Nur falls kein POSTROUTING |