Browse Source

reorganize

pull/1/head
lidia pereira 6 years ago
parent
commit
c7a230fdee
  1. 101
      content/getting started/basics_port_forwarding.md
  2. 0
      content/getting started/nas.md
  3. 0
      content/instant messaging/basics_port_forwarding.md
  4. 0
      content/instant messaging/beginners_guide_to_xmpp_speak.md
  5. 0
      content/instant messaging/configuring_an_xmpp_server_prosody_0.10.md
  6. 0
      content/instant messaging/configuring_an_xmpp_server_prosody_0.11.md
  7. 0
      content/instant messaging/configuring_an_xmpp_server_prosody_0.9.md
  8. 0
      content/instant messaging/es_configuring_an_xmpp_server_prosody_0.11.md
  9. 0
      content/instant messaging/have_you_considered.md
  10. 0
      content/instant messaging/set_up_an_xmpp_messenger.md
  11. 0
      content/lowtech/solar.lowtech.md
  12. 0
      content/static/downloads/prosody.0.11.cfg.lua
  13. 0
      content/static/downloads/prosody.0.9.cfg.lua
  14. 0
      content/static/downloads/prosody.10.cfg.lua
  15. 0
      content/static/extra/favicon.ico
  16. 0
      content/static/extra/featured_image_blue.png
  17. 0
      content/static/extra/omemo.png
  18. 0
      content/static/extra/robots.txt
  19. 0
      content/static/images/chooser_by.png
  20. 0
      content/static/images/chooser_cc.png
  21. 0
      content/static/images/chooser_sa.png
  22. 0
      content/static/images/conv_1.png
  23. 0
      content/static/images/conv_2.png
  24. 0
      content/static/images/conv_3.png
  25. 0
      content/static/images/conv_4.png
  26. 0
      content/static/images/conv_5.png
  27. 0
      content/static/images/cs_1.png
  28. 0
      content/static/images/cs_10.png
  29. 0
      content/static/images/cs_11.png
  30. 0
      content/static/images/cs_12.png
  31. 0
      content/static/images/cs_13.png
  32. 0
      content/static/images/cs_14.png
  33. 0
      content/static/images/cs_15.png
  34. 0
      content/static/images/cs_16.png
  35. 0
      content/static/images/cs_17.png
  36. 0
      content/static/images/cs_18.png
  37. 0
      content/static/images/cs_19.png
  38. 0
      content/static/images/cs_2.png
  39. 0
      content/static/images/cs_20.png
  40. 0
      content/static/images/cs_3.png
  41. 0
      content/static/images/cs_4.png
  42. 0
      content/static/images/cs_5.png
  43. 0
      content/static/images/cs_6.png
  44. 0
      content/static/images/cs_7.png
  45. 0
      content/static/images/cs_8.png
  46. 0
      content/static/images/cs_9.png
  47. 0
      content/static/images/favicon.ico
  48. 0
      content/static/images/gajim_1.png
  49. 0
      content/static/images/gajim_2.png
  50. 0
      content/static/images/gajim_3.png
  51. 0
      content/static/images/gajim_4.png
  52. 0
      content/static/images/gajim_5.png
  53. 0
      content/static/images/gajim_6.png
  54. 0
      content/static/images/international-switchboard.jpg
  55. 0
      content/static/images/international-switchboard11.png
  56. 0
      content/static/images/international-switchboard3.png
  57. 0
      content/static/images/international-switchboard6.png
  58. 0
      content/static/images/lime2.png
  59. 0
      content/static/images/myimage.png
  60. 0
      content/static/images/nas_a10_olimex.JPG
  61. 0
      content/static/images/nas_sata_cables.JPG
  62. 0
      content/static/images/nas_storage_media.JPG
  63. 0
      content/static/images/off-line-reading.png
  64. 0
      content/static/images/port_forwarding.svg
  65. 0
      content/static/images/seal_of_freedom.png
  66. 0
      content/static/images/sps_close.png
  67. 0
      content/static/images/sps_panel.png
  68. 0
      content/static/images/sps_wide.png

101
content/getting started/basics_port_forwarding.md

@ -0,0 +1,101 @@
Title: HBSC Basics: setting up Port Forwarding on your home router
Date: 2019-01-14
Category: self-hosting basics
Tags: port forwarding, router, introduction, lan, wan
Slug: basics-port-forwarding
Description: How to set up a spare computer as a server and make it reachable over the internet.
Author: hbsc & friends
Status: draft
# UNDER CONSTRUCTION
##Introduction
The whole premise of the homebrewserver.club is the simple - yet often overlooked - fact that your home internet subscription theoretically also allows you to host on-line services. Since the internet is in its essence a bi-directional medium, anyone with an internet connection can not only look up on-line content but also host it!
In times of *cloud providers* and *virtual private servers* it is an easy thing to forget. Internet service providers (ISP) don't make it easy on you either. However, a homebrew server can be as simple as an old laptop connected directly to your home router.
In this article you will learn how to change the settings of the router provided by your ISP in order to make your homebrew server accessible from the internet!
##Requirements
To begin serving from home you need the following:
- Make sure you have physical access to your home router.
- Get to know the password of the admin user (this is usually provided in the box or written on the label on the underside of the router).
- Have an available power socket next to your router.
- Have a home server running a web server and OpenSSH running on it.
- An ethernet cable to connect your server to the router.
## Port forwarding theory
![A schematic representation depicting network address translation between a LAN and WAN](/images/port_forwarding.svg) A schematic representation depicting network address translation between a local area network and a wide area network, where ports are being forwarded from the WAN to home server on the LAN. The IP-addresses indicated in this schematic are used throught the article as for reference but might differ from your own situation.
Most home routers are configured by default to make the devices behind your router inaccessible to the internet using their inbuilt firewall. This is to prevent your private network from being public.
Machines behind your router (called your local area network or `LAN`) can make connections to the wider internet (known as `WAN`) but not the other way around.
In the case of hosting a server at home though, we DO want that server to be reachable from the internet. In order to do that we need to open so-called *ports*.
Ports are logical 'gates' that are open or closed to connections. These ports have numbers and are [standardized](https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports) for specific protocols or applications.
For example, HTTP traffic from a website would default to port `80`. HTTPS defaults to `443` and SSH defaults to port `22`.
To make our server accessible we need to open and forward those ports on the router/firewall to our server in a process called port-forwarding.
The exact method of port-forwarding differs from router to router. However, it always follows a similar scheme where you designate inbound traffic on a certain port to be forwarded to the IP address your server has on the local area network.
The effect of this is that all traffic with your home connection's IP-adress as a destination and bound for those ports will not be rejected by the firewall but forwarded to your server instead.
For this you need to have access to the administrative panel of your router.
### Find your router
To access the administrative panel of your router you need to find it's IP-address. You can do this by connecting to that router via Ethernet or Wi-Fi and then finding out what your own IP-address is.
On Debian based systems this is done like so in the terminal:
`$ ifconfig`
If you get a command not found warning try this:
`$ ip address`
This will return information on your network connection. Look for the line saying `inet`
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether ac:ab:00:00:ac:ab brd ff:ff:ff:ff:ff:ff
inet 192.168.1.11/24 brd 192.168.1.255 scope global wlp3s0
valid_lft forever preferred_lft forever
inet6 fe80::eab1:fcff:acab:374e/64 scope link
valid_lft forever preferred_lft forever
In this case the IP-address of the machine is `192.168.1.11`. As a rule of thumb you can then change the last digit of your IP-address to either `1` or `254` to find the router.
### Log in to your home router and get to know your LAN
Using a web browser, navigate to the IP-address you found above to reveal the router's admin panel. It should provide you with a log in field where you can enter the router's admin details to get access to the control panel.
There you will see a lot of possible settings. Look at the options "LAN", "DHCP Leases" or "Network" to get an overview of all the devices.
### Connect your homeserver
Use an ethernet cable to connect your homeserver to your router. In case that it has ethernet ports in different colors/markings make sure you take something that says either `LAN` or `INET`. Once you have connected your home server to the router powered it on if you haven't already.
Have a look at your router's interface again and look for the IP-address that your server was assigned. In this guide I'll assume it was 192.168.1.10 as displayed in the graph above.
Next try to find an option called "Static (DHCP) Lease" or "DHCP Binding" or something similar in your router interface's LAN view. Then make sure to assign your server a static DHCP lease. The IP-address it has now is probably fine for that! This will make sure that the server is always reachable under the same IP-addres.
## Forward the ports
Once you've set up a static lease to your homeserver you can start port forwarding. Depending on the make of the router it can be called Port Sharing or Traffic Forwarding and can usually be found in a section of the router admin interface dealing with 'security' or 'internet'.
## Additional Resources
* [https://portforward.com/](https://portforward.com/router.htm) has a large list of routers and visual instructions on how to set up port forwarding on them.

0
content/nas.md → content/getting started/nas.md

0
content/basics_port_forwarding.md → content/instant messaging/basics_port_forwarding.md

0
content/beginners_guide_to_xmpp_speak.md → content/instant messaging/beginners_guide_to_xmpp_speak.md

0
content/configuring_an_xmpp_server_prosody_0.10.md → content/instant messaging/configuring_an_xmpp_server_prosody_0.10.md

0
content/configuring_an_xmpp_server_prosody_0.11.md → content/instant messaging/configuring_an_xmpp_server_prosody_0.11.md

0
content/configuring_an_xmpp_server_prosody_0.9.md → content/instant messaging/configuring_an_xmpp_server_prosody_0.9.md

0
content/es_configuring_an_xmpp_server_prosody_0.11.md → content/instant messaging/es_configuring_an_xmpp_server_prosody_0.11.md

0
content/have_you_considered.md → content/instant messaging/have_you_considered.md

0
content/set_up_an_xmpp_messenger.md → content/instant messaging/set_up_an_xmpp_messenger.md

0
content/solar.lowtech.md → content/lowtech/solar.lowtech.md

0
content/downloads/prosody.0.11.cfg.lua → content/static/downloads/prosody.0.11.cfg.lua

0
content/downloads/prosody.0.9.cfg.lua → content/static/downloads/prosody.0.9.cfg.lua

0
content/downloads/prosody.10.cfg.lua → content/static/downloads/prosody.10.cfg.lua

0
content/extra/favicon.ico → content/static/extra/favicon.ico

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
content/extra/featured_image_blue.png → content/static/extra/featured_image_blue.png

Before

Width:  |  Height:  |  Size: 576 KiB

After

Width:  |  Height:  |  Size: 576 KiB

0
content/extra/omemo.png → content/static/extra/omemo.png

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
content/extra/robots.txt → content/static/extra/robots.txt

0
content/images/chooser_by.png → content/static/images/chooser_by.png

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
content/images/chooser_cc.png → content/static/images/chooser_cc.png

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
content/images/chooser_sa.png → content/static/images/chooser_sa.png

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
content/images/conv_1.png → content/static/images/conv_1.png

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
content/images/conv_2.png → content/static/images/conv_2.png

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

0
content/images/conv_3.png → content/static/images/conv_3.png

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
content/images/conv_4.png → content/static/images/conv_4.png

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
content/images/conv_5.png → content/static/images/conv_5.png

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

0
content/images/cs_1.png → content/static/images/cs_1.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
content/images/cs_10.png → content/static/images/cs_10.png

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

0
content/images/cs_11.png → content/static/images/cs_11.png

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

0
content/images/cs_12.png → content/static/images/cs_12.png

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

0
content/images/cs_13.png → content/static/images/cs_13.png

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

0
content/images/cs_14.png → content/static/images/cs_14.png

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

0
content/images/cs_15.png → content/static/images/cs_15.png

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

0
content/images/cs_16.png → content/static/images/cs_16.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
content/images/cs_17.png → content/static/images/cs_17.png

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

0
content/images/cs_18.png → content/static/images/cs_18.png

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

0
content/images/cs_19.png → content/static/images/cs_19.png

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

0
content/images/cs_2.png → content/static/images/cs_2.png

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
content/images/cs_20.png → content/static/images/cs_20.png

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

0
content/images/cs_3.png → content/static/images/cs_3.png

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
content/images/cs_4.png → content/static/images/cs_4.png

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
content/images/cs_5.png → content/static/images/cs_5.png

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
content/images/cs_6.png → content/static/images/cs_6.png

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

0
content/images/cs_7.png → content/static/images/cs_7.png

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

0
content/images/cs_8.png → content/static/images/cs_8.png

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

0
content/images/cs_9.png → content/static/images/cs_9.png

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

0
content/favicon.ico → content/static/images/favicon.ico

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
content/images/gajim_1.png → content/static/images/gajim_1.png

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

0
content/images/gajim_2.png → content/static/images/gajim_2.png

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

0
content/images/gajim_3.png → content/static/images/gajim_3.png

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

0
content/images/gajim_4.png → content/static/images/gajim_4.png

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

0
content/images/gajim_5.png → content/static/images/gajim_5.png

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
content/images/gajim_6.png → content/static/images/gajim_6.png

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

0
content/images/international-switchboard.jpg → content/static/images/international-switchboard.jpg

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 160 KiB

0
content/images/international-switchboard11.png → content/static/images/international-switchboard11.png

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 110 KiB

0
content/images/international-switchboard3.png → content/static/images/international-switchboard3.png

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

0
content/images/international-switchboard6.png → content/static/images/international-switchboard6.png

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

0
content/images/lime2.png → content/static/images/lime2.png

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 182 KiB

0
content/images/myimage.png → content/static/images/myimage.png

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 200 KiB

0
content/images/nas_a10_olimex.JPG → content/static/images/nas_a10_olimex.JPG

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

0
content/images/nas_sata_cables.JPG → content/static/images/nas_sata_cables.JPG

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 107 KiB

0
content/images/nas_storage_media.JPG → content/static/images/nas_storage_media.JPG

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 109 KiB

0
content/images/off-line-reading.png → content/static/images/off-line-reading.png

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

0
content/images/port_forwarding.svg → content/static/images/port_forwarding.svg

Before

Width:  |  Height:  |  Size: 385 KiB

After

Width:  |  Height:  |  Size: 385 KiB

0
content/images/seal_of_freedom.png → content/static/images/seal_of_freedom.png

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

0
content/images/sps_close.png → content/static/images/sps_close.png

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

0
content/images/sps_panel.png → content/static/images/sps_panel.png

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

0
content/images/sps_wide.png → content/static/images/sps_wide.png

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Loading…
Cancel
Save