Browse Source

disable ip forwarding not over egress

Blaine Story 1 year ago
parent
commit
4877f59aa4
1 changed files with 7 additions and 0 deletions
  1. 7 0
      roles/router/tasks/main.yml

+ 7 - 0
roles/router/tasks/main.yml

@@ -35,6 +35,13 @@
   notify: Save iptables rules
 
 
+- name: Drop traffic not going over egress interface
+  ansible.builtin.iptables:
+    chain: FORWARD
+    jump: DROP
+  notify: Save iptables rules
+
+
 - name: Enable IP forwarding
   ansible.posix.sysctl:
     name: net.ipv4.ip_forward