Results 1 to 9 of 9

Thread: How to set-up a home based web server

  1. #1
    Join Date
    Aug 2008
    Location
    Moscow
    Beans
    21
    Distro
    Ubuntu 8.04 Hardy Heron

    How to set-up a home based web server

    Hello,

    I would like to use my computer, running under Ubuntu 8.04, as a server that I could access via Internet when I am away.
    The machine would be the server on which I store all my files, and to which I can connect through Internet when I am not home.
    Could someone indicate a good tutorial to do so ?
    Many thanks,

    TC

  2. #2
    Join Date
    Feb 2008
    Beans
    267

    Re: How to set-up a home based web server

    I just started one over the summer, and Logged pretty much everything I did. Check out the link in my sig. Maybe it helps.

  3. #3
    Join Date
    Aug 2008
    Location
    Moscow
    Beans
    21
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to set-up a home based web server

    Thanks for your answer; I'll see what I can do with these instructions.

  4. #4
    Join Date
    Nov 2006
    Location
    Buckeye country
    Beans
    1,079
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to set-up a home based web server

    your main problem will be a static ip address (you'll need to know where your server is, and normal home type isp connections use dhcp). there's an app you can run that will register your ip address with a known server on the internet and then it will dynamically change a dns entry so you can always access your server. i don't remember what the app is called though.

  5. #5
    Join Date
    May 2006
    Beans
    Hidden!

    Re: How to set-up a home based web server

    no-ip.com and there are a package in the repos called noip2 to manage it

  6. #6
    Join Date
    Aug 2008
    Location
    Moscow
    Beans
    21
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to set-up a home based web server

    Thanks to you.

    After setting up noip account and installing noip2, will I need to do some sort of port forwarding on my router?

  7. #7
    Join Date
    Jan 2007
    Location
    North Carolina, USA
    Beans
    535
    Distro
    Ubuntu

    Re: How to set-up a home based web server

    Yes you will need port forwarding, but first you should choose the technology for accessing your computer remotely. whether you use ftp or ssh or whatever will affect which port is used by default.

    You should also look into changing the default port for the server type for security reasons. If you leave the default port type open to the 'net, potential intruders will have an easier time hacking your box because they can guess the protocol in use based on the port that is open.

  8. #8
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to set-up a home based web server

    Quote Originally Posted by Jive Turkey View Post
    Yes you will need port forwarding, but first you should choose the technology for accessing your computer remotely. whether you use ftp or ssh or whatever will affect which port is used by default.

    You should also look into changing the default port for the server type for security reasons. If you leave the default port type open to the 'net, potential intruders will have an easier time hacking your box because they can guess the protocol in use based on the port that is open.
    Potential intruders will not have an easier time hacking a box with a standard port. It meerly allows scriptkiddie bots to flood your logs with unattempted logins (if you are using SSH/FTP).
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  9. #9
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to set-up a home based web server

    I would suggest using denyhosts, this bans an ip address permanently are 5 unsuccesful attempts to log in. Denyhosts is in the repositories, and just plain works. Here is a sample of my hosts.deny file:

    Code:
    # You may wish to enable this to ensure any programs that don't
    # validate looked up hostnames still leave understandable logs. In past
    # versions of Debian this has been the default.
    # ALL: PARANOID
    sshd: 164.41.201.33
    sshd: 200.17.53.17
    sshd: 193.173.116.194
    sshd: 70.32.114.51
    sshd: 210.176.26.185
    sshd: 202.115.129.8
    sshd: 220.227.218.21
    sshd: 218.75.172.173
    sshd: 200.91.25.233
    sshd: 81.196.180.110
    sshd: 88.42.172.243
    sshd: 59.188.10.20
    sshd: 220.231.81.140
    sshd: 67.111.251.100
    sshd: 82.204.181.164
    sshd: 202.71.199.175
    sshd: 218.19.140.21
    sshd: 196.15.140.145
    sshd: 216.107.234.167
    sshd: 203.112.151.49
    sshd: 210.187.55.30
    sshd: 122.224.131.105
    sshd: 67.41.255.150
    sshd: 79.99.42.78
    sshd: 200.111.157.66
    sshd: 211.253.236.157
    Jim

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
  •