Linux Networking: Difference between revisions

From wikinotes
 
Line 2: Line 2:
= Routing =
= Routing =
<blockquote>
<blockquote>
== Tutorials ==
<blockquote>
{| class="wikitable"
|-
| rule/table routing intro || https://blog.scottlowe.org/2013/05/29/a-quick-introduction-to-linux-policy-routing/
|-
|}
</blockquote><!-- Tutorials -->
Routing
Routing
<pre>
<pre>
Line 29: Line 38:
</blockquote><!-- Routing Table -->
</blockquote><!-- Routing Table -->
</blockquote><!-- Routing -->
</blockquote><!-- Routing -->


= Firewall =
= Firewall =

Latest revision as of 15:27, 18 September 2022

Routing

Tutorials

rule/table routing intro https://blog.scottlowe.org/2013/05/29/a-quick-introduction-to-linux-policy-routing/

Routing

     packet
       |
       |
  routing-policy
       |
       |
      \ /
       `
  routing-table

Routing Policy

The routing policy is managed by iproute2.

Routing Table

routing tables determine what network a packets is sent to.
A variety of tools can be used to manage it, but iproute2 is generally used today.

Prior to iproute2, net-tools route was generally used to manage the routing table in Linux.
You can also dump the routing table with netstat -r.

Firewall

Both iptables and more recently nftables are builtin to the linux kernel to manage rules.
There are also various abstractions overtop of them.