# peer

name: Unnamed
address: 10.0.200.2
public_key: C/v1OUy+ouFVehjjpywkpxQGd5xSO67WFbGd7Eu+1WM=
private_key: sBPQ7RjsdA1kNAV2exXRkS0wUlOE2Y21BtOo73vig2I=
shared_key: uqL1JXtabllj6hlu9j8b+/+QcgvRZgj7Ukr6dDELt8o=
dns: 10.0.200.1,8.8.8.8
allowed_ips: 0.0.0.0/0, ::/0
configuration:
  [Interface]
  Address = 10.0.200.2/24
  PrivateKey = sBPQ7RjsdA1kNAV2exXRkS0wUlOE2Y21BtOo73vig2I=

  DNS = 10.0.200.1,8.8.8.8


  [Peer]
  PublicKey = 666
  AllowedIPs = 0.0.0.0/0, ::/0
  Endpoint = vpn.algometic.com:51820
  PresharedKey = uqL1JXtabllj6hlu9j8b+/+QcgvRZgj7Ukr6dDELt8o=


# server

interface: wg0
address: 10.0.200.1
listen_port: 51820
private_key: 555
public_key: 666
endpoint: vpn.algometic.com
dns: 10.0.200.1,8.8.8.8
allowed_ips: 0.0.0.0/0, ::/0
post_up: iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;
post_down: iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE;
configuration:
  [Interface]
  Address = 10.0.200.1/24
  ListenPort = 51820
  PrivateKey = 555


  PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;

  PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE;


  [Peer]
  # Client Name: Unnamed
  PublicKey = C/v1OUy+ouFVehjjpywkpxQGd5xSO67WFbGd7Eu+1WM=
  PresharedKey = uqL1JXtabllj6hlu9j8b+/+QcgvRZgj7Ukr6dDELt8o=
  AllowedIPs = 10.0.200.2/32


