Linux Networking: Difference between revisions

From wikinotes
Line 1: Line 1:


= Overview =
= Routing =
<blockquote>
<blockquote>
Routing
<pre>
<pre>
 
    packet
      |
      |
  routing-policy
      |
      |
      \ /
      `
  routing-table
</pre>
</pre>


Line 19: Line 28:
You can also dump the routing table with [[netstat|netstat -r]].
You can also dump the routing table with [[netstat|netstat -r]].
</blockquote><!-- Routing Table -->
</blockquote><!-- Routing Table -->
</blockquote><!-- Routing -->


== Firewall ==
= Firewall =
<blockquote>
<blockquote>
Both [[iptables]] and more recently [[nftables]] are builtin to the linux kernel to manage rules.<br>
Both [[iptables]] and more recently [[nftables]] are builtin to the linux kernel to manage rules.<br>
There are also various abstractions overtop of them.
There are also various abstractions overtop of them.
</blockquote><!-- Firewall -->
</blockquote><!-- Firewall -->
</blockquote><!-- Overview -->

Revision as of 15:21, 18 September 2022

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.