many new containers. work in progress
This commit is contained in:
parent
f0f9f608cc
commit
aed48ffdf8
31 changed files with 1042 additions and 1 deletions
1
diy-tunnel/private/README.md
Normal file
1
diy-tunnel/private/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
`wg0.conf` should be deployed to `/etc/wireguard/wg0.conf` on the public facing (VPS) server.
|
15
diy-tunnel/private/wg0.conf
Normal file
15
diy-tunnel/private/wg0.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Interface]
|
||||
Address = 10.0.0.1/24 # Private IP for the VPS in the VPN network
|
||||
ListenPort = 51820 # Default WireGuard port
|
||||
PrivateKey = ###PRIVATE KEY FOR PUBLIC SERVER####
|
||||
|
||||
# packet forwarding
|
||||
PreUp = sysctl -w net.ipv4.ip_forward=1
|
||||
|
||||
# port forwarding (HTTP, HTTPS) - update port list as required
|
||||
PreUp = iptables -t nat -A PREROUTING -i eth0 -p tcp -m multiport --dports 80,443 -j DNAT --to-destination 10.0.0.2
|
||||
PostDown = iptables -t nat -D PREROUTING -i eth0 -p tcp -m multiport --dports 80,443 -j DNAT --to-destination 10.0.0.2
|
||||
|
||||
[Peer]
|
||||
PublicKey = ###PUBLIC KEY FOR PRIVATE SERVER####
|
||||
AllowedIPs = 10.0.0.2/32 # IP of the home server in VPN
|
Loading…
Add table
Add a link
Reference in a new issue