improve speache

This commit is contained in:
6543 2019-07-07 03:40:44 +02:00
parent 453054a53d
commit 945d1198f7

View File

@ -21,18 +21,23 @@ the right way for your Linux distro:
Then **configure** the Gateway. Then **configure** the Gateway.
We will use the 100.64.0.0/10 range (RFC 6598) because it wont colide with private IPv4 adresses (RFC 1918). We will use the 100.64.0.0/10 range (RFC 6598) because it wont colide with private IPv4 adresses (RFC 1918).


echo '[Interface]' > /etc/wireguard/wg0.conf echo '[Interface]' > /etc/wireguard/wg0.conf
echo "PrivateKey = $(wg genkey)" >> /etc/wireguard/wg0.conf echo "PrivateKey = $(wg genkey)" >> /etc/wireguard/wg0.conf
echo 'ListenPort = 50002' >> /etc/wireguard/wg0.conf echo 'ListenPort = 50002' >> /etc/wireguard/wg0.conf
echo "Address = 100.64.0.1/10" >> /etc/wireguard/wg0.conf echo "Address = 100.64.0.1/10" >> /etc/wireguard/wg0.conf


iptables -t nat -A POSTROUTING -s 100.64.0.0/10 -o eth0 -j MASQUERADE iptables -t nat -A POSTROUTING -s 100.64.0.0/10 -o eth0 -j MASQUERADE
systemctl enable --now wg-quick@wg0 && systemctl status wg-quick@wg0 systemctl enable --now wg-quick@wg0


To get the public key type: To get the public key type:


wg pubkey <<<$(grep PrivateKey /etc/wireguard/wg_obermui.conf | cut -d ' ' -f3) wg pubkey <<<$(grep PrivateKey /etc/wireguard/wg_obermui.conf | cut -d ' ' -f3)


Now the Gateway is configured and running. To get som Information checkout wg and systemd:

systemctl status wg-quick@wg0
wg show

# Setup your Android # Setup your Android


Download the App from [F-Droid](https://f-droid.org/en/packages/com.wireguard.android/) or [Google Play](https://play.google.com/store/apps/details?id=com.wireguard.android). Download the App from [F-Droid](https://f-droid.org/en/packages/com.wireguard.android/) or [Google Play](https://play.google.com/store/apps/details?id=com.wireguard.android).