LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-24-2017, 11:09 PM   #1
Tukatz
Member
 
Registered: Apr 2014
Location: B.C. Canada
Distribution: Ubuntu14.04Trusty, Ubuntu 16.04.1
Posts: 79

Rep: Reputation: Disabled
Network/router issues


I first want to apologize for my lack of techno-speak here. I am fairly comfortable with computer I.T. as long as it involves a Linux Distro, however I have very little experience with configuring routers. So, here's what happened followed by my question: I recently built a web site with Raw html. I had a tech friend build a server from one of my spare computers and he got my site on-line with Docker. several weeks later I had to shut the system down to install surge protection and when I re-booted the site was no longer on-line. It still exists on the Localhost. My friend has moved away and cannot help me so here I am. One thing I did discover is my Ethernet card on the server failed. I installed a spare I had on hand and I am able to access the web now but my site is still inaccessible on-line. I am told by a local source it has something to do with a broken link apparently between the private network and the public network but that is where I REALLY need help.

I am hoping someone can give me step by step instructions as to how to config my system so as to get my site back up. I never had to deal with this before so I am totally lost! my O.S is Ubuntu 16.04LTS, my router is a Linksys EA6700, and I only have a residential Internet account. Tukatz
 
Old 09-25-2017, 12:03 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
Is your router configured with appropriate port forwarding rules perhaps? Specifically, the router needs the correct port-based mapping to be applied so that incoming HTTP connections made to the NAT's public address at port 80 are forwarded to the web server IP address on port 80. Similarly for HTTPS traffic on port 443 (TCP protocol only).

Here's a basic graphical how to to help give you an idea about this.
 
Old 09-25-2017, 12:09 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
Quote:
my O.S is Ubuntu 16.04LTS, my router is a Linksys EA6700, and I only have a residential Internet account.
I assume the internet provider has given you static public IP address? That's important for consistent domain name resolution.

BTW, Linksys page describing router port forwarding...
https://www.linksys.com/ca/support-a...icleNum=138535
 
Old 09-25-2017, 12:14 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Probably the router was set up to issue certain fixed IP address to your server, when the NIC was replaced the MAC address changed and a different IP address was leased from DHCP pool. As a result, port forwarding stopped working.
 
1 members found this post helpful.
Old 10-01-2017, 01:10 AM   #5
Tukatz
Member
 
Registered: Apr 2014
Location: B.C. Canada
Distribution: Ubuntu14.04Trusty, Ubuntu 16.04.1
Posts: 79

Original Poster
Rep: Reputation: Disabled
Router/networking problems

Hi Ferrari & Emerson. Thanks so much for trying to help, I ended up having to return the Linksys after finding out it does not have "port Fwd'g" capabilities. At least that is what I read in threads here. I purchased an Asus RT-AC1900P which DOES have Port Fwd'g but am still struggling with it to get my web site back on-line. So far I have been able to get it working on my local network but can't seem to get any further at this time. I did attempt to use the tutorial mentioned but some of the tabs for setting up don't seem to match my router. I don't give up easy (must be Irish...) I'll let you know if I have success. Thanks again. If you have any other suggestions I'd be happy to try them. Cheers, Tukatz
 
Old 10-01-2017, 02:41 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052
Quote:
Originally Posted by Tukatz View Post
One thing I did discover is my Ethernet card on the server failed.
you mean hardware failure?
from your descriptions so far i find that extremely unlikely.
same with the router.
it's going to be hard to even troubleshoot this problem properly if you keep swapping hardware.

fwiw, my first suggestion would have been to go explore router settings.
and also the static IP.
[ btw, my internet provide never explicitely told me i have a fixed ip, but it has never changed so far ]
 
Old 10-01-2017, 04:02 AM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
This port-forwarding guide might be helpful to you for configuring your Asus RT-AC1900P router...
https://portforward.com/asus/rt-ac1900p/

Port 80 for http, port 443 for https traffic. You do need to know your server IP address of course. That should be configured with a known fixed IP address, either reserved by MAC address on the router, or explicitly configured on the server using and address outside the DHCP range (if applicable).

You can then use any one of a number of web-based port checking tools to confirm that the required ports are open eg
https://www.yougetsignal.com/tools/open-ports/
 
Old 10-01-2017, 07:12 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,022

Rep: Reputation: 5685Reputation: 5685Reputation: 5685Reputation: 5685Reputation: 5685Reputation: 5685Reputation: 5685Reputation: 5685Reputation: 5685Reputation: 5685Reputation: 5685
Your original router, Linksys EA6700 did have port forwarding so more information is needed.

How are you trying to view your web site from the internet? Most home routers do not have loop back capability so if you try to view your web site using your public IP address within your LAN you only get your routers web configuration page. Have you tried from from say your cell phone when use LTE or from outside your LAN?

Is your public IP address static or dynamic? If dynamic are you using a free dynamic IP address service? If so which one and does the client run on your server or router?
 
Old 10-01-2017, 08:21 PM   #9
Tukatz
Member
 
Registered: Apr 2014
Location: B.C. Canada
Distribution: Ubuntu14.04Trusty, Ubuntu 16.04.1
Posts: 79

Original Poster
Rep: Reputation: Disabled
when my site was 1st on-line I could access it from any computer or smart phone anywhere as long as I put the numerical address in the address bar. Yes in fact my Ethernet card did fail as even with a new router I could not get online with the server. When I replaced it the server then could connect to the Internet. I messed up the old D-link while trying to do a re-set, so it would not function after that. Turns out it was obsolete anyhow and it wasn't all that reliable with WiFi anyhow so buying a new one seemed to be necessary. What I am hoping to achieve is for anyone to be able to see my site anywhere. I have set the service name as "HTTP Server" and the "Port Range" as 80 and the "Local IP" is the IP of the server. My ISP did not provide me with a static IP, they tell me I would need a commercial account for that whereas I only have a residential account. Unfortunately I did not make note of the settings in the old D-link router so I have nothing to refer to. I was told that entering "sudo docker start tukatz" (the domain name of my site) in Terminal should reboot the site but unfortunately that did not work.
 
Old 10-02-2017, 09:06 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,826

Rep: Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610
It would be unlikely that you were able to always access your web page from some ipv4 address from outside the lan if you have dynamic IP's. The only way one could access a dynamic ip is by using a dynamic dns service. Some routers do have a built in ddns client but it is a name not a number access unless your account for ddns is a numeral.
 
  


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
Network setup: router + wireless router card slackwarefan Linux - Networking 2 04-24-2010 09:44 PM
Slight issues after adding router to network. Cage47 Linux - Networking 3 10-09-2009 12:20 AM
Adding new Linux firewall/router on network with pre-existing gateway/router grittyminder Linux - Networking 4 08-13-2008 03:17 AM
Dell m1210 Linux issues (having issues getting network working under Ubuntu) thebert Linux - Newbie 4 03-14-2008 04:47 PM
CentoOS router/firewall prob - local network works but router can't access Internet elementalvoid Linux - Networking 6 12-12-2006 04:39 PM

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

All times are GMT -5. The time now is 04:44 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