Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to optionally configure NAT source address #168

Merged
merged 6 commits into from
Dec 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/ufw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# OpenVPN config
*nat
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s {{ openvpn_server_network }}/24 -j SNAT --to-source {{ ansible_default_ipv4.address }}
-A POSTROUTING -s {{ openvpn_server_network }}/24 -j SNAT --to-source {{openvpn_lan_source_ip|default(ansible_default_ipv4.address)}}
COMMIT
when: not openvpn_masquerade_not_snat
notify:
Expand Down