From 9642cd7ae24f0ba79ce5647c709b35ae8f06a285 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Sun, 19 Jan 2025 21:14:51 +0100 Subject: vault backup: 2025-01-19 21:14:51 --- 3 Resources/Networking/DHCP.md | 6 ++++++ 3 Resources/Networking/IP masquerade.md | 18 ++++++++++++++++++ 3 Resources/Networking/Switch.md | 10 ++++++++++ 3 files changed, 34 insertions(+) create mode 100644 3 Resources/Networking/DHCP.md create mode 100644 3 Resources/Networking/IP masquerade.md create mode 100644 3 Resources/Networking/Switch.md (limited to '3 Resources/Networking') diff --git a/3 Resources/Networking/DHCP.md b/3 Resources/Networking/DHCP.md new file mode 100644 index 0000000..5297546 --- /dev/null +++ b/3 Resources/Networking/DHCP.md @@ -0,0 +1,6 @@ +--- +tags: + - networking +--- +Dynamic Host Configuration Protocol +Allows hosts dynamically receive an IP address. \ No newline at end of file diff --git a/3 Resources/Networking/IP masquerade.md b/3 Resources/Networking/IP masquerade.md new file mode 100644 index 0000000..cb9cdc3 --- /dev/null +++ b/3 Resources/Networking/IP masquerade.md @@ -0,0 +1,18 @@ +--- +tags: + - networking +--- +A function in the kernel that allows guests with internal/private IPs to access the internet by using the hosts' public IP similar to 1 to many NAT. + +Differences with Proxy, IP Masq, NAT: + +**Proxy** +Requires special configuration on internal client side. Can be used for caching. + +**IP Masq** +A form of NAT used primarily in Linux devices. Translates IP address and uses the connection tracking table and ports to map responses back to the internal connection. + +**NAT** +Has different types with different use-cases. +Static NAT: 1-1 mapping of pub/private IP. Dynamic NAT: pool of pub ips to dynamically map private IPs to based on availability. +PAT (Port): similar to IP Masq; 1-many using ports. \ No newline at end of file diff --git a/3 Resources/Networking/Switch.md b/3 Resources/Networking/Switch.md new file mode 100644 index 0000000..66f4652 --- /dev/null +++ b/3 Resources/Networking/Switch.md @@ -0,0 +1,10 @@ +--- +tags: + - linux + - networking +--- +A switch keeps a MAC-Address-Table mapping MAC addresses to connected ports. Connected devices that want to communicate learn each others' MAC address via an ARP request. They can then specify the destination MAC address and the switch will do the forwarding to the correct port. + +Broadcast domain: broadcast traffic will be forwarded to all ports except the port the request arrived on. Broadcast traffic will stay within the broadcast domain as routers that receive a broadcast do not forward it to another [[subnet]]. + +> Large layer 2 broadcast domains can cause problems for example a [[broadcast storm]] which can take down the network -- cgit v1.2.3