Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################
- #################### Interface / Server ########################
- ################################################################
- [Interface]
- Address = 10.13.13.1
- ListenPort = 51820
- PrivateKey = <PrivateKey>=
- 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
- [Peer]
- # peer1
- PublicKey = #<PublicKey1>
- PresharedKey = #<PresharedKey1>
- AllowedIPs = 10.13.13.2/32 #choose your IP from the interface base
- [Peer]
- # peer2
- PublicKey = #<PublicKey2>
- PresharedKey = #<PresharedKey2>
- AllowedIPs = 10.13.13.3/32 #choose your IP from the interface base
- ################################################################
- ################################################################
- ################################################################
- ################################################################################################################################
- ################################################################################################################################
- ################################################################################################################################
- ################################################################
- ############################ Peer 1 ############################
- ################################################################
- [Interface]
- Address = 10.13.13.2
- PrivateKey = #<PrivateKey>
- ListenPort = 51820
- DNS = 10.0.0.4 #my internal DNS (on the server's LAN)
- [Peer]
- PublicKey = #<PublicKey>
- PresharedKey = #<PresharedKey1>
- Endpoint = #<PublicIP>:51820
- AllowedIPs = 0.0.0.0/0
- ################################################################
- ################################################################
- ################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement