Skip to content

Commit 3c8af40

Browse files
committed
Enable IP forwarding
1 parent 6f2a013 commit 3c8af40

File tree

1 file changed

+7
-0
lines changed
  • ansible/roles/sql-iptables/tasks

1 file changed

+7
-0
lines changed

ansible/roles/sql-iptables/tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@
66
dest: /etc/iptables/rules.v4
77
src: rules.v4.j2
88
notify: restart netfilter-persistent
9+
- name: Configure sysctl
10+
copy:
11+
dest: /etc/sysctl.d/sql.conf
12+
content: |
13+
net.ipv4.ip_forward=1
14+
net.ipv4.conf.all.accept_local = 1
15+
notify: reload sysctl

0 commit comments

Comments
 (0)