Fix - Disable gateway fqdn, allowing access to router port 80

Signed-off-by: Rob White <rob@blue-wave.net>
This commit is contained in:
Rob White
2021-08-31 22:28:33 +01:00
parent ee7c26ef7c
commit 989750ee87

View File

@@ -528,7 +528,7 @@ iptables_fw_init(void)
// CHAIN_OUTGOING, other packets ACCEPT
rc |= iptables_do_command("-t nat -A " CHAIN_OUTGOING " -j ACCEPT");
if (config->gw_fqdn) {
if (strcmp(config->gw_fqdn, "disable") != 0) {
rc |= iptables_do_command("-t nat -I " CHAIN_OUTGOING " -p tcp --destination %s --dport 80 -j REDIRECT --to-port %d",
config->gw_ip,
config->gw_port