<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Networking on tplat</title>
		<link>/docs/networking/</link>
		<description>Recent content in Networking on tplat</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<atom:link href="/docs/networking/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Berkeley Packet Filters</title>
				<link>/docs/networking/berkeley-packet-filters/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/networking/berkeley-packet-filters/</guid>
				<description>&lt;h1 id=&#34;berkeley-packet-filters&#34;&gt;Berkeley Packet Filters&lt;a class=&#34;anchor&#34; href=&#34;#berkeley-packet-filters&#34;&gt;&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;p&gt;BPF is a filtering syntax used to match traffic by host, network, port, protocol, and other packet attributes.&lt;/p&gt;&#xA;&lt;h2 id=&#34;primitives&#34;&gt;Primitives&lt;a class=&#34;anchor&#34; href=&#34;#primitives&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Primitive filter&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Description&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;[src|dst] host &amp;lt;host&amp;gt;&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches a host as the IP source, destination, or either.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;ether [src|dst] host &amp;lt;ehost&amp;gt;&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches a host as the Ethernet source, destination, or either.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;[src|dst] net &amp;lt;network&amp;gt;&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches packets to or from the source and destination network, or either.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;[src|dst] net &amp;lt;network&amp;gt; mask &amp;lt;netmask&amp;gt;&lt;/code&gt; or &lt;code&gt;[src|dst] net &amp;lt;network&amp;gt;/&amp;lt;len&amp;gt;&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches packets with a specific netmask.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;[src|dst] port &amp;lt;port&amp;gt;&lt;/code&gt; or &lt;code&gt;[tcp|udp] [src|dst] port &amp;lt;port&amp;gt;&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches packets sent to or from a port.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;[src|dst] portrange &amp;lt;p1&amp;gt;-&amp;lt;p2&amp;gt;&lt;/code&gt; or &lt;code&gt;[tcp|udp] [src|dst] portrange &amp;lt;p1&amp;gt;-&amp;lt;p2&amp;gt;&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches packets to or from a port range.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;less &amp;lt;length&amp;gt;&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches packets less than or equal to the length.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;greater &amp;lt;length&amp;gt;&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches packets greater than or equal to the length.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;(ether|ip|ip6) proto &amp;lt;protocol&amp;gt;&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches an Ethernet, IPv4, or IPv6 protocol.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;(ip|ip6) protochain &amp;lt;protocol&amp;gt;&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches IPv4 or IPv6 packets with a protocol header in the chain, for example &lt;code&gt;ip6 protochain 6&lt;/code&gt;.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;(ether|ip) broadcast&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches Ethernet or IPv4 broadcasts.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;(ether|ip|ip6) multicast&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches Ethernet, IPv4, or IPv6 multicasts.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;vlan [&amp;lt;vlan&amp;gt;]&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches 802.1Q frames with a VLAN ID.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;mpls [&amp;lt;label&amp;gt;]&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Matches MPLS packets with a label.&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;protocols-and-operators&#34;&gt;Protocols and Operators&lt;a class=&#34;anchor&#34; href=&#34;#protocols-and-operators&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Common protocols include &lt;code&gt;arp&lt;/code&gt;, &lt;code&gt;ether&lt;/code&gt;, &lt;code&gt;fddi&lt;/code&gt;, &lt;code&gt;icmp&lt;/code&gt;, &lt;code&gt;ip&lt;/code&gt;, &lt;code&gt;ip6&lt;/code&gt;, &lt;code&gt;link&lt;/code&gt;, &lt;code&gt;ppp&lt;/code&gt;, &lt;code&gt;radio&lt;/code&gt;, &lt;code&gt;rarp&lt;/code&gt;, &lt;code&gt;slip&lt;/code&gt;, &lt;code&gt;tcp&lt;/code&gt;, &lt;code&gt;tr&lt;/code&gt;, &lt;code&gt;udp&lt;/code&gt;, and &lt;code&gt;wlan&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Protocol Data Unit</title>
				<link>/docs/networking/protocol-data-unit/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/networking/protocol-data-unit/</guid>
				<description>&lt;h1 id=&#34;protocol-data-unit&#34;&gt;Protocol Data Unit&lt;a class=&#34;anchor&#34; href=&#34;#protocol-data-unit&#34;&gt;&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;p&gt;A protocol data unit (PDU) is a single unit of information transmitted among peer entities of a computer network.&lt;/p&gt;&#xA;&lt;pre class=&#34;mermaid&#34;&gt;flowchart LR&#xA;&#xA;subgraph Bit&#xA;    Physical&#xA;end&#xA;&#xA;subgraph Frame&#xA;    Link&#xA;end&#xA;&#xA;subgraph Packet&#xA;    Network&#xA;end&#xA;&#xA;subgraph Segment[Segment / Datagram]&#xA;    Transport&#xA;end&#xA;&#xA;subgraph Data&#xA;    Session&#xA;    Presentation&#xA;    Application&#xA;end&#xA;&#xA;Bit --&amp;gt; Frame --&amp;gt; Packet --&amp;gt; Segment --&amp;gt; Data&lt;/pre&gt;</description>
			</item>
			<item>
				<title>Network Security</title>
				<link>/docs/networking/network-security/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/networking/network-security/</guid>
				<description>&lt;h1 id=&#34;network-security&#34;&gt;Network Security&lt;a class=&#34;anchor&#34; href=&#34;#network-security&#34;&gt;&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;p&gt;Network security focuses on protecting availability, integrity, and confidentiality in connected systems. Common attacks target bandwidth, routing, name resolution, and device access, so defenses usually combine filtering, redundancy, and monitoring.&lt;/p&gt;&#xA;&lt;h2 id=&#34;firewalls&#34;&gt;Firewalls&lt;a class=&#34;anchor&#34; href=&#34;#firewalls&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;A firewall controls traffic between network segments by applying a rule set to each connection attempt. It can be implemented in software, hardware, or both, and it decides whether packets are allowed, dropped, or blocked. The goal is to prevent unauthorized or unwanted connections.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
