File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4343SET_TEMPLATE = ('table inet blackhole {\n \t set ${set_name} {\n \t \t type ${ip_ver}_addr\n '
4444 '\t \t flags interval\n \t \t auto-merge\n \t \t elements = { ${ip_list} }\n \t }\n }' ).expandtabs ()
4545
46- FORWARD_TEMPLATE = ('\t chain forward {\n \t \t type filter hook forward priority -1; policy accept ;\n '
46+ FORWARD_TEMPLATE = ('\t chain forward {\n \t \t type filter hook forward priority -1; policy ${default_policy} ;\n '
4747 '\t \t ct state established,related accept\n '
4848 '\t \t ip saddr @whitelist-v4 counter accept\n '
4949 '\t \t ip6 saddr @whitelist-v6 counter accept\n '
9292 chain_output = ''
9393
9494if BLOCK_FORWARD :
95- chain_forward = Template (FORWARD_TEMPLATE ).substitute (block_policy = block_policy ,
95+ chain_forward = Template (FORWARD_TEMPLATE ).substitute (default_policy = default_policy ,
96+ block_policy = block_policy ,
9697 country_policy = country_policy ,
9798 country_ex_ports_rule = country_ex_ports_rule )
9899else :
You can’t perform that action at this time.
0 commit comments