diff --git a/.config/wireguard/README b/.config/wireguard/README deleted file mode 100644 index dcd55b9..0000000 --- a/.config/wireguard/README +++ /dev/null @@ -1,15 +0,0 @@ -quickstart - - sudo apt install wireguard-tools - - -serverside configuration - - sudo sysctl -w net.ipv4.ip_forward=1 - sudo sed -i "s/^#net.ipv4.ip_forward = 1/net.ipv4.ip_forward = 1/" /etc/sysctl.conf - - -generating keys - - wg genkey > client.key - wg pubkey < client.key > client.pub diff --git a/.config/wireguard/client.conf b/.config/wireguard/client.conf deleted file mode 100644 index bd19ec2..0000000 --- a/.config/wireguard/client.conf +++ /dev/null @@ -1,9 +0,0 @@ -[Interface] -Address = 10.200.200.2/32 -PrivateKey = - -[Peer] -PublicKey = -Endpoint = :1194 -AllowedIPs = 0.0.0.0/0, ::/0 - diff --git a/.config/wireguard/server.conf b/.config/wireguard/server.conf deleted file mode 100644 index 03b30c8..0000000 --- a/.config/wireguard/server.conf +++ /dev/null @@ -1,15 +0,0 @@ -[Interface] -Address = 10.200.200.1/24 -ListenPort = 1194 -PrivateKey = - -PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o -j MASQUERADE -PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o i -j ACCEPT; iptables -t nat -D POSTROUTING -o -j MASQUERADE - -[Peer] -PublicKey = -AllowedIPs = 10.200.200.2/32 - -[Peer] -PublicKey = -AllowedIPs = 10.200.200.3/32