Skip to content

Commit 88c0fee

Browse files
committed
Add missing firewall rule
1 parent 2ecbebb commit 88c0fee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/fw_iptables.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,11 @@ iptables_fw_init(void)
333333

334334
iptables_do_command("-t nat -A " CHAIN_UNKNOWN " -j " CHAIN_AUTHSERVERS);
335335
iptables_do_command("-t nat -A " CHAIN_UNKNOWN " -j " CHAIN_GLOBAL);
336-
if (got_authdown_ruleset)
336+
if (got_authdown_ruleset) {
337337
iptables_do_command("-t nat -A " CHAIN_UNKNOWN " -j " CHAIN_AUTH_IS_DOWN);
338-
iptables_do_command("-t nat -A " CHAIN_UNKNOWN " -p tcp --dport 80 -j REDIRECT --to-ports %d", gw_port);
338+
iptables_do_command("-t nat -A " CHAIN_AUTH_IS_DOWN " -m mark --mark 0x%u -j ACCEPT", FW_MARK_AUTH_IS_DOWN);
339+
}
340+
iptables_do_command("-t nat -A " CHAIN_UNKNOWN " -p tcp --dport 80 -j REDIRECT --to-ports %d", gw_port);
339341

340342

341343
/*

0 commit comments

Comments
 (0)