Skip to content

Instantly share code, notes, and snippets.

@sepsol

sepsol/wg0.conf Secret

Created October 20, 2023 17:41
Show Gist options
  • Save sepsol/d26eae5da05e646769fb33bc1a9d0d8f to your computer and use it in GitHub Desktop.
Save sepsol/d26eae5da05e646769fb33bc1a9d0d8f to your computer and use it in GitHub Desktop.
WireGuard configuration for a point-to-site connection
# This file was generated using wireguard-ui (https://github.com/ngoduykhanh/wireguard-ui)
# Please don't modify it manually, otherwise your change might get replaced.
# Address updated at: 2023-10-17 22:43:35.783473548 +0000 UTC
# Private Key updated at: 2023-10-13 23:14:11.518427052 +0000 UTC
[Interface]
Address = 10.0.1.0/24
ListenPort = 51820
PrivateKey = [REDACTED]
MTU = 1450
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE
Table = auto
# ID: ckn0ga4tejts749b1470
# Name: Test
# Email:
# Created at: 2023-10-17 04:06:00.589094369 +0000 UTC
# Update at: 2023-10-18 00:28:43.116654729 +0000 UTC
[Peer]
PublicKey = [REDACTED]
PresharedKey = [REDACTED]
AllowedIPs = 10.0.1.10/32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment