[Interface] Address = 192.168.123.1/24 # IP Adresse des Servers PrivateKey = ListenPort = 51820 # Port, auf dem der Server läuft # Forwardingregeln, damit Clients untereinander reden können PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; ip6tables -A FORWARD -i %i -j ACCEPT; ip6tables -A FORWARD -o %i -j ACCEPT; PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; ip6tables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; # Client 1 [Peer] PublicKey = AllowedIPs = 192.168.123.11/32 # IP des Client 1 # Client 2 [Peer] PublicKey = AllowedIPs = 192.168.123.12/32 # IP des Client 2