From 9232b8d817d4cd4122947375156fa2fa1e9fba14 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Mon, 13 Jan 2025 13:16:06 +0100 Subject: vault backup: 2025-01-13 13:16:06 --- 3 resources/linux/networking/DHCP.md | 5 +++++ 3 resources/linux/networking/IP masquerade.md | 17 +++++++++++++++++ 3 resources/linux/networking/PXE.md | 18 ++++++++++++++++++ 3 resources/linux/networking/dhcp.md | 4 ---- 3 resources/linux/networking/ip-masquerade-nat.md | 14 -------------- 3 resources/linux/networking/nbp.md | 3 --- 3 resources/linux/networking/pxe-boot.md | 15 --------------- 3 resources/linux/networking/udp.md | 0 8 files changed, 40 insertions(+), 36 deletions(-) create mode 100644 3 resources/linux/networking/DHCP.md create mode 100644 3 resources/linux/networking/IP masquerade.md create mode 100644 3 resources/linux/networking/PXE.md delete mode 100644 3 resources/linux/networking/dhcp.md delete mode 100644 3 resources/linux/networking/ip-masquerade-nat.md delete mode 100644 3 resources/linux/networking/nbp.md delete mode 100644 3 resources/linux/networking/pxe-boot.md delete mode 100644 3 resources/linux/networking/udp.md (limited to '3 resources/linux/networking') diff --git a/3 resources/linux/networking/DHCP.md b/3 resources/linux/networking/DHCP.md new file mode 100644 index 0000000..e7e8e38 --- /dev/null +++ b/3 resources/linux/networking/DHCP.md @@ -0,0 +1,5 @@ +#networking #linux + +--- +Dynamic Host Configuration Protocol +Allows hosts dynamically receive an IP address. \ No newline at end of file diff --git a/3 resources/linux/networking/IP masquerade.md b/3 resources/linux/networking/IP masquerade.md new file mode 100644 index 0000000..2ccc8e6 --- /dev/null +++ b/3 resources/linux/networking/IP masquerade.md @@ -0,0 +1,17 @@ +#linux #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/linux/networking/PXE.md b/3 resources/linux/networking/PXE.md new file mode 100644 index 0000000..d5fe4d1 --- /dev/null +++ b/3 resources/linux/networking/PXE.md @@ -0,0 +1,18 @@ +#linux #pxe + +--- +The NBP is a bootloader that is obtained via the network typically via [[TFTP]]. It handles setting up an environment in which an OS can run or install. For example, it displays a boot menu and downloads the kernel images. It sets up hardware, for example the [[NIC]]s. + +PXE boot process: +1. Modified [[DHCP]] request: request to include boot information (PXE boot request). +2. Process DHCP response which includes an IP address of [[TFTP]] server and filename of [[NBP]]. +3. Download NBP over TFTP. +4. NBP executes + 1. Loads additional stuff over network, like kernel images. + 2. Handles the boot menu +5. Kernel takes over boot process and potentially downloads additional files required to complete booting. + +Popular NBP's: +- PXELINUX +- iPXE +- GRUB2 diff --git a/3 resources/linux/networking/dhcp.md b/3 resources/linux/networking/dhcp.md deleted file mode 100644 index e426d6f..0000000 --- a/3 resources/linux/networking/dhcp.md +++ /dev/null @@ -1,4 +0,0 @@ -Dynamic Host Configuration Protocol -Allows hosts dynamically receive an IP address. - -[[TODO]] learn exactly how it works \ No newline at end of file diff --git a/3 resources/linux/networking/ip-masquerade-nat.md b/3 resources/linux/networking/ip-masquerade-nat.md deleted file mode 100644 index 8b722f4..0000000 --- a/3 resources/linux/networking/ip-masquerade-nat.md +++ /dev/null @@ -1,14 +0,0 @@ -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/linux/networking/nbp.md b/3 resources/linux/networking/nbp.md deleted file mode 100644 index 19676ea..0000000 --- a/3 resources/linux/networking/nbp.md +++ /dev/null @@ -1,3 +0,0 @@ -Network Bootstrap Program - -Is a bootloader that is obtained via the network typically via [[TFTP]]. It handles setting up an environment in which an OS can run or install. For example, it displays a boot menu and downloads the kernel images. It sets up hardware, for example the [[NIC]]s. \ No newline at end of file diff --git a/3 resources/linux/networking/pxe-boot.md b/3 resources/linux/networking/pxe-boot.md deleted file mode 100644 index d532ac3..0000000 --- a/3 resources/linux/networking/pxe-boot.md +++ /dev/null @@ -1,15 +0,0 @@ -PXE = Preboot Execution Environment. - -PXE boot process: -1. Modified [[DHCP]] request: request to include boot information (PXE boot request). -2. Process DHCP response which includes an IP address of [[TFTP]] server and filename of [[NBP]]. -3. Download NBP over TFTP. -4. NBP executes - 1. Loads additional stuff over network, like kernel images. - 2. Handles the boot menu -5. Kernel takes over boot process and potentially downloads additional files required to complete booting. - -Popular NBP's: -- PXELINUX -- iPXE -- GRUB2 diff --git a/3 resources/linux/networking/udp.md b/3 resources/linux/networking/udp.md deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3