<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Linux_Switch</id>
	<title>Linux Switch - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Linux_Switch"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Linux_Switch&amp;action=history"/>
	<updated>2026-06-29T18:14:29Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Linux_Switch&amp;diff=61448&amp;oldid=prev</id>
		<title>Thomas.will: /* DNS für das Labor einrichten */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Linux_Switch&amp;diff=61448&amp;oldid=prev"/>
		<updated>2025-04-12T13:26:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;DNS für das Labor einrichten&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 12. April 2025, 13:26 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l71&quot; &gt;Zeile 71:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 71:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==VLAN alternative==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==VLAN alternative==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[Vlan alternative 5103]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[Vlan alternative 5103]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= DNS für das Labor einrichten =&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{#drawio:linux-sec-fire-02}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Vorbereitungen ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* VirtualBox Server-Vorlage mit neuen MAC-Adressen klonen&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Der Host soll im ''DMZ''-Netzwerk liegen&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* IP-Adresse herausfinden über das DHCP-Log oder die Konsole&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* SSH-Schlüssel des Kit Hosts für User ''kit'' und ''root'' hinterlegen&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* statische IP-Adresse nach dem Netzwerkplan setzen (''/etc/network/interfaces'')&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Hostname ändern zu ''dns''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* SSH-Server anpassen&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Linux_Switch&amp;diff=61447&amp;oldid=prev</id>
		<title>Thomas.will: Die Seite wurde neu angelegt: „  = Switch = * Für den Anfang erstellen nur einen einfachen Layer 2 Switch ohne jegliche Filterregeln * Dazu muss auf der Maschine '''bridge-utils''' installi…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Linux_Switch&amp;diff=61447&amp;oldid=prev"/>
		<updated>2025-04-12T13:26:05Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „  = Switch = * Für den Anfang erstellen nur einen einfachen Layer 2 Switch ohne jegliche Filterregeln * Dazu muss auf der Maschine &amp;#039;&amp;#039;&amp;#039;bridge-utils&amp;#039;&amp;#039;&amp;#039; installi…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
= Switch =&lt;br /&gt;
* Für den Anfang erstellen nur einen einfachen Layer 2 Switch ohne jegliche Filterregeln&lt;br /&gt;
* Dazu muss auf der Maschine '''bridge-utils''' installiert werden&lt;br /&gt;
* '''apt install bridge-utils'''&lt;br /&gt;
* Anschließend muss eine Bridge-Schnittstelle erstellt werden, die zwischen allen anderen realen Schnittstellen weiterleiten kann&lt;br /&gt;
* '''vim ''/etc/network/interfaces'' '''&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 &lt;br /&gt;
 auto enp0s3&lt;br /&gt;
 iface enp0s3 inet manual&lt;br /&gt;
 &lt;br /&gt;
 auto enp0s8&lt;br /&gt;
 iface enp0s8 inet manual&lt;br /&gt;
 &lt;br /&gt;
 auto enp0s9&lt;br /&gt;
 iface enp0s9 inet manual&lt;br /&gt;
  &lt;br /&gt;
 auto enp0s10&lt;br /&gt;
 iface enp0s10 inet manual&lt;br /&gt;
 &lt;br /&gt;
 auto br0&lt;br /&gt;
 iface br0 inet static&lt;br /&gt;
  address 172.16.1''xx''.2/24&lt;br /&gt;
  gateway 172.16.1''xx''.1&lt;br /&gt;
  bridge_ports all&lt;br /&gt;
&lt;br /&gt;
* '''systemctl restart networking'''&lt;br /&gt;
* Die IP-Konfiguration auf der Bridge ermöglicht Remote-Zugriff auf den Switch&lt;br /&gt;
&lt;br /&gt;
== Bridge Firewall ==&lt;br /&gt;
* Auf dem Switch für das Admin-Netzwerk und das LAN werden Firewall-Regeln erstellt, die die Auflösung aus dem LAN in das Admin-Netzwerk verhindern sollen&lt;br /&gt;
* '''vim ''/etc/nftables.conf'' '''&lt;br /&gt;
&lt;br /&gt;
 #!/usr/sbin/nft -f&lt;br /&gt;
 &lt;br /&gt;
 flush ruleset&lt;br /&gt;
 &lt;br /&gt;
 define admin_port = enp0s8&lt;br /&gt;
 define lan = 172.17.1''xx''.0/24&lt;br /&gt;
 &lt;br /&gt;
 table bridge bridge_filter {&lt;br /&gt;
 	chain postrouting {&lt;br /&gt;
 		type filter hook postrouting priority 0; policy accept;&lt;br /&gt;
 		oif $admin_port arp saddr ip $lan log prefix &amp;quot;nftables drop ARP von LAN zu Admin-Netzwerk: &amp;quot; drop&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
* '''systemctl enable --now nftables'''&lt;br /&gt;
&lt;br /&gt;
== [[:Kategorie:VLAN|VLAN]]s konfigurieren ==&lt;br /&gt;
* Als Alternative zu Bridge Firewalls können VLANs konfiguriert werden&lt;br /&gt;
* Dazu muss das Modul ''8021q'' in den Linux-Kernel geladen werden&lt;br /&gt;
* '''apt install vlan'''&lt;br /&gt;
* '''modprobe 8021q'''&lt;br /&gt;
* Für eine persistente Lösung sollte man das Modul in die Datei ''/etc/modules'' eintragen&lt;br /&gt;
* '''vim ''/etc/modules'' '''&lt;br /&gt;
&lt;br /&gt;
 8021q&lt;br /&gt;
&lt;br /&gt;
* Ein Layer 2 Switch mit VLANs kann folgendermaßen konfiguriert werden: [[Linux Layer 2 VLAN Switch]]&lt;br /&gt;
* Der DHCP-Server muss angepasst werden, damit die neuen Schnittstellen auch die Anfragen beantworten können&lt;br /&gt;
* '''vim ''/etc/default/isc-dhcp-server'' '''&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 INTERFACES=&amp;quot;enp0s8.2 enp0s9&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==VLAN alternative==&lt;br /&gt;
*[[Vlan alternative 5103]]&lt;br /&gt;
&lt;br /&gt;
= DNS für das Labor einrichten =&lt;br /&gt;
{{#drawio:linux-sec-fire-02}}&lt;br /&gt;
&lt;br /&gt;
== Vorbereitungen ==&lt;br /&gt;
* VirtualBox Server-Vorlage mit neuen MAC-Adressen klonen&lt;br /&gt;
* Der Host soll im ''DMZ''-Netzwerk liegen&lt;br /&gt;
* IP-Adresse herausfinden über das DHCP-Log oder die Konsole&lt;br /&gt;
* SSH-Schlüssel des Kit Hosts für User ''kit'' und ''root'' hinterlegen&lt;br /&gt;
* statische IP-Adresse nach dem Netzwerkplan setzen (''/etc/network/interfaces'')&lt;br /&gt;
* Hostname ändern zu ''dns''&lt;br /&gt;
* SSH-Server anpassen&lt;/div&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
</feed>