benbrockn DD-WRT Novice
Joined: 19 May 2017 Posts: 11
|
Posted: Fri May 26, 2017 15:26 Post subject: Help with issue for external port forwarding |
|
I have my setup like this:
System:
Linksys 1200AC
DD-WRT Build 30796
I have a windows box that I can connect using PuTTy, a Linux box using the "ssh user@IP -p ##" command, and also connectbot on android.
Note: I also made sure my LAN listening client (linux) has its sshd_config set to Port "BB" instead of Port 22
When I connect via internal LAN to my 192.x.x.x gateway on my router using the LAN IP & port "BB" of my listening client, I can SSH into my box just fine. When I try to connect via my WAN IP & port "AA" the router does not redirect, it errors out saying "No route to host" on any device that I use (wired windows/linux or wireless android)
I tried to troubleshoot by just making my Port Forwarding scheme from "BB" to "BB" but even that gives the same error.
I have iptables FORWARD rules set to DROP packets from certain ports, but none of those rules include these ports (AA & BB) that I am using.
I've also tried to experiment with the following settings on/off and none have worked either:
Services->SSHd
Security->Filter WAN NAT Redirection
Security->Limit SSH Access
I'm out of ideas... Anyone have any experience with this?
Thanks |
|
benbrockn DD-WRT Novice
Joined: 19 May 2017 Posts: 11
|
Posted: Fri Jun 02, 2017 2:36 Post subject: |
|
I finally figured it out, and it's not that random guy's code, it's so dumb and simple...
I noticed earlier that the DD-WRT software does not like "all" or "both" commands when it comes to TCP & UDP ports.
You literally have to go into NAT/QoS -> Port Forwarding and do each port for TCP & UDP, NOT using the "both" selection. Just like this:
Code: | App_Name, "TCP", port#1, LAN_IP, same_port#1, "Enable"
App_Name, "UDP", port#1, LAN_IP, same_port#1, "Enable"
App_Name, "TCP", port#2, LAN_IP, same_port#2, "Enable"
App_Name, "UDP", port#2, LAN_IP, same_port#2, "Enable" |
Hope this works for anyone else (and keeps working for me!)
- Ben |
|