mirror of https://github.com/aredn/aredn.git
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:
parent
2cf8b32e85
commit
d9cbccdb41
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue