<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ipv6 &#8211; Luxing Huang</title>
	<atom:link href="https://luxing.im/tag/ipv6/feed/" rel="self" type="application/rss+xml" />
	<link>https://luxing.im</link>
	<description>Thoughs and things</description>
	<lastBuildDate>Thu, 14 Jan 2016 17:41:19 +0000</lastBuildDate>
	<language>en-CA</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
<site xmlns="com-wordpress:feed-additions:1">58771605</site>	<item>
		<title>Check Out your IP address (And User-Agent)</title>
		<link>https://luxing.im/check-out-your-ip-address/</link>
					<comments>https://luxing.im/check-out-your-ip-address/#respond</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Mon, 11 May 2015 12:16:44 +0000</pubDate>
				<category><![CDATA[Techie Stuff]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[ssl]]></category>
		<guid isPermaLink="false">https://luxing.im/?p=501</guid>

					<description><![CDATA[I know there are many tell-your-IP-address services available, some even have the whois lookup functionality. I found it was unhelpful when it comes to scripting. I made a website, it has more features which curlmyip.com doesn&#8217;t have. It could report your IP address for a script-friendly way (direct response). It supports ipv4, ipv6 and SSL &#8230; <p class="link-more"><a href="https://luxing.im/check-out-your-ip-address/" class="more-link">Continue reading<span class="screen-reader-text"> "Check Out your IP address (And User-Agent)"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I know there are many tell-your-IP-address services available, some even have the whois lookup functionality. I found it was unhelpful when it comes to scripting. I made a website, it has more features which curlmyip.com doesn&#8217;t have. It could report your IP address for a script-friendly way (direct response). It supports ipv4, ipv6 and SSL access.<br />
<span id="more-501"></span><br />
IP:<br />
<a href="http://ipv4.luxing.im" target="_blank">http://ipv4.luxing.im</a><br />
<a href="http://ipv6.luxing.im" target="_blank">http://ipv6.luxing.im</a><br />
<a href="http://ip.luxing.im" target="_blank">http://ip.luxing.im</a><br />
<a href="https://get.luxing.im/ip" target="_blank">https://get.luxing.im/ip</a></p>
<p>User-Agent:<br />
<a href="http://ua.luxing.im" target="_blank">http://ua.luxing.im</a><br />
<a href="https://ua.luxing.im" target="_blank">https://ua.luxing.im</a><br />
<a href="http://get.luxing.im/ua" target="_blank">http://get.luxing.im/ua</a></p>
<p>When you are using the ua.luxing.im method in cURL, you need to add -L option to follow the link.</p>
<p>If you are using cURL with SSL, you may need to take a look at <a href="https://luxing.im/curl-support-for-cloudflare-enabled-websites/">this</a> article.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/check-out-your-ip-address/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">501</post-id>	</item>
		<item>
		<title>Adding IPv6 Support for KVM VMs</title>
		<link>https://luxing.im/adding-ipv6-support-for-kvm-vms/</link>
					<comments>https://luxing.im/adding-ipv6-support-for-kvm-vms/#comments</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Wed, 08 Apr 2015 23:09:17 +0000</pubDate>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[ip6tables]]></category>
		<category><![CDATA[ipv6]]></category>
		<guid isPermaLink="false">https://luxing.im/?p=487</guid>

					<description><![CDATA[I rented my server with OVH Canada. This blog is on one of the VMs that I created using KVM. Initially I did not configure VMs with IPv6 support. Actually, the IPv4 configuration is a bit more complicated than IPv6. So here is the thing. You&#8217;ll have a /64 block of ipv6 addresses allocated to &#8230; <p class="link-more"><a href="https://luxing.im/adding-ipv6-support-for-kvm-vms/" class="more-link">Continue reading<span class="screen-reader-text"> "Adding IPv6 Support for KVM VMs"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I rented my server with <a href="http://www.soyoustart.com/ca/en/" target="_blank">OVH Canada</a>. This blog is on one of the VMs that I created using KVM. Initially I did not configure VMs with IPv6 support. Actually, the IPv4 <a href="http://help.ovh.ie/BridgeClient" target="_blank">configuration</a> is a bit more complicated than IPv6.<br />
<span id="more-487"></span></p>
<p>So here is the thing. You&#8217;ll have a /64 block of ipv6 addresses allocated to you. It&#8217;s a LOT. I wish to use it well.</p>
<p>The steps are quite simple:</p>
<p>1. Configure the KVM network interface<br />
2. Configure the VM&#8217;s network interface<br />
3. Configure the ip6tables firewall.</p>
<p>Then your VMs will support ipv6. All below commands are done in root privilege. All you VMs should have a unique non-internal IPv4 addresses bridged to the Internet.</p>
<h2>Step 1</h2>
<p> Configure the KVM network interface<br />
Assuming you are on default network.</p>
<pre>virsh net-destroy default</pre>
<p>Stop the network.</p>
<p>Edit the virtual network by virsh.</p>
<pre>virsh net-edit default</pre>
<pre>
<network>
  <name>default</name>
  <uuid>.....</uuid>
  <forward dev='br0' mode='route'>
    <interface dev='br0'/>
  </forward>
  <bridge name='virbr0' stp='on' delay='0' />
  <mac address='52:55:21:05:3d:E4'/>
  <ip address='192.168.0.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.0.10' end='192.168.0.255' />
    </dhcp>
  </ip>
  <ip family='ipv6' address='2607:xxxx:xx:39aa:1::' prefix='96'>
  </ip>
</network>

</pre>
<p>Reserve 192.168.0.1 to the virtual bridge.<br />
Make your network configuration file look like this, replace your ipv6 and ipv4 block suitable for your contract.</p>
<p>Restart your network:</p>
<pre>virsh net-start default</pre>
<p>Now, using the <code>ip addr</code> facility to view your current network interfaces. Mine looks like this:<br />
<code><br />
...<br />
12: virbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN<br />
    link/ether 52:55:21:05:3d:e4 brd ff:ff:ff:ff:ff:ff<br />
    inet 192.168.0.1/24 brd 192.168.0.255 scope global virbr1<br />
    inet6 2607:xxxx:xx:39aa:1::/96 scope global<br />
       valid_lft forever preferred_lft forever<br />
    inet6 fe80::5054:ff:fe05:31e4/64 scope link<br />
       valid_lft forever preferred_lft forever<br />
</code></p>
<h2>Step 2</h2>
<p>Configure the VM&#8217;s network interface</p>
<p>Login to your VM(s). Based on your VM&#8217;s operating system, you&#8217;ll have different configuration methods. My VMs are using CentOS, so RHEL series can follow my steps.</p>
<p>Still using root, go to /etc/sysconfig/ and edit <code>network</code> file, add <code>NETWORKING_IPV6=yes</code> to the end of the file if this line doesn&#8217;t exist. Then go to /etc/sysconfig/network-scripts, and edit your network interface file, in my case it&#8217;s <code>ifcfg-eth0</code>.</p>
<p>Add or edit those line to the file:</p>
<pre>
IPV6INIT=yes
IPV6ADDR=2607:xxxx:xx:39aa:1::23f:8/128
</pre>
<p>Then the IPv6 address of the VM is 2607:xxxx:xx:39aa:1::23f:8. You could add more IPs by setting</p>
<pre>
IPV6ADDR_SECONDARIES="2607:xxxx:xx:39aa:1::23f:8/128 2607:xxxx:xx:39aa:1::23f:9/128"
</pre>
<h2>Step 3</h2>
<p>Configure the ip6tables firewall on your VM.</p>
<p>If you have installed ip6tables, you may want to change some of the configurations. Edit /etc/sysconfig/ip6tables:</p>
<pre>
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p ipv6-icmp -j ACCEPT # Enable ping
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT # Open WEB port 80.
-A INPUT -j REJECT --reject-with icmp6-adm-prohibited
COMMIT
</pre>
<p>Then do a restart on ip6tables by calling <code>service ip6tables restart</code></p>
<p>That&#8217;s it.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/adding-ipv6-support-for-kvm-vms/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">487</post-id>	</item>
	</channel>
</rss>
