<?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=TS_HTB_MANGLE</id>
	<title>TS HTB MANGLE - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=TS_HTB_MANGLE"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=TS_HTB_MANGLE&amp;action=history"/>
	<updated>2026-04-06T00:13:25Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=TS_HTB_MANGLE&amp;diff=5315&amp;oldid=prev</id>
		<title>Thomas am 1. Oktober 2014 um 09:23 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=TS_HTB_MANGLE&amp;diff=5315&amp;oldid=prev"/>
		<updated>2014-10-01T09:23:54Z</updated>

		<summary type="html">&lt;p&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 1. Oktober 2014, 09:23 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-l1&quot; &gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&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;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/del&gt;pre&amp;gt;&lt;/div&gt;&lt;/td&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: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&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;#!/bin/bash&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;#!/bin/bash&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;UPLINK=100&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;UPLINK=100&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff::1.12:old-5314:rev-5315 --&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas</name></author>
	</entry>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=TS_HTB_MANGLE&amp;diff=5314&amp;oldid=prev</id>
		<title>Thomas am 1. Oktober 2014 um 09:23 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=TS_HTB_MANGLE&amp;diff=5314&amp;oldid=prev"/>
		<updated>2014-10-01T09:23:43Z</updated>

		<summary type="html">&lt;p&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 1. Oktober 2014, 09:23 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-l15&quot; &gt;Zeile 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 15:&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;  iptables -A POSTROUTING -t mangle -o $DEV -p icmp -j MARK --set-mark 10  &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;  iptables -A POSTROUTING -t mangle -o $DEV -p icmp -j MARK --set-mark 10  &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;  iptables -A POSTROUTING -t mangle -o $DEV -m tos --tos 0x10  -j MARK --set-mark 10  &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;  iptables -A POSTROUTING -t mangle -o $DEV -m tos --tos 0x10  -j MARK --set-mark 10  &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;/div&gt;&lt;/td&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: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;&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;  tc qdisc add dev $DEV root handle 1: htb default 30&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;  tc qdisc add dev $DEV root handle 1: htb default 30&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;  tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}mbit&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;  tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}mbit&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff::1.12:old-5313:rev-5314 --&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas</name></author>
	</entry>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=TS_HTB_MANGLE&amp;diff=5313&amp;oldid=prev</id>
		<title>Thomas: Die Seite wurde neu angelegt: „&lt;/pre&gt; #!/bin/bash UPLINK=100 DOWNLINK=8 DEV=eth1 case $1 in start)  echo delete mangle   iptables -t mangle -F  echo delete qdisc   tc qdisc del dev $DEV root…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=TS_HTB_MANGLE&amp;diff=5313&amp;oldid=prev"/>
		<updated>2014-10-01T09:23:21Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;/pre&amp;gt; #!/bin/bash UPLINK=100 DOWNLINK=8 DEV=eth1 case $1 in start)  echo delete mangle   iptables -t mangle -F  echo delete qdisc   tc qdisc del dev $DEV root…“&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;
#!/bin/bash&lt;br /&gt;
UPLINK=100&lt;br /&gt;
DOWNLINK=8&lt;br /&gt;
DEV=eth1&lt;br /&gt;
case $1 in&lt;br /&gt;
start)&lt;br /&gt;
 echo delete mangle &lt;br /&gt;
 iptables -t mangle -F&lt;br /&gt;
 echo delete qdisc &lt;br /&gt;
 tc qdisc del dev $DEV root    2&amp;gt; /dev/null &amp;gt; /dev/null&lt;br /&gt;
 tc qdisc del dev $DEV ingress 2&amp;gt; /dev/null &amp;gt; /dev/null&lt;br /&gt;
 echo set mangle tables &lt;br /&gt;
 iptables -A POSTROUTING -t mangle -o $DEV -p tcp -m length --length :64 -j MARK --set-mark 10 &lt;br /&gt;
 iptables -A POSTROUTING -t mangle -o $DEV -p icmp -j MARK --set-mark 10 &lt;br /&gt;
 iptables -A POSTROUTING -t mangle -o $DEV -m tos --tos 0x10  -j MARK --set-mark 10 &lt;br /&gt;
&lt;br /&gt;
 tc qdisc add dev $DEV root handle 1: htb default 30&lt;br /&gt;
 tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}mbit&lt;br /&gt;
 tc class add dev $DEV parent 1:1 classid 1:10 htb rate $[50*UPLINK/100]mbit ceil ${UPLINK}mbit burst 6k prio 1&lt;br /&gt;
 tc class add dev $DEV parent 1:1 classid 1:20 htb rate $[30*UPLINK/100]mbit ceil ${UPLINK}mbit burst 6k prio 2&lt;br /&gt;
 tc class add dev $DEV parent 1:1 classid 1:30 htb rate $[20*UPLINK/100]mbit ceil ${UPLINK}mbit burst 6k prio 3&lt;br /&gt;
 tc class add dev $DEV parent 1:1 classid 1:40 htb rate $[10*UPLINK/100]mbit ceil ${UPLINK}mbit burst 6k prio 4&lt;br /&gt;
 tc filter add dev $DEV protocol ip parent 1:0 prio 1 handle 10 fw flowid 1:10&lt;br /&gt;
 tc filter add dev $DEV protocol ip parent 1:0 prio 2 handle 20 fw flowid 1:20&lt;br /&gt;
 tc filter add dev $DEV protocol ip parent 1:0 prio 3 handle 30 fw flowid 1:30&lt;br /&gt;
 tc filter add dev $DEV protocol ip parent 1:0 prio 4 handle 40 fw flowid 1:40&lt;br /&gt;
 tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10&lt;br /&gt;
 tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10&lt;br /&gt;
 tc qdisc add dev $DEV parent 1:30 handle 30: sfq perturb 10&lt;br /&gt;
 tc qdisc add dev $DEV parent 1:40 handle 40: sfq perturb 10&lt;br /&gt;
 echo  ingress qdisc &lt;br /&gt;
 tc qdisc add dev $DEV handle ffff: ingress&lt;br /&gt;
 echo ingres filter &lt;br /&gt;
 tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src  0.0.0.0/0 police rate ${DOWNLINK}mbit burst 10k drop flowid :1&lt;br /&gt;
;;&lt;br /&gt;
stop)&lt;br /&gt;
 echo delete mangle &lt;br /&gt;
 iptables -t mangle -F&lt;br /&gt;
 echo delete qdisc &lt;br /&gt;
 tc qdisc del dev $DEV root    2&amp;gt; /dev/null &amp;gt; /dev/null&lt;br /&gt;
 tc qdisc del dev $DEV ingress 2&amp;gt; /dev/null &amp;gt; /dev/null&lt;br /&gt;
;;&lt;br /&gt;
status)&lt;br /&gt;
 tc -s qdisc ls dev $DEV&lt;br /&gt;
 tc -s class ls dev $DEV&lt;br /&gt;
;;&lt;br /&gt;
esac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas</name></author>
	</entry>
</feed>