Skip to content

Commit eab47df

Browse files
Ensure IP forwarding is enabled permanently
1 parent 230dd07 commit eab47df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vpn-client/playbooks/deploy-vpn-client.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@
103103

104104
- name: Route the traffic
105105
command: ip route add 10.100.49.2/32 via 10.100.49.10
106+
107+
- name: Ensure IP forwarding is enabled permanently
108+
lineinfile:
109+
path: /etc/sysctl.conf
110+
regexp: '^#?net.ipv4.ip_forward'
111+
line: 'net.ipv4.ip_forward=1'
112+
state: present
106113

107114
- name: Set DNS
108115
command: resolvectl dns eth0 8.8.8.8 8.8.8.8

0 commit comments

Comments
 (0)