What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

SSH Listen on 2 Ports

john5788

New Around Here
I have an RT-AC68U running 384.13. Is it possible to run dropbear to listen on 2 ports?

I tried opening a new dropbear process:

# dropbear -p 8022 -a

But I cannot connect to it. Is this an iptables rule I need to add to open 8022 on the router itself so I can connect? netstat shows this port is open, but I cannot connect to it externally.

# netstat -an | grep 8022
tcp 0 0 0.0.0.0:8022 0.0.0.0:* LISTEN
tcp 0 0 :::8022 :::* LISTEN
 
Last edited:
Nevermind, solved it myself, it was an iptables rule I needed to add.

# iptables -I INPUT -p tcp --dport 8022 -j ACCEPT

And I can now connect.

I'm guessing if I reboot, I lose these changes. How would I go about making these 2 changes permanent on boot?
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top