add some documentation

This commit is contained in:
Ingolf Wagner 2024-06-06 10:35:20 +02:00
parent d845e2e729
commit 1c302c0cf9
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -24,24 +24,31 @@ in
${pkgs.iptables}/bin/iptables -D FORWARD -i wg0 -j ACCEPT ${pkgs.iptables}/bin/iptables -D FORWARD -i wg0 -j ACCEPT
''; '';
# clients
peers = [ peers = [
# server
# ------
# start at 1
{ {
# chungus # chungus
publicKey = publicKey "chungus"; publicKey = publicKey "chungus";
allowedIPs = [ "10.100.0.2/32" ]; allowedIPs = [ "10.100.0.2/32" ];
} }
# desktops
# --------
# start at 10
{ {
# cream # cream
publicKey = publicKey "cream"; publicKey = publicKey "cream";
allowedIPs = [ "10.100.0.6/32" ]; allowedIPs = [ "10.100.0.6/32" ]; # todo : change ip
} }
{ {
# cherry # cherry
publicKey = publicKey "cherry"; publicKey = publicKey "cherry";
allowedIPs = [ "10.100.0.7/32" ]; allowedIPs = [ "10.100.0.7/32" ]; # todo : change ip
} }
# mobil devices start with 100 # mobild devices
# --------------
# start at 100
{ {
# iphone palo # iphone palo
publicKey = "ICeZLWYzF+nTffMV0+8yfW1WJsUQNhNbKQ4rRbn5hDs="; publicKey = "ICeZLWYzF+nTffMV0+8yfW1WJsUQNhNbKQ4rRbn5hDs=";