In-Depth Understanding of ip rule: Managing the Routing Policy Database in the Linux Kernel

In-Depth Understanding of ip rule: Managing the Routing Policy Database in the Linux Kernel

ip rule manages the rules of the routing policy database in the Linux kernel. Through these rules, complex routing decisions can be made, such as routing based on source address, destination address, protocol type, and other conditions. Command Format ip [ OPTIONS ] rule { COMMAND | help } ip rule [ show [ SELECTOR … Read more

TCP/IP Learning Notes (5) – IP Routing

TCP/IP Learning Notes (5) - IP Routing

Static IP Routing A Simple Routing Table Routing is one of the most important functions at the IP layer. The previous sections have briefly discussed how routers select routes based on the IP addresses of IP packets. We will not repeat that here. First, let’s take a look at a simple system routing table. Destination … Read more

OpenWrt 21.02: Implementing Policy Routing with IPset Based on MAC Addresses

OpenWrt 21.02: Implementing Policy Routing with IPset Based on MAC Addresses

OpenWrt Version Information DISTRIB_ID='OpenWrt' DISTRIB_RELEASE='21.02-SNAPSHOT' DISTRIB_REVISION='r0-6bf6af1d5' DISTRIB_TARGET='mediatek/mt7981' DISTRIB_ARCH='aarch64_cortex-a53' DISTRIB_DESCRIPTION='OpenWrt 21.02-SNAPSHOT r0-6bf6af1d5' DISTRIB_TAINTS='no-all busybox override' OpenWrt Configuration Enable IPset Support make menuconfig make menuconfig Network —> -*- ipset………………………………… IPset administration utility OpenWrt/.config Corresponding Configuration Items CONFIG_PACKAGE_ipset=y Enable IP-Full Support make menuconfig make menuconfig Network —> Routing and Redirection —> <*> ip-full…………………………….. Routing control utility (full) OpenWrt/.config … Read more