Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Building my own web server


  • Please log in to reply
12 replies to this topic

#1 groppo91

groppo91

  • Members
  • 8 posts
  • OFFLINE
  •  
  • Local time:05:12 AM

Posted 14 July 2017 - 02:55 AM

Hi I have a server laying about that I bought for learning purposes anyway I was thinking of turning it into a web server but really could do with some advice. I am currently with virgin media but the contract is up so would like to know are there any home broadband firms that offer a static ip? I heard plusnet does. If not am I right in saying dynamic-dns sites will work with a dynamic ip?

 

 



BC AdBot (Login to Remove)

 


#2 Crazy Cat

Crazy Cat

  • Members
  • 808 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Lunatic Asylum
  • Local time:05:12 PM

Posted 14 July 2017 - 07:28 PM

Server Software

LAMP (software bundle). https://en.wikipedia.org/wiki/LAMP_%28software_bundle%29

Abyss Web Server. http://aprelium.com/abyssws/

Which Linux Open Source Web Server is Right for You? https://www.linux.com/news/which-light-weight-open-source-web-server-right-you


Dynamic IP to Static IP: Your router will handle a Dynamic IP with either one of these services.

https://dnsdynamic.org/

https://www.noip.com/
https://www.noip.com/blog/2013/04/12/cost-of-a-static-ip-address/

Static IP Internet Providers: This depends which country you live in and where you're located?

ISP that support static IPs.

https://www.uswitch.com/broadband/compare/static_ip_broadband/

IP Address: All plans come with Static IP address. https://www.tpg.com.au/products_services/adsl2-standalone
 

Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. ― Albert Einstein ― Insanity is doing the same thing, over and over again, but expecting different results.

 

InternetDefenseLeague-footer-badge.png


#3 groppo91

groppo91
  • Topic Starter

  • Members
  • 8 posts
  • OFFLINE
  •  
  • Local time:05:12 AM

Posted 15 July 2017 - 04:13 AM

Hi many thanks for the reply,

 

I will probably go down the Dynamic IP to Static IP route for now. I setup a dynu for this but it didn't seem to work. Will probably spend some more time trying. 

 

My weakness has always been networking and servers but I have learnt a fair bit recently. Am I right in saying I need an OS on my server (probably Ubuntu) and then I can install LAMP?

 

Will my Dynamic IP to Static IP need to be setup first? is there any useful information online to help me with this? forgot to mention I am in UK if that helps :D



#4 Crazy Cat

Crazy Cat

  • Members
  • 808 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Lunatic Asylum
  • Local time:05:12 PM

Posted 15 July 2017 - 09:29 PM

Hi many thanks for the reply,
 
(1) I will probably go down the Dynamic IP to Static IP route for now. I setup a dynu for this but it didn't seem to work. Will probably spend some more time trying.

(2) Am I right in saying I need an OS on my server (probably Ubuntu) and then I can install LAMP?

(3) Will my Dynamic IP to Static IP need to be setup first? is there any useful information online to help me with this? forgot to mention I am in UK if that helps :D

(1) Look at https://www.dynu.com/Resources/Tutorials/DynamicDNS/GettingStarted

If your router allows Dynamic DNS configuration, you may skip using a client software and configure Dynu dynamic DNS service in the router to update your IP. Supported routers include DD-WRT, HUAWEI HG 533, ZyWALL-USG50, Linksys E3000 etc. Router configuration may be found https://www.dynu.com/DynamicDNS/IPUpdateClient/DD-WRT

If your router does NOT support Dynamic DNS then you will have to download the software client from https://www.dynu.com/Support/Download install it and configure

How To Port Forward a Router. https://www.dynu.com/Resources/Tutorials/DynamicDNS/RouterandDevices/RouterPortForward


(2 and 3) How To Port Forward a Router. https://portforward.com/help/portforwarding.htm
forward-two-ports-to-two-different-compu

The diagram above shows a router port forwarding External Dynamic IP of 20.1.1.1 to a desktop computer running a web server on port 80, and a laptop running another server on port 8080.

You'll have one computer, desktop or laptop, with either a Windows OS, or Linux OS, running a web server on port 80 (http) or 443 (https) https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

If you have a Dynamic IP and want to FIND the External IP (the IP used on the Internet), go here http://whatismyipaddress.com/ and it will show your Dynamic External IP.

So you'll need to setup as follows,

(A1) computer with a Windows OS, or Linux OS.

(B2) give this computer a FIXED internal local area network IP. This will help with D4.

(C3) install the web server software and configure it as required. Just Google: installing a lamp server

(D4) open the routers port 80 External Dynamic IP, and port forward 80 to the server.

(E5) Then apply (1).

Edited by Crazy Cat, 15 July 2017 - 09:43 PM.

 

Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. ― Albert Einstein ― Insanity is doing the same thing, over and over again, but expecting different results.

 

InternetDefenseLeague-footer-badge.png


#5 Crazy Cat

Crazy Cat

  • Members
  • 808 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Lunatic Asylum
  • Local time:05:12 PM

Posted 16 July 2017 - 11:59 PM

WEB SERVER SECURITY

(1) Keep ALL operating system critical security and web server software updated.

(2) Hardening A Web Server: https://duckduckgo.com/?q=web+server+hardening&t=ffnt&ia=web

https://geekflare.com/apache-web-server-hardening-security/
https://msdn.microsoft.com/en-us/library/ff648653.aspx
https://www.ibm.com/developerworks/linux/tutorials/l-harden-server/

(3) For greater security without the need to open a web port and port forward on the router to the web server, you can use TOR Hidden Service.
Furthermore, if you have a Dynamic IP, there is no need for a Static IP with TOR Hidden Service.

https://www.torproject.org/docs/tor-hidden-service.html.en
https://www.torproject.org/docs/hidden-services.html.en

Example. DuckDuckGo Search Engine has both https://duckduckgo.com and a TOR address http://3g2upl4pq6kufc4m.onion/


Good Reference E-book. https://duckduckgo.com/?q=web+server+ebooks&t=ffnt&ia=web
Web Hosting School, www.webhostingschool.com Web Hosting e-book. http://www.webhostingschool.com/media/blogs/whschool/ebook/web-hosting-ebook.pdf
Apache Web Server Complete Guide. https://www.sites.duke.edu/workblog/files/2014/12/www.dedoimedo.com-apache-web-server-lm.pdf
 

Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. ― Albert Einstein ― Insanity is doing the same thing, over and over again, but expecting different results.

 

InternetDefenseLeague-footer-badge.png


#6 groppo91

groppo91
  • Topic Starter

  • Members
  • 8 posts
  • OFFLINE
  •  
  • Local time:05:12 AM

Posted 17 July 2017 - 01:29 PM

wow thank-you so much everyone has been such a big help that will give me enough to get started. Will let everyone know how it goes over the next couple weeks as I am sure I will have plenty of hurdles and questions with set up and security.



#7 groppo91

groppo91
  • Topic Starter

  • Members
  • 8 posts
  • OFFLINE
  •  
  • Local time:05:12 AM

Posted 23 July 2017 - 03:17 AM

Okay I have now setup LAMP and tested locally can see both test sites. I have now got lost in making it accessible to the outside world. I have a domain name purchased at godaddy am I suppose to transfer this to be able to use it? Or how do I use it, and get the websites live. Many thanks



#8 arlattimor

arlattimor

  • Members
  • 591 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Beaufort, SC.
  • Local time:12:12 AM

Posted 23 July 2017 - 02:00 PM

First of do you have you a static ip address or do you have dynamic dns service enabled in your router.  If you have dynamic dns enabled you need to know the name of your host like groppo91.ddns.net. You can sign up for free with www.noip.com. Once you have an active host from noip.com you will need to set a re-director in the dns settings of your registered domain in GoDaddy. Let me know big guy if you need help. I do this all the time.


A. Lattimore

CCNA, CWNA, MCITP, MCSA, MCT, MCP, Security+, Server+, Linux+, Network+, A+, CNST

Network Security Engineer

 


#9 Crazy Cat

Crazy Cat

  • Members
  • 808 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Lunatic Asylum
  • Local time:05:12 PM

Posted 23 July 2017 - 08:07 PM

Okay I have now setup LAMP and tested locally can see both test sites. I have now got lost in making it accessible to the outside world. I have a domain name purchased at godaddy am I suppose to transfer this to be able to use it? Or how do I use it, and get the websites live. Many thanks


When you say 'locally' do you mean you can access your sites through intranet (LAN side, 192.168.x.x or 10.x.x.x) or through the open port on the WAN side of your router?

If you have port forwarded correctly, then the WAN dynamic IP assigned by your ISP can be found by going here; http://whatismyipaddress.com/ and it will show your Dynamic External IP.

Lets assume your Dynamic External IP is 92.40.248.38 (http://whatismyipaddress.com/ip/92.40.248.38); THEN http://92.40.248.38 IS to your web server through your ISP > router > LAMP.

Open your web browser and go to http://anonymouse.org/anonwww.html In the, Enter website address: type http://92.40.248.38 and click on Surf. This will take you through your web browser to anonymouse.org proxy and back to your Dynamic External IP of 92.40.248.38 through open port 80 to your web server.

IF YOU CAN SEE YOUR WEB SERVER HOME PAGE, THEN YOUR PORT FORWARDING SETUP IS WORKING OKAY.

Arlattimor can assist you from there.
 

Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. ― Albert Einstein ― Insanity is doing the same thing, over and over again, but expecting different results.

 

InternetDefenseLeague-footer-badge.png


#10 groppo91

groppo91
  • Topic Starter

  • Members
  • 8 posts
  • OFFLINE
  •  
  • Local time:05:12 AM

Posted 29 July 2017 - 03:30 AM

 

Okay I have now setup LAMP and tested locally can see both test sites. I have now got lost in making it accessible to the outside world. I have a domain name purchased at godaddy am I suppose to transfer this to be able to use it? Or how do I use it, and get the websites live. Many thanks
[/quote]

When you say 'locally' do you mean you can access your sites through intranet (LAN side, 192.168.x.x or 10.x.x.x) or through the open port on the WAN side of your router?

If you have port forwarded correctly, then the WAN dynamic IP assigned by your ISP can be found by going here; http://whatismyipaddress.com/ and it will show your Dynamic External IP.

Lets assume your Dynamic External IP is 92.40.248.38 (http://whatismyipaddress.com/ip/92.40.248.38); THEN http://92.40.248.38 IS to your web server through your ISP > router > LAMP.

Open your web browser and go to http://anonymouse.org/anonwww.html In the, Enter website address: type http://92.40.248.38 and click on Surf. This will take you through your web browser to anonymouse.org proxy and back to your Dynamic External IP of 92.40.248.38 through open port 80 to your web server.

IF YOU CAN SEE YOUR WEB SERVER HOME PAGE, THEN YOUR PORT FORWARDING SETUP IS WORKING OKAY.

Arlattimor can assist you from there.
 

[/quote

Hi many thanks for the advice, Arlattimor managed to go through it with me. I had done most of it but just forgot to update the record with my domain host.

 



#11 arlattimor

arlattimor

  • Members
  • 591 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Beaufort, SC.
  • Local time:12:12 AM

Posted 29 July 2017 - 04:12 AM

Groppo91 Whats going on hard charger what seems to be the problem?


A. Lattimore

CCNA, CWNA, MCITP, MCSA, MCT, MCP, Security+, Server+, Linux+, Network+, A+, CNST

Network Security Engineer

 


#12 groppo91

groppo91
  • Topic Starter

  • Members
  • 8 posts
  • OFFLINE
  •  
  • Local time:05:12 AM

Posted 29 July 2017 - 08:26 AM

Groppo91 Whats going on hard charger what seems to be the problem?

hi nothing is wrong just saying everything is working great thanks to yourself :D



#13 arlattimor

arlattimor

  • Members
  • 591 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Beaufort, SC.
  • Local time:12:12 AM

Posted 29 July 2017 - 08:50 AM

:thumbup2:  :thumbup2:  :thumbup2:  :thumbup2:


A. Lattimore

CCNA, CWNA, MCITP, MCSA, MCT, MCP, Security+, Server+, Linux+, Network+, A+, CNST

Network Security Engineer

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users