LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2016, 04:44 PM   #1
altermetax
LQ Newbie
 
Registered: Apr 2015
Distribution: Manjaro 16.06.1
Posts: 25

Rep: Reputation: Disabled
Question No ability to connect to my server from remote network


Hello,
I had this problem for a couple of days: I can't connect to my arch linux server machine (I know I shouldn't use Arch for this, but it's just a test). I started a TeamSpeak, Minecraft and Apache server, then I forwarded the right ports for them. I used noip to get a static ip address to my router, then I tried connecting via localhost (worked), via 192.168.1.41, my local IP (worked), via x.x.x.x, my router ip (worked) and with ****.ddns.net, the no-ip address (worked).
But if I try to connect to ****.ddns.net (or x.x.x.x) from another network, the connection is refused. By testing my open ports with the online tools it looks like the ports are closed. I tried disabling iptables:
Code:
# systemctl disable iptables
# systemctl stop iptables
but nothing changed. I don't really know what the problem may be. Obviously it can't be noip because nothing works also when connecting to my real (dynamic) ip.
Thanks for future answers.
 
Old 03-11-2016, 05:07 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Most ISP's block the ports for home users. They open all ports only for business grade connection.
 
Old 03-11-2016, 05:11 PM   #3
altermetax
LQ Newbie
 
Registered: Apr 2015
Distribution: Manjaro 16.06.1
Posts: 25

Original Poster
Rep: Reputation: Disabled
But I had ports opened for years (not every port), and they have never been closed. Also, it doesn't refuse remote connections from local ips (e.g. I can connect from the server to the server using the remote IP), so I don't think the problem is that.

Last edited by altermetax; 03-11-2016 at 05:13 PM.
 
Old 03-11-2016, 05:16 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,688

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Have you ever be able to connect from a remote network?
Can you still connect from your LAN using your no-ip URL or router IP address?
Are you using a static IP or DHCP address reservation for your server on the LAN side?
It seems unlikely but could the ISPs be blocking the port?
 
Old 03-11-2016, 05:19 PM   #5
altermetax
LQ Newbie
 
Registered: Apr 2015
Distribution: Manjaro 16.06.1
Posts: 25

Original Poster
Rep: Reputation: Disabled
I was able to connect about a week ago, but I don't think I changed something about the network on my system this week; I even don't think I updated the system (but I did that today, after the problem appeared);
I can connect from my lan using my no-ip URL or router IP address;
I am using a static local IP;
If the ISP is blocking the port, they are doing it manually, because I had some ports opened (and used) for years, with the same router and the same ISP.

EDIT: I just tried pinging the router from a remote network. The whole network can't be reached (doesn't say bad address, it just doesn't receive packets), so it isn't a ports problem.

Last edited by altermetax; 03-11-2016 at 05:41 PM.
 
Old 03-11-2016, 05:41 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,688

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
By IP or URL?
 
Old 03-11-2016, 05:42 PM   #7
altermetax
LQ Newbie
 
Registered: Apr 2015
Distribution: Manjaro 16.06.1
Posts: 25

Original Poster
Rep: Reputation: Disabled
Both.
 
Old 03-11-2016, 05:56 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,688

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
If your router is configured to not respond to ICMP requests then the ping command will fail with x packets transmitted and none received with 100% packet loss. So that might not be a problem. If a remote port scan shows everything as closed then it could be an ISP problem. The router might be able to loopback so connecting from your local LAN may not mean much at the moment.
 
Old 03-11-2016, 09:01 PM   #9
af7567
Member
 
Registered: Nov 2012
Posts: 292

Rep: Reputation: 105Reputation: 105
Quote:
Originally Posted by Emerson View Post
Most ISP's block the ports for home users. They open all ports only for business grade connection.
Is this really true?
I know some might block ports for web servers or mail servers to try and stop the spread of viruses and spam, but I thought most ISPs allowed all incoming traffic
 
Old 03-12-2016, 03:13 AM   #10
altermetax
LQ Newbie
 
Registered: Apr 2015
Distribution: Manjaro 16.06.1
Posts: 25

Original Poster
Rep: Reputation: Disabled
I don't think it is an ISP problem. There was no problem some days ago. And in the webserver @ 192.168.1.1 (the router) I am able to set port forwarding...
I think it's a problem with my system. I will try as soon as I can to setup another server in the same network to test.

Does GNU/Linux have some configuration files for only accepting connections coming from the same ip?

EDIT: Yes, I just tried starting an apache2 webserver on an Ubuntu 14.04 on the same network, and I can connect from an external network, too (after setting port forwarding to it, static local IP etc). So the problem is my system.

Last edited by altermetax; 03-12-2016 at 03:28 AM.
 
Old 03-13-2016, 12:59 AM   #11
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 350

Rep: Reputation: 60
Probably a silly question here - did you check for internet access on the arch server machine that is having the problem ?

I have a vague feeling its missing the default gateway or a route to the internet.

What does "route -n" on the arch machine show ?
 
Old 03-20-2016, 06:21 AM   #12
Snakes
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware
Posts: 16

Rep: Reputation: 2
Have you set up tcp_wrappers? Check if there is anything in these files: /etc/hosts.allow and /etc/hosts.deny.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTPD cannot connect from remote network deirdrehbrt Linux - Networking 1 05-30-2013 01:49 PM
Unable to connect MS SQL server 2008 Remote Server through SQUID proxy server samank75 Linux - Server 5 01-19-2012 09:19 PM
[SOLVED] Fuzzing - Buffer Overflow - Ability Server - Could not Connect to FTP Server lee_can Linux - Server 12 06-03-2011 12:39 PM
OpenVPN cannot connect to remote network behind server csweden Linux - Newbie 1 08-31-2008 04:27 AM
Remote connect to network through speedtouch ADSL hobz Linux - Networking 4 01-21-2005 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration