restructures folder layout
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
@ -23,7 +23,7 @@ iface eth0 inet static
|
||||||
gateway 10.0.0.1
|
gateway 10.0.0.1
|
||||||
```
|
```
|
||||||
|
|
||||||
![overview](./network_basic.png)
|
![overview](./assets/network_basic.png)
|
||||||
|
|
||||||
If you set both machines with addresses in the same range, you should be able to ping each other.
|
If you set both machines with addresses in the same range, you should be able to ping each other.
|
||||||
Have a go at this until you can make it work.
|
Have a go at this until you can make it work.
|
||||||
|
@ -55,7 +55,7 @@ Do we need more equipment?
|
||||||
|
|
||||||
An overview of what we would like to accomplish can be seen below.
|
An overview of what we would like to accomplish can be seen below.
|
||||||
|
|
||||||
![overview](./network_large.png)
|
![overview](./assets/network_large.png)
|
||||||
|
|
||||||
In VirtualBox we can add more than one network adapter.
|
In VirtualBox we can add more than one network adapter.
|
||||||
On the router machine I would like you to add a second network interface and set it to *bridged mode*.
|
On the router machine I would like you to add a second network interface and set it to *bridged mode*.
|
||||||
|
@ -230,7 +230,7 @@ server=127.0.0.1
|
||||||
If we want to use our DNS server to [push routes](https://en.wikipedia.org/wiki/Routing) to our clients we need to add it to the configuration as well.
|
If we want to use our DNS server to [push routes](https://en.wikipedia.org/wiki/Routing) to our clients we need to add it to the configuration as well.
|
||||||
The syntax is as follows, `121,x.x.x.x/yy,z.z.z.z` where `x.x.x.x` is the IP range, `yy` the netmask and `z.z.z.z` is the via which IP address.
|
The syntax is as follows, `121,x.x.x.x/yy,z.z.z.z` where `x.x.x.x` is the IP range, `yy` the netmask and `z.z.z.z` is the via which IP address.
|
||||||
You can add as many as you want but there is a practical [limit](https://unix.stackexchange.com/questions/457572/use-dnsmasq-to-pushing-routes-to-my-clients-on-a-small-local-network).
|
You can add as many as you want but there is a practical [limit](https://unix.stackexchange.com/questions/457572/use-dnsmasq-to-pushing-routes-to-my-clients-on-a-small-local-network).
|
||||||
Are wondering what the `121` [means](http://help.sonicwall.com/help/sw/eng/6800/26/2/3/content/Network_DHCP_Server.042.12.htm)?
|
Are you wondering what the `121` [means](http://help.sonicwall.com/help/sw/eng/6800/26/2/3/content/Network_DHCP_Server.042.12.htm)?
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dhcp-option=121,10.0.4.0/24,192.168.0.117
|
dhcp-option=121,10.0.4.0/24,192.168.0.117
|
||||||
|
@ -244,14 +244,14 @@ Once this is operational you can add routes to the mini networks of the other st
|
||||||
You have to add routes for each student so maybe a script can come in handy.
|
You have to add routes for each student so maybe a script can come in handy.
|
||||||
As I'm running the DHCP and DNS of our LAN I can push these routes to your routers but first you should create them yourself!
|
As I'm running the DHCP and DNS of our LAN I can push these routes to your routers but first you should create them yourself!
|
||||||
|
|
||||||
![big network](./network_big.png)
|
![big network](./assets/network_big.png)
|
||||||
|
|
||||||
## Solo labo
|
## Solo labo
|
||||||
|
|
||||||
Try to go as far as you can with following the network layout below.
|
Try to go as far as you can with following the network layout below.
|
||||||
You'll have to create quite a few virtual machines machines so grouping them and having a consistent naming scheme is advised.
|
You'll have to create quite a few virtual machines machines so grouping them and having a consistent naming scheme is advised.
|
||||||
|
|
||||||
![solo labo layout](./network_solo.png)
|
![solo labo layout](./assets/network_solo.png)
|
||||||
|
|
||||||
I would break it down as such:
|
I would break it down as such:
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ The setup is mirrored on the right side so rinse and repeat.
|
||||||
|
|
||||||
#### The NAT router
|
#### The NAT router
|
||||||
|
|
||||||
![NAT router](./network_solo_detail1.png)
|
![NAT router](./assets/network_solo_detail1.png)
|
||||||
|
|
||||||
First focus on the machine that will become your NAT router.
|
First focus on the machine that will become your NAT router.
|
||||||
This part of the exercise is very similar to the static router we made before.
|
This part of the exercise is very similar to the static router we made before.
|
||||||
|
@ -283,7 +283,7 @@ The internal network can be a shared one as the networks are separated and we'll
|
||||||
|
|
||||||
#### The first router
|
#### The first router
|
||||||
|
|
||||||
![first router](./network_solo_detail2.png)
|
![first router](./assets/network_solo_detail2.png)
|
||||||
|
|
||||||
Next up is the first router on the left hand side.
|
Next up is the first router on the left hand side.
|
||||||
This is also a Debian VM but with four network cards attached!
|
This is also a Debian VM but with four network cards attached!
|
||||||
|
|
|
@ -17,7 +17,7 @@ Your current situation at home looks probably *very* similar to the image below.
|
||||||
You have some sort of router/modem/switch/wireless access point combination box sitting somewhere in your house.
|
You have some sort of router/modem/switch/wireless access point combination box sitting somewhere in your house.
|
||||||
To this device you have your PC's, printer, phone's connected either with a cable or over WiFi.
|
To this device you have your PC's, printer, phone's connected either with a cable or over WiFi.
|
||||||
|
|
||||||
![without pihole](./network_home_without_pihole.png)
|
![without pihole](./assets/network_home_without_pihole.png)
|
||||||
|
|
||||||
I advise you to take some notes on your network settings *before* starting to mess around with the pihole.
|
I advise you to take some notes on your network settings *before* starting to mess around with the pihole.
|
||||||
Your DNS resolution is probably done by your router and the `DHCP` server for both your wired LAN and wireless WLAN is probably also done by that same box.
|
Your DNS resolution is probably done by your router and the `DHCP` server for both your wired LAN and wireless WLAN is probably also done by that same box.
|
||||||
|
@ -46,7 +46,7 @@ Contrary to the setup in class you don't need an extra LAN adaptor, just pluggin
|
||||||
You won't be replacing the NAT part of your home network today, just the DNS and DHCP part.
|
You won't be replacing the NAT part of your home network today, just the DNS and DHCP part.
|
||||||
Once plugged in your network layout will look similar to the image below.
|
Once plugged in your network layout will look similar to the image below.
|
||||||
|
|
||||||
![with raspberry pi](./network_home_with_pihole.png)
|
![with raspberry pi](./assets/network_home_with_pihole.png)
|
||||||
|
|
||||||
I recommend you start from a fresh Raspberry PI OS installation, either with or without desktop environment.
|
I recommend you start from a fresh Raspberry PI OS installation, either with or without desktop environment.
|
||||||
The raspberry pi should receive an IP address from your *bbox* and you should be able to `ping` devices in your LAN and out onto the internet.
|
The raspberry pi should receive an IP address from your *bbox* and you should be able to `ping` devices in your LAN and out onto the internet.
|
||||||
|
|
|
@ -4,7 +4,7 @@ Your larger family has decided you're in charge of hosting a NAS for everybody o
|
||||||
In my case my dad has one brother and two sisters an my mum has just two brothers.
|
In my case my dad has one brother and two sisters an my mum has just two brothers.
|
||||||
A *family* tree would look like this.
|
A *family* tree would look like this.
|
||||||
|
|
||||||
![family tree](./family_tree.png)
|
![family tree](./assets/family_tree.png)
|
||||||
|
|
||||||
Some rules I can think of:
|
Some rules I can think of:
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ I would make a table to visualise the problem.
|
||||||
|alex | | | |
|
|alex | | | |
|
||||||
|
|
||||||
For ease of use I would make this table in a spreadsheet program such as Libreoffice Calc or Excel.
|
For ease of use I would make this table in a spreadsheet program such as Libreoffice Calc or Excel.
|
||||||
I created a zip file with all the files that you can download [here](./files.zip).
|
I created a zip file with all the files that you can download [here](./assets/files.zip).
|
||||||
|
|
||||||
Once you have a good overview of all the users and groups you need to create, try to create the following scripts to make your life easier.
|
Once you have a good overview of all the users and groups you need to create, try to create the following scripts to make your life easier.
|
||||||
|
|
||||||
|
|