summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2022-06-14 17:51:56 -0400
committerMicah Anderson <micah@riseup.net>2022-06-14 17:51:56 -0400
commit85d1ef9881b2501b5c64424f676618ac9254ee4e (patch)
tree2a04531ce45927877d906bf3f9688f1c9f40bce2
parente8fa914c52731dd284df23345c3c1e0e935e28ca (diff)
openvpn: set the local option to bind to the ingress ip
-rw-r--r--config/roles/openvpn/templates/udp.conf.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/config/roles/openvpn/templates/udp.conf.j2 b/config/roles/openvpn/templates/udp.conf.j2
index 640a450..f93401b 100644
--- a/config/roles/openvpn/templates/udp.conf.j2
+++ b/config/roles/openvpn/templates/udp.conf.j2
@@ -1,5 +1,6 @@
mode server
tls-server
+local {{ ips | ansible.netcommon.ipv4 | first }}
port 80
ca /etc/leap/ca/leap_ca_bundle.crt
cert /etc/credentials/sspki/openvpn/cert.pem