Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/opt/bin/rsub: line 393: /dev/tcp/localhost/52698: Connection refused #76

Open
wansiedler opened this issue Jan 19, 2019 · 1 comment
Open

Comments

@wansiedler
Copy link

wansiedler commented Jan 19, 2019

Please help! =(

[~]> cat ~/.ssh/config
Host router
User me
HostName 192.168.1.1
Port 65000
RemoteForward 52698 localhost:52698
[~]> ssh router
ASUSWRT-Merlin RT-AC5300 384.8-2 Sat Dec 8 18:19:13 UTC 2018
me@RT-AC5300-EC70:/tmp/home/root# /opt/bin/rsub ~/test.txt

/opt/bin/rsub: connect: Connection refused
/opt/bin/rsub: line 393: /dev/tcp/localhost/52698: Connection refused
me@RT-AC5300-EC70:/tmp/home/root#

WTF!?

Tried to dump all iptables rules. No luck =(((

logger "Setting default filter policy"
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
logger "Flushing all rules"
#-F flushes all the chains. Chains can't be deleted unless they are empty
iptables -F
#-X Delets all the non-builtin chains in the table
iptables -X
#-Z Zero's the packet and byte counters in all chains
iptables -Z

@KES777
Copy link
Collaborator

KES777 commented Jan 29, 2019

  1. try to change localhost by 127.0.0.1

  2. Do you run rsub on local or remote host?

  3. does something listening on 52698 on your local machine?
    probably port is forwarded but nothing is listening on your local machine

run sudo netstat -tulpan | grep 52698 ( or at least netstat -an| grep 52698 ) on local and remote host.
and paste output here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants