Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: HELP I know I must have missed something simple :-)

  1. #1
    Join Date
    Apr 2013
    Beans
    28

    HELP I know I must have missed something simple :-)

    Hello Everyone.

    I have not run a server in a while, but I just setup a pc running the latest Ubuntu server package and it installed fine. I also installed webmin and phpmyadmin. In the Ubuntu package,. I installed the OPENssh server, the LAMP server, the mail server and the mysql server. I have my domain pointing at my i.p. address and when you go to one of the domains I have (www.socialpitchman.com) , you can see that it is trying to go to my sevrer i.p. and open the page, but for some reason, it is not working. It just times out and then my i.p. address pops up into the address bar. I ran netstat -tlpn and the results are below. I am running apache 2 with virtual hosts and the conf. files fore the various sites are in the sites-available and the sites-enabled folders. what can I check next? Thanks for your time. Dan

    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 16844/apache2
    tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 1375/perl
    tcp 0 0 192.168.1.102:53 0.0.0.0:* LISTEN 2434/named
    tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2434/named
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 852/sshd
    tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1170/master
    tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 984/dovecot
    tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 984/dovecot
    tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1003/mysqld
    tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 984/dovecot
    tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 984/dovecot
    tcp6 0 0 :::53 :::* LISTEN 2434/named
    tcp6 0 0 :::22 :::* LISTEN 852/sshd
    tcp6 0 0 :::25 :::* LISTEN 1170/master
    tcp6 0 0 :::993 :::* LISTEN 984/dovecot
    tcp6 0 0 :::995 :::* LISTEN 984/dovecot
    tcp6 0 0 :::110 :::* LISTEN 984/dovecot
    tcp6 0 0 :::143 :::* LISTEN 984/dovecot

  2. #2
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,515
    Distro
    Ubuntu Development Release

    Re: HELP I know I must have missed something simple :-)

    When I try to go to the site you listed, a tcp session is opened and port 80 does respond, but I get a "301 moved permanently" response. The response also contains 76.29.34.164 as where it moved to, but that address never responds. For subsequent tries, my LapTop computer (a windows computer) never tries the original address again, only the referred to one. (this confused me for awhile as I was trying to capture the raw packets exiting my server with tcpdump).
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  3. #3
    Join Date
    Apr 2013
    Beans
    28

    Re: HELP I know I must have missed something simple :-)

    Still trying to figure this out. So far, no luck.

  4. #4
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: HELP I know I must have missed something simple :-)

    Did you try the server local private IP? From another computer on the LAN, what happens if you try to open the server IP in a browser?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  5. #5
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: HELP I know I must have missed something simple :-)

    You said you installed a mail server too. Did you work on the configuration or not yet?

    I am asking because the domain and the MX record seem to be pointed to different public IPs.
    nslookup says that the domain is pointed to 50.63.202.23 (is that your public IP?) but the MX record is pointing to 72.167.238.201.

    If the same machine is the web and mail server, they would be pointed to the same machine.

    First of all do the local network check that I mentioned above, see if you can open the webserver from the local network. That will show you if apache2 is running fine. You can also try opening by domain name if you add it into your hosts file to see if it will open it locally.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  6. #6
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,515
    Distro
    Ubuntu Development Release

    Re: HELP I know I must have missed something simple :-)

    O.K. interesting... Darko mentioned an IP address which seemed odd to me, based on what I did last night. Indeed, the lookup address has changed since last night, when it was 184.168.221.30.
    So now, at first I get a "moved temporiliy" response to some jibberish location, and then I get a TCP session reset reponse when my browser automatically tries the jibberish location. Then it gets a "moved perminently" response to the same IP address as my first post.
    So, and as Darko asked, what is your actual external IP address? Do you have a static external IP address? (I suspect not.) Does your ISP allow port 80 traffic?
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  7. #7
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: HELP I know I must have missed something simple :-)

    They are both GoDaddy IPs.

    So, I guess you didn't do the configuration in the GoDaddy panel correctly. You need to keep using their nameservers if you want to, but the main A host that says '@' you need to modify to point to your public IP where the web server will be. Otherwise as it is now, it will look for the website on the GoDaddy servers and it seems you haven't uploaded any files there. That is if you have a website hosting package at all, maybe you purchased only a domain registration.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  8. #8
    Join Date
    Apr 2013
    Beans
    28

    Re: HELP I know I must have missed something simple :-)

    Hi,

    I did changed my @ record on godaddy to point to my i.p. (76.29.34.164), and I believe if I park my nameservers in godaddy, then it should grab the @ record and direct the traffic to my server. The problem I am having is that when I parked my nameservers, and have my i.p. in the @ record and then check back on godaddy a couple hours later, the nameservers reverted back to "I have hosting with this account" and the i.p. changes to a godaddy i.p.. Very strange. I have now setup nameservers with freedns and have changed the nameservers in godaddy to point to the freedns nameservers which should then route the traffic to my sevrer. I have no idea why godaddy was reverting my changes. we'll see what happens with the nameserver change. Maybe that was the issue. If I am at my house and go on my laptop and open a browser and put in the local i.p. of the server (192.168.1.102), then the site comes up. I will add the site to the "Hosts" file and see how that goes. Is there anything else I should look at?

    Thanks for your help. Dan

  9. #9
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,515
    Distro
    Ubuntu Development Release

    Re: HELP I know I must have missed something simple :-)

    O.K. so your external IP address is 76.29.34.164: Last night there was no reply at all for TCP session SYN packets on port 80. ICMP echo worked fine.
    Eariler today, there was now a response "ICMP host 192.168.1.101 unreachable", suggesting port forwarding is been used, and I assume your server is on your local lan at 192.168.1.101
    Right now, and going by ip address only, name servers left out of it, I get the same ICMP response to a TCP SYN request to 76.29.34.164 port 80.
    I wonder if there is some port forwarding issue or some firewall (iptables or ufw) rules on your server preventing the session.

    If you run a tcpdump session (or wireshark if you prefer) on your server, do you see port 80 stuff coming in to it when someone tries from the WAN? Example:
    Code:
    sudo tcpdump -n -nn -tttt -i eth1 port 80
    change eth1 to whatever interface is right for your server.
    Last edited by Doug S; April 4th, 2013 at 07:06 PM. Reason: typo and added something
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  10. #10
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: HELP I know I must have missed something simple :-)

    I think the original mistake was to change both the @ host and the nameservers. You should have left the GoDaddy nameservers to run the show, and you only work with the hosts and MX record. That takes the complication of running a DNS server off your shoulders. If you changed only the @ record, it would have worked great provided your ISP is not blocking port 80.

    One reason why the nameservers might have reverted back is if your DNS server is not set up correctly or if it wasn't reachable. I think if GoDaddy system can't detect the nameservers you tried using, it will revert back.

    The freedns was not necessary, you can control everything with GoDaddy.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •