Hi, can I ask a possibly stupid question here?
I'm trying to get ssh remote port forwarding working on my Asus RT-AC3200. I'm running Asuswrt-Merlin 380.65 (updated yesterday).
Regular port forwarding is working just fine, I can use the webui to setup port forwarding, and it works for me (as long as NAT acceleration is disabled). What I'm having trouble with is using the -R or RemoteForward options of an ssh connection.
Is there some other step I'm missing? I'm wondering if there might be some webui settings I need to change, or maybe routing or commands I need to run or ssh options I should be using to get the port to open and forward to a machine inside my home network.
Here's what I've observed, what I've tried, and the settings I have that I suspect are relevant:
- WebUI port forwarding works correctly.
- ssh LocalForward (-L) is working correctly, I can run ssh and connect to a local port that gets forwarded to the Asus' LAN net.
- ssh DynamicForward (-D) is working correctly, I can successfully use the Asus+ssh connection as a SOCKS proxy.
- The ssh RemoteForward command I'm using is working correctly on another device inside my network, so I'm sure the ssh command is configured correctly.
- When I was running 380.64 yesterday, ssh RemoteForward was working on the Asus' LAN address, but not on it's WAN address -- I could only connect to the forwarded port if I used 10.0.1.1 from inside the LAN, but the port wouldn't connect using my DDNS address.
- Today using 380.65, I haven't been able to get either the LAN address or the WAN address to respond. (I'm not certain the FW version has anything to do with it, just mentioning it.)
- I can run httpd on a random port on the Asus, and connect to it on both LAN & WAN addresses.
Settings:
ssh is set to WAN+LAN, allow port forwarding is set to YES, I've tried with Brute Force Protection both on & off.
Most of my testing has involved Enable Firewall set to "No"; I assumed the Firewall needs to be turned off, but I'm not sure.
I've tried toggling the NAT loopback setting (noting the LAN/WAN discrepancy yesterday), but saw no difference.
I have NAT acceleration disabled.
I have webui Port Forwarding enabled, but have tried turning it off thinking maybe it overrides what ssh is trying to do. No difference. Most of the time I've had no port forwarding entries in the table.
I don't yet know how to use or read iptables properly, or whether I would even see ssh port forwards listed there (yes I am someone who only knows enough to get himself into trouble). However, I did dump my iptables after reading some other threads here. I diffed the tables from before and after running ssh with various forwarding configs in them, and I saw no differences relevant to the ssh command, nor the ports that were forwarded and working, so I started thinking iptables might not help me debug this, or I didn't look at the right tables? The commands I tried & diffed were: "iptables --table nat --list -v" and "iptables --list -v".
Am I overlooking something obvious? Is there something special I should be doing to allow ssh to open a port to listen on?
I'm trying to get ssh remote port forwarding working on my Asus RT-AC3200. I'm running Asuswrt-Merlin 380.65 (updated yesterday).
Regular port forwarding is working just fine, I can use the webui to setup port forwarding, and it works for me (as long as NAT acceleration is disabled). What I'm having trouble with is using the -R or RemoteForward options of an ssh connection.
Is there some other step I'm missing? I'm wondering if there might be some webui settings I need to change, or maybe routing or commands I need to run or ssh options I should be using to get the port to open and forward to a machine inside my home network.
Here's what I've observed, what I've tried, and the settings I have that I suspect are relevant:
- WebUI port forwarding works correctly.
- ssh LocalForward (-L) is working correctly, I can run ssh and connect to a local port that gets forwarded to the Asus' LAN net.
- ssh DynamicForward (-D) is working correctly, I can successfully use the Asus+ssh connection as a SOCKS proxy.
- The ssh RemoteForward command I'm using is working correctly on another device inside my network, so I'm sure the ssh command is configured correctly.
- When I was running 380.64 yesterday, ssh RemoteForward was working on the Asus' LAN address, but not on it's WAN address -- I could only connect to the forwarded port if I used 10.0.1.1 from inside the LAN, but the port wouldn't connect using my DDNS address.
- Today using 380.65, I haven't been able to get either the LAN address or the WAN address to respond. (I'm not certain the FW version has anything to do with it, just mentioning it.)
- I can run httpd on a random port on the Asus, and connect to it on both LAN & WAN addresses.
Settings:
ssh is set to WAN+LAN, allow port forwarding is set to YES, I've tried with Brute Force Protection both on & off.
Most of my testing has involved Enable Firewall set to "No"; I assumed the Firewall needs to be turned off, but I'm not sure.
I've tried toggling the NAT loopback setting (noting the LAN/WAN discrepancy yesterday), but saw no difference.
I have NAT acceleration disabled.
I have webui Port Forwarding enabled, but have tried turning it off thinking maybe it overrides what ssh is trying to do. No difference. Most of the time I've had no port forwarding entries in the table.
I don't yet know how to use or read iptables properly, or whether I would even see ssh port forwards listed there (yes I am someone who only knows enough to get himself into trouble). However, I did dump my iptables after reading some other threads here. I diffed the tables from before and after running ssh with various forwarding configs in them, and I saw no differences relevant to the ssh command, nor the ports that were forwarded and working, so I started thinking iptables might not help me debug this, or I didn't look at the right tables? The commands I tried & diffed were: "iptables --table nat --list -v" and "iptables --list -v".
Am I overlooking something obvious? Is there something special I should be doing to allow ssh to open a port to listen on?