Internet accessibility

Discussion in 'Installation/Configuration' started by Pier-Luc, May 31, 2020.

  1. Pier-Luc

    Pier-Luc New Member

    Hello everyone.
    Ok, I'm really new to all this but I want to learn. And please excuse my English.

    So I turned an old Pc into my own hosting server, since I want to offer an hosting service to my graphic design customers. So I went on and bought a domain name from "whc.ca": "grappin.ca". So here I am trying to make this work. After 5 installation of Ubuntu 18.04 and ISPconfig 3, I think it's working... at 50%. At least not what I want it to do.

    Here are the issues:

    So here is how i want it to behave:
    1st: I want to host my own website: "grappin.ca" on a simple wordpress. So i created my own client profile, set up my website, add up the wordpress package. Everything is working relatively fine, everything seems to be created. Then I go to "whc.ca" cpanel, in the dns-zone editor to link "grappin.ca" to my router IP by adding an A address. But when type "grappin.ca" in Mozilla, in Ubuntu, on the server PC, I can't reach the website. So I tried on other LAN PC: can't reach it either. But on my cellphone, it's working. Do you have any idea of where the problem can be and what could be the solution?

    2nd: I would like to be able to access ISPconfig control panel by entering "server.grappin.ca:8080", which work when I enter it on Mozilla, in Ubuntu, on the server PC. To try to make it work, I went in the "whc.ca" cpanel to edit the dns-zone, added an A address and linked "server.grappin.ca" to my router IP address and forwarded the 8080 port. But when I try to access it on any other PC on my LAN, it doesn't work. When i try to access it from my cellphone, it doesn't work either. Again, do you have any solution?

    3rd: Here is my Noob question: When a domain provider will ask me to input a nameserver for the domain to access my hosting, should i create my "ns1.grappin.ca" and "ns2.grappin.ca" in my ISPconfig dns-editor or in "whc.ca" cpanel dns-zone editor?

    As you can see, I'm really lost in all this.
    Thank you so very much for your help.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    This Tutorial on DNS name service setup has text on testing name service is working, use that to verify you setup is working as expected. https://www.howtoforge.com/tutorial/setting-up-your-own-name-service-with-ispconfig/#nbsptesting
    If you are accessing your website from inside the same LAN, the host has a different IP number. So it can not use the name service for outside world. You can either set up name service internal to your LAN, or use this method on your internal hosts to access the server:
    https://www.faqforge.com/linux/cont...ess-a-namebased-website-without-a-dns-record/
     
  3. Pier-Luc

    Pier-Luc New Member

    OH MY G! It wasn't working!
    Just added it up in my nameserver on ISPconfig and it works now!!
    I feel so dumb but so happy at the same time. XD
    Thank you so very much Taleman. :D

    There is just a little thing that i still wonder why it doesn't work. Even tho I can access the server on my mobile phone, I can't access it from my Mac which is on the same LAN. I've tried to add the IP address of the server in my /etc/hosts file on my mac, but it still don't want to get to either "grappin.ca" or "server.grappin.ca". This is kind of weird, since my browser should fetch the web if the LAN don't give a response? Am I wrong?

    Thank you again :)
     
    Last edited: Jun 1, 2020
  4. Th0m

    Th0m ISPConfig Developer ISPConfig Developer

    Just a side note: if you sell your services of hosting to clients, consider using a VPS at a professional hosting provider. Lots of stuff can go wrong with a simple desktop PC at your home connection: harddrive failure, power supply failure, power outage, internet outage, etc. You could also become a reseller of a hosting provider.
     
  5. Pier-Luc

    Pier-Luc New Member

    Thank you Th0m. I've considered that option, but to pay a monthly fee while I have currently no income (I'm starting up business) and I'm not totally sure of my success rate, I prefer start with something like this, and I'll upgrade if something goes wrong. Thank you for the advice :)
     
  6. ahrasis

    ahrasis Well-Known Member

    You will need to learn the way of running servers behind nat because unlike running a vps, it is normally limited or blocked by your router unless you configured port forwarding etc.

    Your ISP may also limit your port and you may need to depend on dynamic ip which need to be updated from time to time.

    Contrary to what most people say, for me you can start your biz from home so long you know what you are doing and do it right.

    I have been running home servers (personal, not commercial) for more than 7 years starting from 5mbps connection to 100mbps with only one dynamic IP at a time with various kind of problems.

    Unless you give up too early, that problems can actually will help you be better in understanding linux, coding and related machines in this server industry.

    So I'll say go for it and have fun in learning and experiencing things.
     
    Th0m likes this.
  7. Pier-Luc

    Pier-Luc New Member

    Thx ahrasis. In fact I'm pretty used of configuring server behind a router. I've made it quite a few times with some game server. But this time, it's not really the same. Tho I'm lucky. My ISP is providing me with a static ip. But I'm still really confused about the fact that I can't access my ISPconfig from my other pc. On my cellphone, through LTE, everything is alright, I have access to my website and ISPconfig, but not through LAN. I wouldn't mind if it would go through the WAN to get back to the server, but it's not even the case... X_X
     
  8. Pier-Luc

    Pier-Luc New Member

    I MADE IT!
    All is working.

    Sorry again for my noobness and thank you all for your help and encouragement :)
     
    Th0m and ahrasis like this.

Share This Page