OperationGoldenEagle

Server.conf

Jul 31st, 2022
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. [Interface]
  2. Address = 10.13.13.1
  3. ListenPort = 42069
  4. PrivateKey =
  5. PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
  6. PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE
  7.  
  8. #Port forwarding:
  9. PreUp = iptables -t nat -A PREROUTING -d 192.168.0.20 -p tcp --dport 9999 -j DNAT --to-destination 10.13.13.4:8090
  10. PreUp = iptables -t nat -A POSTROUTING -j MASQUERADE
  11. PostDown = iptables -t nat -D PREROUTING -d 192.168.0.20 -p tcp --dport 9999 -j DNAT --to-destination 10.13.13.4:8090
  12. PostDown = iptables -t nat -D POSTROUTING -j MASQUERADE
  13.  
  14. [Peer]
  15. # peer_MorPi
  16. PublicKey =
  17. PresharedKey =
  18. AllowedIPs = 10.13.13.4/32, 192.168.8.0/24
  19.  
Advertisement
Add Comment
Please, Sign In to add comment