Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sailing:networksetup [2023/11/30 07:01] – [The Home Network] willy | sailing:networksetup [2024/02/22 08:44] (current) – removed willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Prev to: [[sailing: | ||
- | Next to: [[sailing: | ||
- | ---- | ||
- | |||
- | ==== Networking Setup ==== | ||
- | |||
- | The network configuration is divided into two different parts: the home network and the remote access. The most complex part is being capable to remotely login to your home network because that requires the capability to actually reach your home network from outside some how. Back in the good days when you connected to the internet you where granted a public IP address that you caould use to access your home network from outside. After some time, Internet Service Providers (ISPs) started giving you, more and more frequently, only a //private// ip address due to the well known scarcity of IPv4 address pool. This is much more common outside the U.S.A. and mostly common outside the western world. With mobile connections nowadays quite common for the home connections (it's much cheaper to place a few 5G towers than to cable fiber everywhere) things are even worse than than. Luckly, at the same time, renting a VPS or a dedicated server with a public IP address is getting cheaper and easier. So there are always hopes for you. | ||
- | |||
- | ==== The Home Network ==== | ||
- | Home networks are usually flat. This means you have no VLANs or managed Layer3 switches at home. You might have a //guest// network in addition to your main network (for the more advanced or privacy concerned of you) but that doesn' | ||
- | |||
- | I will assume your home network is on **192.168.0.0/ | ||
- | * You are connected to the internet using a router provided by your ISP at 192.168.0.254 | ||
- | * Your server will have a static IP address set up as 192.168.0.1 | ||
- | * The rest of your devices are on DHCP | ||
- | * You **should** have a [[https:// | ||
- | |||
- | Why static IP for your server? So that you can always reach it and you can easily set it's address to your devices without resorting to weird DNS setups or modifying your ISP (or Pi Hole) provided DHCP settings. | ||
- | |||
- | You should have already configured your network during the Gentoo installation, | ||
- | |||
- | I strongly suggest you use some better DNS settings than your own provider, since in many countries torrent sites and such might be filtered by laws. Edit your **/ | ||
- | < | ||
- | nameserver 8.8.8.8 | ||
- | nameserver 8.8.8.4 | ||
- | </ | ||
- | |||
- | (Note: be aware that if you use NetworkManager you need to set DNS within it's interface. The resolv.conf file will be overwritten) | ||
- | |||
- | to use Google' | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | DNS | ||
- | |||
- | |||
- | |||
- | ==== The Remote Access ==== | ||
- | |||
- | |||
- | So i have a flat home-network (1 subnet) with one upstream connection (ISP provider) that offers a private IP address and zero port-forwarding capabilties at all. I will get a bit more in details: | ||
- | |||
- | Flat home network: subnet 192.168.0.0/ | ||
- | ISP provider with private IP (like over 4G or 5G, or some fiber ISPs too) that prevent you from using any DynDNS services | ||
- | No port forwarding at all, even if the ISP router do provide a "port forward" | ||
- | |||
- | If you are, like me, in this situation you really don't have much choice. You can still obtain remote access if you have access to some kind of public IP like a VPS or if you can lease/ | ||
- | |||
- | |||
- | |||
- | ---- | ||
- | Next to: [[sailing: | ||
- | |||
- | Prev to: [[sailing: |