Skip to content

Commit

Permalink
dont place first
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommi committed Aug 6, 2024
1 parent a5c3c74 commit 49ea108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter_plugins/generate_routeros_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def generate_nat_rule(item, public_ip):

def generate_filter_rule(item):
"""Generate a filter rule string for RouterOS."""
return f"/ip firewall filter add chain=forward protocol={item['protocol']} " f"dst-port={item['from_port']} action=accept place-before=0"
return f"/ip firewall filter add chain=forward protocol={item['protocol']} " f"dst-port={item['from_port']} action=accept place-before=5"


class FilterModule(object):
Expand Down

0 comments on commit 49ea108

Please sign in to comment.