Skip to content

Commit

Permalink
iptables
Browse files Browse the repository at this point in the history
  • Loading branch information
james committed Dec 12, 2024
1 parent a0138f2 commit 246f4f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ansible/roles/chrony_server/templates/iptables.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

# Allow NTP traffic
-A INPUT -d {{ NTP_IP }}/32 -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -d {{ NTP_IP }}/32 -j DROP
-A INPUT -d {{ NTP_IP }}/32 -p tcp -m tcp --dport 123 -j ACCEPT
#-A INPUT -d {{ NTP_IP }}/32 -j DROP

-A FORWARD -d {{ NTP_IP }}/32 -p udp -m udp --dport 123 -j ACCEPT
-A FORWARD -d {{ NTP_IP }}/32 -p tcp -m tcp --dport 123 -j ACCEPT
#-A FORWARD -d {{ NTP_IP }}/32 -j DROP

COMMIT

0 comments on commit 246f4f7

Please sign in to comment.