<?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>How to Config &#187; OpenVPN</title>
	<atom:link href="http://www.howtoconfig.com/tag/openvpn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.howtoconfig.com</link>
	<description>how to config - how to configure</description>
	<lastBuildDate>Fri, 29 Apr 2011 09:52:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>OpenVPN on UDP 53 &#8211; ไปที่ไหนก็เล่น Net ได้!!!</title>
		<link>http://www.howtoconfig.com/os/debian/openvpn-on-udp-53-%e0%b9%84%e0%b8%9b%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%84%e0%b8%ab%e0%b8%99%e0%b8%81%e0%b9%87%e0%b9%80%e0%b8%a5%e0%b9%88%e0%b8%99-net-%e0%b9%84%e0%b8%94%e0%b9%89.html</link>
		<comments>http://www.howtoconfig.com/os/debian/openvpn-on-udp-53-%e0%b9%84%e0%b8%9b%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%84%e0%b8%ab%e0%b8%99%e0%b8%81%e0%b9%87%e0%b9%80%e0%b8%a5%e0%b9%88%e0%b8%99-net-%e0%b9%84%e0%b8%94%e0%b9%89.html#comments</comments>
		<pubDate>Mon, 25 Oct 2010 08:07:42 +0000</pubDate>
		<dc:creator>อัทศักดิ์ วงศ์กิตตะ</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.siambox.com/blog/?p=43</guid>
		<description><![CDATA[สมัยนี้ไปไหนก็มีก็มี Wifi ให้เราใช้งาน ไม่ว่าจะเป็นแบบฟรี หรือ เสียเงิน    วันนี้ผมเอาจุดอ่อน ที่ผู้ให้บริการ Hotspot  มองข้ามคือ การเปิด Any DNS  หรือ การเปิดให้ Client สามารถ Query DNS ข้างน้อกได้ โดยไม่ได้ทำการ Auth      ซึ่ง Wifi หลายๆที่เปิดไว้เพื่อความสะดวก   แต่ตรงนี้แหละเป็นจุดอ่อน  ที่จะทำให้เราสามารถใช้งาน Internet ได้โดยไม่โดนจำกัด Bandwidth สิ่งที่ต้องเตรียม ต้องมี Server ที่เป็น Fix IP ไว้ข้างนอก ติดตั้ง OpenVPN ติดตั้ง Server apt-get install openvpn openvpn --genkey --secret /etc/openvpn/mysecret.key &#160; vi /etc/openvpn/server-udp-53.conf # File /etc/openvpn/server-udp-53.conf dev [...]]]></description>
			<content:encoded><![CDATA[<p>สมัยนี้ไปไหนก็มีก็มี Wifi ให้เราใช้งาน ไม่ว่าจะเป็นแบบฟรี หรือ เสียเงิน    วันนี้ผมเอาจุดอ่อน ที่ผู้ให้บริการ Hotspot  มองข้ามคือ การเปิด Any DNS  หรือ การเปิดให้ Client สามารถ Query DNS ข้างน้อกได้ โดยไม่ได้ทำการ Auth      ซึ่ง Wifi หลายๆที่เปิดไว้เพื่อความสะดวก   แต่ตรงนี้แหละเป็นจุดอ่อน  ที่จะทำให้เราสามารถใช้งาน Internet ได้โดยไม่โดนจำกัด Bandwidth</p>
<p>สิ่งที่ต้องเตรียม</p>
<ol>
<li>ต้องมี Server ที่เป็น Fix IP ไว้ข้างนอก</li>
<li>ติดตั้ง OpenVPN</li>
</ol>
<p>ติดตั้ง Server</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> openvpn
openvpn <span style="color: #660033;">--genkey</span> <span style="color: #660033;">--secret</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>mysecret.key
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>openvpn<span style="color: #000000; font-weight: bold;">/</span>server-udp-<span style="color: #000000;">53</span>.conf</pre></div></div>

<pre># File /etc/openvpn/server-udp-53.conf
dev tap
mode p2p
proto udp
#ping 1
port 53
ifconfig 10.10.10.1 255.255.255.252
secret /etc/openvpn/mysecret.key
tun-mtu 1500
tun-mtu-extra 32
mssfix 1400

push "route 192.168.10.0 255.255.255.0"</pre>
<p>ติดตั้ง Client</p>
<p>Download Client จาก   http://openvpn.net/index.php/openvpn-client.html  และทำการติดตั้ง</p>
<p>Copy file  mysecret.key   มาไว้ในเครื่อง  และสร้างไฟล์ config   โดยใช้ชื่อ     client.ovpn</p>
<pre>#file client.ovpn
dev tap
mode p2p
proto udp
remote &lt;IP Server&gt;
#ping 1
port 53
ifconfig 10.10.30.2 255.255.255.252
secret mysecret.key

tun-mtu 1500
tun-mtu-extra 32
mssfix 1400
ping 5</pre>
<p>แค่นี้ก็สามารถ  Connect VPN ผ่าน  UDP/53 ได้แล้วครับ</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.howtoconfig.com%2Fos%2Fdebian%2Fopenvpn-on-udp-53-%25e0%25b9%2584%25e0%25b8%259b%25e0%25b8%2597%25e0%25b8%25b5%25e0%25b9%2588%25e0%25b9%2584%25e0%25b8%25ab%25e0%25b8%2599%25e0%25b8%2581%25e0%25b9%2587%25e0%25b9%2580%25e0%25b8%25a5%25e0%25b9%2588%25e0%25b8%2599-net-%25e0%25b9%2584%25e0%25b8%2594%25e0%25b9%2589.html&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.howtoconfig.com/os/debian/openvpn-on-udp-53-%e0%b9%84%e0%b8%9b%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%84%e0%b8%ab%e0%b8%99%e0%b8%81%e0%b9%87%e0%b9%80%e0%b8%a5%e0%b9%88%e0%b8%99-net-%e0%b9%84%e0%b8%94%e0%b9%89.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN on Debian</title>
		<link>http://www.howtoconfig.com/os/debian/openvpn-on-debian.html</link>
		<comments>http://www.howtoconfig.com/os/debian/openvpn-on-debian.html#comments</comments>
		<pubDate>Thu, 15 Jan 2009 16:43:25 +0000</pubDate>
		<dc:creator>อัทศักดิ์ วงศ์กิตตะ</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.howtoconfig.com/?p=50</guid>
		<description><![CDATA[สวัสดีอีกครั้งครับหลังจากหายหน้าหายตาไปนาน จริงๆก็ไม่ได้ไปไหนแค่หลังๆมางานที่ office ค่อนข้างมากแล้วผมเองก็ไปเที่ยวสะบ่อยๆ เลยไม่ค่อยได้มาเขียนบทความให้อ่านกัน   วันนี้เป็นเรื่องการทำ VPN  โดยใช้ OpenVPN    ทำไมต้องเป็น OpenVPN  สาเหตุของผมคือ ผมเองต้องติดตั้งระบบ Auth System (Radius + Chillispot + Syslog-ng)    แต่ละที่ดันเป็น Dynamic IP หมด  เวลาจะแก้ไขอะไรก็ต้องไป set router    ซึ่งมันไม่ใช่ทางเลือกที่ดีเลย    ทางแก้ผมเลย set up ที่ Center แล้วให้ Site แต่ละที่ทำการสร้าง VPN Connection ไปยัง Center Server# apt-get install openvpn Server# vi /etc/openvpn/server.conf # ไฟล์ /etc/openvpn/server.conf dev tap0 proto tcp-server ping [...]]]></description>
			<content:encoded><![CDATA[<p>สวัสดีอีกครั้งครับหลังจากหายหน้าหายตาไปนาน จริงๆก็ไม่ได้ไปไหนแค่หลังๆมางานที่ office ค่อนข้างมากแล้วผมเองก็ไปเที่ยวสะบ่อยๆ เลยไม่ค่อยได้มาเขียนบทความให้อ่านกัน   วันนี้เป็นเรื่องการทำ VPN  โดยใช้ OpenVPN    ทำไมต้องเป็น OpenVPN  สาเหตุของผมคือ ผมเองต้องติดตั้งระบบ Auth System (Radius + Chillispot + Syslog-ng)    แต่ละที่ดันเป็น Dynamic IP หมด  เวลาจะแก้ไขอะไรก็ต้องไป set router    ซึ่งมันไม่ใช่ทางเลือกที่ดีเลย    ทางแก้ผมเลย set up ที่ Center แล้วให้ Site แต่ละที่ทำการสร้าง VPN Connection ไปยัง Center</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Server<span style="color: #666666; font-style: italic;"># apt-get install openvpn</span>
Server<span style="color: #666666; font-style: italic;"># vi /etc/openvpn/server.conf</span></pre></div></div>

<p># ไฟล์ /etc/openvpn/server.conf</p>
<pre>
dev tap0
proto tcp-server
ping 1
ping-restart 5
port 10000
ifconfig 10.10.10.1 255.255.255.0
</pre>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Client<span style="color: #666666; font-style: italic;"># apt-get install openvpn</span>
Client<span style="color: #666666; font-style: italic;"># vi /etc/openvpn/client.conf</span></pre></div></div>

<p># ไฟล์ /etc/openvpn/server.conf</p>
<pre>
dev tap0
proto tcp-client
ping 1
ping-restart 5
port 10003
ifconfig 10.10.10.2 255.255.255.0
remote 203.1.1.1
</pre>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Server<span style="color: #666666; font-style: italic;"># /etc/init.d/openvpn start</span>
Client<span style="color: #666666; font-style: italic;"># /etc/init.d/openvpn start</span></pre></div></div>

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.howtoconfig.com%2Fos%2Fdebian%2Fopenvpn-on-debian.html&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.howtoconfig.com/os/debian/openvpn-on-debian.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

