<?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=Nftables_Webserver_Beispiel</id>
	<title>Nftables Webserver Beispiel - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Nftables_Webserver_Beispiel"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Nftables_Webserver_Beispiel&amp;action=history"/>
	<updated>2026-04-16T20:19:05Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Nftables_Webserver_Beispiel&amp;diff=67201&amp;oldid=prev</id>
		<title>Maximilian.pottgiesser: Die Seite wurde neu angelegt: „&lt;pre&gt; #!/usr/sbin/nft -f  # Flush existing rules  flush ruleset  # Define the main table for filtering  table inet filter { # Input chain - handles incoming tr…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Nftables_Webserver_Beispiel&amp;diff=67201&amp;oldid=prev"/>
		<updated>2026-02-26T06:55:43Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;pre&amp;gt; #!/usr/sbin/nft -f  # Flush existing rules  flush ruleset  # Define the main table for filtering  table inet filter { # Input chain - handles incoming tr…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/sbin/nft -f&lt;br /&gt;
&lt;br /&gt;
# Flush existing rules&lt;br /&gt;
&lt;br /&gt;
flush ruleset&lt;br /&gt;
&lt;br /&gt;
# Define the main table for filtering&lt;br /&gt;
&lt;br /&gt;
table inet filter {&lt;br /&gt;
# Input chain - handles incoming traffic&lt;br /&gt;
chain input {&lt;br /&gt;
type filter hook input priority filter; policy drop;&lt;br /&gt;
    # Accept loopback traffic&lt;br /&gt;
    iif lo accept&lt;br /&gt;
    &lt;br /&gt;
    # Accept established and related connections&lt;br /&gt;
    ct state established,related accept&lt;br /&gt;
    &lt;br /&gt;
    # Accept SSH (port 22) - consider limiting to specific IPs in production&lt;br /&gt;
    tcp dport 22 accept&lt;br /&gt;
    &lt;br /&gt;
    # Accept HTTP (port 80)&lt;br /&gt;
    tcp dport 80 accept&lt;br /&gt;
    &lt;br /&gt;
    # Accept HTTPS (port 443)&lt;br /&gt;
    tcp dport 443 accept&lt;br /&gt;
   &lt;br /&gt;
    # Accept ICMP for ping and network diagnostics&lt;br /&gt;
    ip protocol icmp accept&lt;br /&gt;
    ip6 nexthdr icmpv6 accept&lt;br /&gt;
    &lt;br /&gt;
    # Log and drop everything else (optional logging)&lt;br /&gt;
    # counter log prefix &amp;quot;nftables-dropped: &amp;quot; drop&lt;br /&gt;
    counter drop&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Forward chain - for routing (usually not needed for web servers)&lt;br /&gt;
chain forward {&lt;br /&gt;
    type filter hook forward priority filter; policy drop;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Output chain - handles outgoing traffic&lt;br /&gt;
chain output {&lt;br /&gt;
    type filter hook output priority filter; policy accept;&lt;br /&gt;
    &lt;br /&gt;
    # Allow all outgoing traffic by default&lt;br /&gt;
    # You can add restrictions here if needed&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Maximilian.pottgiesser</name></author>
	</entry>
</feed>