Cannot SSH over the internet even port forwarded
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I can SSH via local network.
nmap -p <ssh_port> 192.168.1.xx => <ssh_port> open
But I can't SSH over the internet even port forwarded.
nmap -p <ssh_port> xxxx.duckdns.org or <public_ip> => <ssh_port> closed
And I also have another port forwarding to and it work find over the internet.
nmap -p <cctv_port> xxxx.duckdns.org or <public_ip> => <cctv_port> open
How do I check what is the problems (my ubuntu, router, duckdns or ISP) ? and How to fix it ?
Update1:
- I contact to my ISP and thay told they doesn't block any ports.
- Now I try using python3 -m http.server 8181 and do port forward but can't access from outside too.
networking server ssh port-forwarding
 |Â
show 3 more comments
up vote
0
down vote
favorite
I can SSH via local network.
nmap -p <ssh_port> 192.168.1.xx => <ssh_port> open
But I can't SSH over the internet even port forwarded.
nmap -p <ssh_port> xxxx.duckdns.org or <public_ip> => <ssh_port> closed
And I also have another port forwarding to and it work find over the internet.
nmap -p <cctv_port> xxxx.duckdns.org or <public_ip> => <cctv_port> open
How do I check what is the problems (my ubuntu, router, duckdns or ISP) ? and How to fix it ?
Update1:
- I contact to my ISP and thay told they doesn't block any ports.
- Now I try using python3 -m http.server 8181 and do port forward but can't access from outside too.
networking server ssh port-forwarding
1
Some ISP block some common ports. You may try to change to use other ports.
â Lok Lam Cheng
Apr 21 at 6:17
I also try some other ports but still closed.
â PoundXI
Apr 21 at 6:20
Now I try to use SSH port with working cctv_port. But port not open.
â PoundXI
Apr 21 at 6:22
1
seems problem at router, if ssh working fine within LAN.
â Lok Lam Cheng
Apr 21 at 6:25
1
Are you trying from inside your own network, to the external address? Not all routers support hairpinning. Try from outside your network, or get a friend to try for you.
â vidarlo
Apr 21 at 8:47
 |Â
show 3 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I can SSH via local network.
nmap -p <ssh_port> 192.168.1.xx => <ssh_port> open
But I can't SSH over the internet even port forwarded.
nmap -p <ssh_port> xxxx.duckdns.org or <public_ip> => <ssh_port> closed
And I also have another port forwarding to and it work find over the internet.
nmap -p <cctv_port> xxxx.duckdns.org or <public_ip> => <cctv_port> open
How do I check what is the problems (my ubuntu, router, duckdns or ISP) ? and How to fix it ?
Update1:
- I contact to my ISP and thay told they doesn't block any ports.
- Now I try using python3 -m http.server 8181 and do port forward but can't access from outside too.
networking server ssh port-forwarding
I can SSH via local network.
nmap -p <ssh_port> 192.168.1.xx => <ssh_port> open
But I can't SSH over the internet even port forwarded.
nmap -p <ssh_port> xxxx.duckdns.org or <public_ip> => <ssh_port> closed
And I also have another port forwarding to and it work find over the internet.
nmap -p <cctv_port> xxxx.duckdns.org or <public_ip> => <cctv_port> open
How do I check what is the problems (my ubuntu, router, duckdns or ISP) ? and How to fix it ?
Update1:
- I contact to my ISP and thay told they doesn't block any ports.
- Now I try using python3 -m http.server 8181 and do port forward but can't access from outside too.
networking server ssh port-forwarding
edited Apr 21 at 14:00
asked Apr 21 at 6:07
PoundXI
204
204
1
Some ISP block some common ports. You may try to change to use other ports.
â Lok Lam Cheng
Apr 21 at 6:17
I also try some other ports but still closed.
â PoundXI
Apr 21 at 6:20
Now I try to use SSH port with working cctv_port. But port not open.
â PoundXI
Apr 21 at 6:22
1
seems problem at router, if ssh working fine within LAN.
â Lok Lam Cheng
Apr 21 at 6:25
1
Are you trying from inside your own network, to the external address? Not all routers support hairpinning. Try from outside your network, or get a friend to try for you.
â vidarlo
Apr 21 at 8:47
 |Â
show 3 more comments
1
Some ISP block some common ports. You may try to change to use other ports.
â Lok Lam Cheng
Apr 21 at 6:17
I also try some other ports but still closed.
â PoundXI
Apr 21 at 6:20
Now I try to use SSH port with working cctv_port. But port not open.
â PoundXI
Apr 21 at 6:22
1
seems problem at router, if ssh working fine within LAN.
â Lok Lam Cheng
Apr 21 at 6:25
1
Are you trying from inside your own network, to the external address? Not all routers support hairpinning. Try from outside your network, or get a friend to try for you.
â vidarlo
Apr 21 at 8:47
1
1
Some ISP block some common ports. You may try to change to use other ports.
â Lok Lam Cheng
Apr 21 at 6:17
Some ISP block some common ports. You may try to change to use other ports.
â Lok Lam Cheng
Apr 21 at 6:17
I also try some other ports but still closed.
â PoundXI
Apr 21 at 6:20
I also try some other ports but still closed.
â PoundXI
Apr 21 at 6:20
Now I try to use SSH port with working cctv_port. But port not open.
â PoundXI
Apr 21 at 6:22
Now I try to use SSH port with working cctv_port. But port not open.
â PoundXI
Apr 21 at 6:22
1
1
seems problem at router, if ssh working fine within LAN.
â Lok Lam Cheng
Apr 21 at 6:25
seems problem at router, if ssh working fine within LAN.
â Lok Lam Cheng
Apr 21 at 6:25
1
1
Are you trying from inside your own network, to the external address? Not all routers support hairpinning. Try from outside your network, or get a friend to try for you.
â vidarlo
Apr 21 at 8:47
Are you trying from inside your own network, to the external address? Not all routers support hairpinning. Try from outside your network, or get a friend to try for you.
â vidarlo
Apr 21 at 8:47
 |Â
show 3 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
The problem is I configured port forwarding wrong.
On some huawei router (eg. HG8247H) you need to set external ports mapping to the internal ports, But I forgot to set external ports for some rules.
It's makes my router wrong port mapping behavier. (eg. client request access to port xxx, but client get access to port yyy that is on a previous rules)
I fixed it by add external port on each rules.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The problem is I configured port forwarding wrong.
On some huawei router (eg. HG8247H) you need to set external ports mapping to the internal ports, But I forgot to set external ports for some rules.
It's makes my router wrong port mapping behavier. (eg. client request access to port xxx, but client get access to port yyy that is on a previous rules)
I fixed it by add external port on each rules.
add a comment |Â
up vote
0
down vote
The problem is I configured port forwarding wrong.
On some huawei router (eg. HG8247H) you need to set external ports mapping to the internal ports, But I forgot to set external ports for some rules.
It's makes my router wrong port mapping behavier. (eg. client request access to port xxx, but client get access to port yyy that is on a previous rules)
I fixed it by add external port on each rules.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
The problem is I configured port forwarding wrong.
On some huawei router (eg. HG8247H) you need to set external ports mapping to the internal ports, But I forgot to set external ports for some rules.
It's makes my router wrong port mapping behavier. (eg. client request access to port xxx, but client get access to port yyy that is on a previous rules)
I fixed it by add external port on each rules.
The problem is I configured port forwarding wrong.
On some huawei router (eg. HG8247H) you need to set external ports mapping to the internal ports, But I forgot to set external ports for some rules.
It's makes my router wrong port mapping behavier. (eg. client request access to port xxx, but client get access to port yyy that is on a previous rules)
I fixed it by add external port on each rules.
edited Apr 27 at 15:53
answered Apr 27 at 7:20
PoundXI
204
204
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026861%2fcannot-ssh-over-the-internet-even-port-forwarded%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Some ISP block some common ports. You may try to change to use other ports.
â Lok Lam Cheng
Apr 21 at 6:17
I also try some other ports but still closed.
â PoundXI
Apr 21 at 6:20
Now I try to use SSH port with working cctv_port. But port not open.
â PoundXI
Apr 21 at 6:22
1
seems problem at router, if ssh working fine within LAN.
â Lok Lam Cheng
Apr 21 at 6:25
1
Are you trying from inside your own network, to the external address? Not all routers support hairpinning. Try from outside your network, or get a friend to try for you.
â vidarlo
Apr 21 at 8:47