bugfix: aredn: Port Forward not working over dtdlink in LAN NAT mode

Tested-by: Timm Schunck <dl4fly@darc.de>
fixes #449
This commit is contained in:
Joe Ayers 2020-02-23 15:50:57 -08:00 committed by Joe AE6XE
parent 2cf8b32e85
commit d9cbccdb41
1 changed files with 3 additions and 0 deletions

View File

@ -380,14 +380,17 @@ foreach(`cat $portfile`)
if($intf eq "both")
{
print FILE "\nconfig redirect\n\toption src wifi\n\t$match\toption src_dip $cfg{wifi_ip}\n\t$host\n";
print FILE "\nconfig redirect\n\toption src dtdlink\n\t$match\toption src_dip $cfg{wifi_ip}\n\t$host\n";
print FILE "config redirect\n\toption src wan\n\t$match\t$host\n";
}
elsif($intf eq "wifi")
{
print FILE "\nconfig redirect\n\toption src dtdlink\n\t$match\toption src_dip $cfg{wifi_ip}\n\t$host\n";
print FILE "config redirect\n\toption src wifi\n\t$match\toption src_dip $cfg{wifi_ip}\n\t$host\n";
}
elsif($intf eq "wan")
{
print FILE "\nconfig redirect\n\toption src dtdlink\n\t$match\toption src_dip $cfg{wifi_ip}\n\t$host\n";
print FILE "config redirect\n\toption src wan\n\t$match\t$host\n";
}
else