From 236bf7f8f047e46a415948b86cf476e618ab3ccc Mon Sep 17 00:00:00 2001 From: Paul Warren Date: Thu, 13 Jan 2022 23:09:51 +1100 Subject: [PATCH] Calm down headings, more fragments --- index.html | 49 ++++++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index d91166e..f6a5690 100644 --- a/index.html +++ b/index.html @@ -48,13 +48,13 @@

Maybe don't go and try building an ISP based off this talk :)

-

What even is a network

+

What even is a network?

Ethernet?

Token Ring?

IPX?

AX.25?

-

What even is a network

+

What even is a network?

ipv4?

ipv6?

tcp?

@@ -63,7 +63,7 @@

We are going to mostly focus on Ethernet and IPv6

-

Managed network?

+

Managed networks

Controls connections between computers

Scales connections between computers

@@ -83,9 +83,10 @@

or a parfait

which you can mostly ignore, as what we generally use doesn't conform to it. But it does provide a good framework for assisting understanding

Like firewalls, web-proxies/SSL MITM, But also access rights etc

+
- -

Layers!

+ +

Layers

This means the Physical layers do not have to match the Logical connections

Networks are also a bit fractal in nature

For the purposes of this talk, we can ignore a lot of complexity

@@ -100,7 +101,9 @@

IEEE 802.1Q

+

VLANs in linux

Are pretty easy!


@@ -114,7 +117,7 @@
 	

VLANs in linux

Various different methods of making it go in different distributions

Debian: in /etc/network/interfaces

-
+	  
 	    auto enp1s0.2502
 iface enp1s0.2502 inet dhcp
 iface enp1s0.2502 inet6 auto
@@ -135,6 +138,7 @@ iface enp1s0.2502 inet6 auto
 	

Linux Routing

+

Add to sysctl config:


 	      net.ipv4.ip_forward = 1
 	      net.ipv6.conf.all.forwarding = 1
@@ -145,7 +149,7 @@ iface enp1s0.2502 inet6 auto
 	  

Yeah, not really :)

-

Static Routes!

+

Static Routes

Manually added, or scripted routes that don't change


 	      ip route add 172.17.0.0/24 via 172.16.0.254 dev wg0
@@ -153,30 +157,32 @@ iface enp1s0.2502 inet6 auto
 	  
-

Static Routes!

-

Harking back to our vlan

-
ip -6 route add 2001:db8:2501::/64 via 2001:db8:2500::1 dev enp0s1
+	

Static Routes

+
ip -6 route add 2001:db8:2501::/64 via 2001:db8:2500::1 dev enp0s1
 ip -6 route add 2001:db8:2502::/64 via 2001:db8:2500::1 dev enp0s1
-ip -6 route add 2001:db8:2600::/64 via 2001:db8:2600:beef:face::1 dev enp0s1
+ip -6 route add 2001:db8:2600:beef:/64 via 2001:db8:face::1 dev wg0
 	  
+

Static Routes

+ +
+

Enter dynamic routes

-

As a Router:

-

Advertise your LANs

-

Discovering routes to other LANs

-

Optional: Do some logic

-

Add them to the routing table

+

Advertise your LANs

+

Discovering routes to other LANs

+

Optional: Do some logic

+

Add them to the routing table

Userspace daemons

talking to the kernel networking stack

Dynamic Routing

Open Shortest Path First (OSPF)

-

The algorithm is pretty interesting

+

Uses Dijkstra's algorithm

RFC2328

RFC5340

For: Dynamic routes inside your networks

@@ -185,14 +191,19 @@ ip -6 route add 2001:db8:2600::/64 via 2001:db8:2600:beef:face::1 dev enp0s1

Dynamic Routing

Border Gateway Protocol (BGP)

RF4271

-

For: Dynamic routes outside your network (and inside sometimes)

+

For: Sharing dynamic routes outside your network with other Autonomous Sytstems (AS)

+ +

"AS" is used a lot in the ISP world, and your ISP will have an assigned AS Number

+

The Userspace Daemons

BIRD: Berkeley Internet Routing Daemon

Quagga: Fork of Zebra

+

OpenBGPd/OpenOSPFd: from the OpenBSD project

Significant overlap, but they are different

-

I've not used Quagga

+

I've not used Quagga, or the OpenBSD ones

+

There are probably others!

intro to bird