<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for bits | andy smith&#039;s blog</title>
	<atom:link href="http://andys.org.uk/bits/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://andys.org.uk/bits</link>
	<description>random stuff from the mind of a twenty-something professional geek</description>
	<lastBuildDate>Mon, 26 Mar 2012 03:27:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on IPTables: Fun with MARK by Ferry</title>
		<link>http://andys.org.uk/bits/2010/01/27/iptables-fun-with-mark/comment-page-1/#comment-18426</link>
		<dc:creator>Ferry</dc:creator>
		<pubDate>Mon, 26 Mar 2012 03:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://andys.org.uk/bits/?p=10#comment-18426</guid>
		<description>Hai,

i want to limit bandwidth and route to 3 gateway, my rules show like this:
ip rule add fwmark 11 table $TABLE_1
ip rule add fwmark 12 table $TABLE_2
ip rule add fwmark 14 table $TABLE_3

iptables -t mangle -A PREROUTING -m state --state new -j MARK --set-xmark 0x1
iptables -t mangle -A PREROUTING -m state --state new -m statistic --mode random --probability 0.3 -j MARK --set-xmark 0x2
iptables -t mangle -A PREROUTING -m state --state new -m statistic --mode random --probability 0.3 -j MARK --set-xmark 0x4

for tc:

iptables -t mangle -A FORWARD -o eth0 -p tcp --sport 80 -j MARK --set-xmark 10
iptables -t mangle -A FORWARD -o eth0 -p udp --sport 80 -j MARK --set-xmark 10
iptables -t mangle -A PREROUTING -p tcp --dport 80 -j MARK --set-xmark 10

it&#039;s that mean if packet goes to port 80 and table1 will marked 11? If I have a lot of port marking rule, do i have to write complex ip rule?

Do you have something more simple? or it really have to be complicated like that?</description>
		<content:encoded><![CDATA[<p>Hai,</p>
<p>i want to limit bandwidth and route to 3 gateway, my rules show like this:<br />
ip rule add fwmark 11 table $TABLE_1<br />
ip rule add fwmark 12 table $TABLE_2<br />
ip rule add fwmark 14 table $TABLE_3</p>
<p>iptables -t mangle -A PREROUTING -m state &#8211;state new -j MARK &#8211;set-xmark 0&#215;1<br />
iptables -t mangle -A PREROUTING -m state &#8211;state new -m statistic &#8211;mode random &#8211;probability 0.3 -j MARK &#8211;set-xmark 0&#215;2<br />
iptables -t mangle -A PREROUTING -m state &#8211;state new -m statistic &#8211;mode random &#8211;probability 0.3 -j MARK &#8211;set-xmark 0&#215;4</p>
<p>for tc:</p>
<p>iptables -t mangle -A FORWARD -o eth0 -p tcp &#8211;sport 80 -j MARK &#8211;set-xmark 10<br />
iptables -t mangle -A FORWARD -o eth0 -p udp &#8211;sport 80 -j MARK &#8211;set-xmark 10<br />
iptables -t mangle -A PREROUTING -p tcp &#8211;dport 80 -j MARK &#8211;set-xmark 10</p>
<p>it&#8217;s that mean if packet goes to port 80 and table1 will marked 11? If I have a lot of port marking rule, do i have to write complex ip rule?</p>
<p>Do you have something more simple? or it really have to be complicated like that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Authenticating Active Directory users on Linux with Likewise Open by Delicious Bookmarks for December 18th from 02:49 to 10:16 &#171; Lâmôlabs</title>
		<link>http://andys.org.uk/bits/2010/01/28/likewise-open-and-linux/comment-page-1/#comment-15792</link>
		<dc:creator>Delicious Bookmarks for December 18th from 02:49 to 10:16 &#171; Lâmôlabs</dc:creator>
		<pubDate>Sun, 18 Dec 2011 16:02:34 +0000</pubDate>
		<guid isPermaLink="false">http://andys.org.uk/bits/?p=20#comment-15792</guid>
		<description>[...] bits &#124; andy smith&#8217;s blog &#187; Authenticating Active Directory users on Linux with Likewise ... &#8211; December 18th  ( tags: likewise linux activedirectory ad setup howto guide tutorial ) [...]</description>
		<content:encoded><![CDATA[<p>[...] bits | andy smith&#8217;s blog &raquo; Authenticating Active Directory users on Linux with Likewise &#8230; &#8211; December 18th  ( tags: likewise linux activedirectory ad setup howto guide tutorial ) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IPv6 for a Linux generation by Andy Smith</title>
		<link>http://andys.org.uk/bits/2010/02/07/ipv6-for-an-linux-generation/comment-page-1/#comment-15599</link>
		<dc:creator>Andy Smith</dc:creator>
		<pubDate>Mon, 12 Dec 2011 13:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://andys.org.uk/bits/?p=33#comment-15599</guid>
		<description>Sorry Dave - apologies for not replying sooner...

I&#039;ve not had much of a play with DDNS or DHCPv6 - I&#039;ve got radvd running on my network which is pretty straightforward, except for the DNS stuff :-/</description>
		<content:encoded><![CDATA[<p>Sorry Dave &#8211; apologies for not replying sooner&#8230;</p>
<p>I&#8217;ve not had much of a play with DDNS or DHCPv6 &#8211; I&#8217;ve got radvd running on my network which is pretty straightforward, except for the DNS stuff :-/</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IPv6 for a Linux generation by Andy Smith</title>
		<link>http://andys.org.uk/bits/2010/02/07/ipv6-for-an-linux-generation/comment-page-1/#comment-15598</link>
		<dc:creator>Andy Smith</dc:creator>
		<pubDate>Mon, 12 Dec 2011 13:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://andys.org.uk/bits/?p=33#comment-15598</guid>
		<description>You&#039;re absolutely right - I messed up editing my real config and accidentally swapped the interfaces. Good spot!</description>
		<content:encoded><![CDATA[<p>You&#8217;re absolutely right &#8211; I messed up editing my real config and accidentally swapped the interfaces. Good spot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IPv6 for a Linux generation by leeand00</title>
		<link>http://andys.org.uk/bits/2010/02/07/ipv6-for-an-linux-generation/comment-page-1/#comment-15261</link>
		<dc:creator>leeand00</dc:creator>
		<pubDate>Fri, 02 Dec 2011 06:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://andys.org.uk/bits/?p=33#comment-15261</guid>
		<description>Given the following prefixes:

- LAN – 2001:470:90d3:1::/64
- DMZ – 2001:470:90d3:2::/64

Shouldn&#039;t this:

# Allow all outbound from our networks
ip6tables -A FORWARD -i dmz -s 2001:470:90d3:1::/64 -j ACCEPT
ip6tables -A FORWARD -i lan -s 2001:470:90d3:2::/64 -j ACCEPT
ip6tables -A FORWARD -i wlan -s 2001:470:90d3:3::/64 -j ACCEPT

Be this?
(switched lan and dmz prefixes)

# Allow all outbound from our networks
ip6tables -A FORWARD -i lan -s 2001:470:90d3:1::/64 -j ACCEPT
ip6tables -A FORWARD -i dmz -s 2001:470:90d3:2::/64 -j ACCEPT
ip6tables -A FORWARD -i wlan -s 2001:470:90d3:3::/64 -j ACCEPT

Please let me know if I am mistaken or not.</description>
		<content:encoded><![CDATA[<p>Given the following prefixes:</p>
<p>- LAN – 2001:470:90d3:1::/64<br />
- DMZ – 2001:470:90d3:2::/64</p>
<p>Shouldn&#8217;t this:</p>
<p># Allow all outbound from our networks<br />
ip6tables -A FORWARD -i dmz -s 2001:470:90d3:1::/64 -j ACCEPT<br />
ip6tables -A FORWARD -i lan -s 2001:470:90d3:2::/64 -j ACCEPT<br />
ip6tables -A FORWARD -i wlan -s 2001:470:90d3:3::/64 -j ACCEPT</p>
<p>Be this?<br />
(switched lan and dmz prefixes)</p>
<p># Allow all outbound from our networks<br />
ip6tables -A FORWARD -i lan -s 2001:470:90d3:1::/64 -j ACCEPT<br />
ip6tables -A FORWARD -i dmz -s 2001:470:90d3:2::/64 -j ACCEPT<br />
ip6tables -A FORWARD -i wlan -s 2001:470:90d3:3::/64 -j ACCEPT</p>
<p>Please let me know if I am mistaken or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IPTables: Fun with MARK by Andy Smith</title>
		<link>http://andys.org.uk/bits/2010/01/27/iptables-fun-with-mark/comment-page-1/#comment-14664</link>
		<dc:creator>Andy Smith</dc:creator>
		<pubDate>Fri, 04 Nov 2011 11:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://andys.org.uk/bits/?p=10#comment-14664</guid>
		<description>I wasn&#039;t aware of that - thanks!

For anyone else: http://ipset.netfilter.org/

Andy.</description>
		<content:encoded><![CDATA[<p>I wasn&#8217;t aware of that &#8211; thanks!</p>
<p>For anyone else: <a href="http://ipset.netfilter.org/" rel="nofollow">http://ipset.netfilter.org/</a></p>
<p>Andy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IPTables: Fun with MARK by Andy Smith</title>
		<link>http://andys.org.uk/bits/2010/01/27/iptables-fun-with-mark/comment-page-1/#comment-14663</link>
		<dc:creator>Andy Smith</dc:creator>
		<pubDate>Fri, 04 Nov 2011 11:53:09 +0000</pubDate>
		<guid isPermaLink="false">http://andys.org.uk/bits/?p=10#comment-14663</guid>
		<description>Hi Carl,

Just had a quick look and --set-xmark is mentioned in the iptables manpage - it states that it zeroes out the bits given by the mask and XORs in the value given.

Andy.</description>
		<content:encoded><![CDATA[<p>Hi Carl,</p>
<p>Just had a quick look and &#8211;set-xmark is mentioned in the iptables manpage &#8211; it states that it zeroes out the bits given by the mask and XORs in the value given.</p>
<p>Andy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PXE booting a Debian Squeeze install by Andy Smith</title>
		<link>http://andys.org.uk/bits/2010/03/22/pxe-booting-a-debian-squeeze-install/comment-page-1/#comment-14662</link>
		<dc:creator>Andy Smith</dc:creator>
		<pubDate>Fri, 04 Nov 2011 11:50:16 +0000</pubDate>
		<guid isPermaLink="false">http://andys.org.uk/bits/?p=78#comment-14662</guid>
		<description>Hi Dieter,

Apologies for taking so long to reply...

Looks like Debian have changed the DHCP server they use, so try replacing &#039;dhcp3-server&#039; with &#039;isc-dhcp-server&#039;.

Andy.</description>
		<content:encoded><![CDATA[<p>Hi Dieter,</p>
<p>Apologies for taking so long to reply&#8230;</p>
<p>Looks like Debian have changed the DHCP server they use, so try replacing &#8216;dhcp3-server&#8217; with &#8216;isc-dhcp-server&#8217;.</p>
<p>Andy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IPTables: Fun with MARK by Iptables MARK</title>
		<link>http://andys.org.uk/bits/2010/01/27/iptables-fun-with-mark/comment-page-1/#comment-14595</link>
		<dc:creator>Iptables MARK</dc:creator>
		<pubDate>Wed, 02 Nov 2011 15:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://andys.org.uk/bits/?p=10#comment-14595</guid>
		<description>[...] to this: http://andys.org.uk/bits/2010/01/27/...fun-with-mark/  It says:  &quot;The MARK target lets us set a 32-bit value (or 0xFFFFFFFF) on a packet, which we [...]</description>
		<content:encoded><![CDATA[<p>[...] to this: <a href="http://andys.org.uk/bits/2010/01/27/" rel="nofollow">http://andys.org.uk/bits/2010/01/27/</a>&#8230;fun-with-mark/  It says:  &quot;The MARK target lets us set a 32-bit value (or 0xFFFFFFFF) on a packet, which we [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PXE booting a Debian Squeeze install by Dieter</title>
		<link>http://andys.org.uk/bits/2010/03/22/pxe-booting-a-debian-squeeze-install/comment-page-1/#comment-14497</link>
		<dc:creator>Dieter</dc:creator>
		<pubDate>Fri, 28 Oct 2011 20:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://andys.org.uk/bits/?p=78#comment-14497</guid>
		<description>On 
&quot;service dhcp3-server restart&quot;

error:
&quot;dhcp3-server: unrecognized service&quot;

dhcp3-server is installed. Dont now what todo????</description>
		<content:encoded><![CDATA[<p>On<br />
&#8220;service dhcp3-server restart&#8221;</p>
<p>error:<br />
&#8220;dhcp3-server: unrecognized service&#8221;</p>
<p>dhcp3-server is installed. Dont now what todo????</p>
]]></content:encoded>
	</item>
</channel>
</rss>

