ingress
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
[Interface]
|
||||
PrivateKey = {{ wireguard_server_private_key }}
|
||||
Address = 10.10.1.1/24
|
||||
ListenPort = 41194
|
||||
PostUp = sysctl -w net.ipv4.ip_forward=1
|
||||
PreUp = iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j DNAT --to-destination 10.10.1.2:25
|
||||
PostDown = iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 25 -j DNAT --to-destination 10.10.1.2:25
|
||||
PreUp = iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 993 -j DNAT --to-destination 10.10.1.2:993
|
||||
PostDown = iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 993 -j DNAT --to-destination 10.10.1.2:993
|
||||
PreUp = iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 465 -j DNAT --to-destination 10.10.1.2:465
|
||||
PostDown = iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 465 -j DNAT --to-destination 10.10.1.2:465
|
||||
PreUp = iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 587 -j DNAT --to-destination 10.10.1.2:587
|
||||
PostDown = iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 587 -j DNAT --to-destination 10.10.1.2:587
|
||||
|
||||
#PreUp = iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE
|
||||
#PostDown = iptables -t nat -D POSTROUTING -o wg0 -j MASQUERADE
|
||||
|
||||
[Peer]
|
||||
PublicKey = oI69uWkbkwtpuIYxDNGmzg4nRjY1BIZFVFjZwguIvwE=
|
||||
AllowedIPs = 10.10.1.2/32
|
||||
@@ -10,14 +10,6 @@
|
||||
3138326563386233390a386237633630656436663062633264366562616632633035343733323331
|
||||
64366538386364623938663836336661313632376131336338643432646338303738616438623361
|
||||
6237653737666662336665326237623331383132653431343466
|
||||
wireguard_server_private_key: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
38633732343939346261653834393536313335376166616661373266616266353938633363373464
|
||||
3233646466303834656633656237643632666462323264360a333066313361323038366265316330
|
||||
32626534313239353833653638353364313136333932386331373132356333663935366466653435
|
||||
3636323037366333350a313761643565633165643938303330386431623237356262323332306533
|
||||
34623734623661333266393930306439336533343566306635633638326334303364353036383036
|
||||
3461343263306434386135356638623636393030646236346531
|
||||
tasks:
|
||||
- name: Install wireguard
|
||||
ansible.builtin.apt:
|
||||
|
||||
Reference in New Issue
Block a user