From d9cbccdb418b2aabc67365516c21cb41ba5def3b Mon Sep 17 00:00:00 2001 From: Joe Ayers Date: Sun, 23 Feb 2020 15:50:57 -0800 Subject: [PATCH] bugfix: aredn: Port Forward not working over dtdlink in LAN NAT mode Tested-by: Timm Schunck fixes #449 --- files/usr/local/bin/node-setup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/usr/local/bin/node-setup b/files/usr/local/bin/node-setup index 3b47a6b5..b996743c 100755 --- a/files/usr/local/bin/node-setup +++ b/files/usr/local/bin/node-setup @@ -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