Skip to content

Commit

Permalink
add nftables rule for port 9000
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Jan 17, 2025
1 parent 28466f8 commit 892aaf6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ansible/roles/clickhouse_proxy/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@
service:
name: nginx
state: reloaded

- name: reload nftables
tags: nftables
ansible.builtin.systemd_service:
name: nftables
state: reloaded
10 changes: 10 additions & 0 deletions ansible/roles/clickhouse_proxy/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
---
- name: Allow traffic on port 9000
tags: clickhouse-proxy
blockinfile:
path: /etc/ooni/nftables/tcp/9000.nft
create: yes
block: |
add rule inet filter input tcp dport 9000 counter accept comment "clickhouse"
notify:
- reload nftables

- name: Create the modules-enabled directory if not exists
tags: webserv
ansible.builtin.file:
Expand Down

0 comments on commit 892aaf6

Please sign in to comment.