<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Choowong Sitaphong on Medium]]></title>
        <description><![CDATA[Stories by Choowong Sitaphong on Medium]]></description>
        <link>https://medium.com/@chooneverstops?source=rss-14116d917e54------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EplLaQm4n7kBKXKyWUi2tg.jpeg</url>
            <title>Stories by Choowong Sitaphong on Medium</title>
            <link>https://medium.com/@chooneverstops?source=rss-14116d917e54------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:23:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chooneverstops/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Redistribute VPN Networks to OSPF Process]]></title>
            <link>https://medium.com/@chooneverstops/redistribute-vpn-networks-to-ospf-process-3b1a16d259db?source=rss-14116d917e54------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b1a16d259db</guid>
            <category><![CDATA[ospf]]></category>
            <category><![CDATA[vpn]]></category>
            <dc:creator><![CDATA[Choowong Sitaphong]]></dc:creator>
            <pubDate>Mon, 28 May 2018 16:30:49 GMT</pubDate>
            <atom:updated>2018-05-28T16:30:49.768Z</atom:updated>
            <content:encoded><![CDATA[<p>Some time we would like route to another network in back VPN Router (same connection coming) and want to use OSPF in network, We need to add Redistribute to process id.</p><p>Redistribute is advertiser network from routing protocol to author protocol (Ex. From static to OSPF)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/0*N0VscxpsjKXRRfaI.png" /><figcaption><a href="http://www.firewall.cx/">http://www.firewall.cx/</a></figcaption></figure><p>For example, When I connect to VPN, My device receive ip 10.10.255.10 is in Network 10.10.255.0/24 and I will want to connect author network in back VPN Router, What to do ?</p><p>You can use ACL,Route-map and route-map to redistribute</p><p>First create ACL in Network same IP local pool in VPN Client used.</p><p>Ex. I’m use network <a href="https://l.facebook.com/l.php?u=http%3A%2F%2F10.10.255.0%2F24&amp;h=ATP8ixVu1-hhtMNnfqbQ7ycOgrRnvdEF3SpqAmcdp-JQ50Yzibd3G-c8QBoooX_P2XZI3V30Q5pfn6cYBHAPR2Ux2dw5AEwfEifR8WxkUMw0yT-RLAI">10.10.255.0/24</a></p><p>!</p><p>ip access-list standard vpn-network</p><pre>permit <a href="https://l.facebook.com/l.php?u=http%3A%2F%2F10.10.255.0%2F&amp;h=ATM3AXRgUJtu7MBLq26Iq8ndLv8SfPNFSas-mBd9tWKWeswO17tHW_i9qO3W7WcJYDbVEHEiwk-4KGWWK3Z3IYB-xTzrky_VMGOuUsmpICSlr9EkbNM">10.10.255.0</a> <a href="http://0.0.0.255/">0.0.0.255</a>  remark ACL for VPN-Client-IP-Address</pre><p>!</p><p>and make Route-map</p><p>!</p><p>route-map vpn-map permit 10</p><pre>match ip address vpn-network</pre><p>!</p><p>and route-map to redistrubute</p><p>!</p><p>router ospf 10</p><pre>redistribute connected subnets route-map vpn-map metric 140</pre><p>!</p><p>So easy ..<br>completed</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b1a16d259db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ยุคนี้ HTTPS คงยังไม่พอ มันต้อง #HSTS (extra security over HTTPS) มาตรฐานใหม่อินเทอร์เน็ต ที่ควรรู้]]></title>
            <link>https://medium.com/nexthopthai/%E0%B8%A2%E0%B8%B8%E0%B8%84%E0%B8%99%E0%B8%B5%E0%B9%89-https-%E0%B8%84%E0%B8%87%E0%B8%A2%E0%B8%B1%E0%B8%87%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%9E%E0%B8%AD-%E0%B8%A1%E0%B8%B1%E0%B8%99%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87-hsts-extra-security-over-https-%E0%B8%A1%E0%B8%B2%E0%B8%95%E0%B8%A3%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%AD%E0%B8%B4%E0%B8%99%E0%B9%80%E0%B8%97%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B9%80%E0%B8%99%E0%B9%87%E0%B8%95-%E0%B8%97%E0%B8%B5%E0%B9%88-dev-688c90c448be?source=rss-14116d917e54------2</link>
            <guid isPermaLink="false">https://medium.com/p/688c90c448be</guid>
            <category><![CDATA[rfc-6797]]></category>
            <category><![CDATA[hsts]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[internet-standard]]></category>
            <dc:creator><![CDATA[Choowong Sitaphong]]></dc:creator>
            <pubDate>Mon, 21 May 2018 16:39:43 GMT</pubDate>
            <atom:updated>2018-11-02T07:32:24.198Z</atom:updated>
            <content:encoded><![CDATA[<p>เมื่อก่อนเราใช้ HTTP protocol ในการสื่อสาร ข้อเสีย ที่ชัดเจนเลยคือ หากโดนดักข้อมูล จะดักแล้วอ่านออกมาได้หมดแบบชิวๆเลยแหล่ะ</p><p>คราวนี้มันเลยเกิดทางสวรรค์ขึ้นมา คือ HTTPS เพื่อให้มีการเข้ารหัสระหว่างการรับส่งข้อมูล แต่ก็นั่นแหล่ะครับ มันก็มีคนผู้คิดค้นหาวิธีได้อีก ซึ่ง SSLstrip เป็นหนึ่งในวิธีที่นิยมใช้กันในการทำ Man-in-the-middle เพื่อดักข้อมูล โดยหั่น https ออกระหว่างทางให้กลายเป็น http แล้วคราวนี้ attacker ก็แอบอ่านได้เลยทันที</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/0*pwWe7F1Iw5dxdQNG.png" /><figcaption><a href="https://incognitolab.com/">https://incognitolab.com/</a></figcaption></figure><p>อีกทั้งปัญหา Mixed content อีกบางเว็บ url เป็น https จริง แต่ดันฝังรูป js css หรือมีคนหลอกโพสต์ link ให้คลิกกลายเป็น http ธรรมดา cookie ก็หลุดอยู่ดี</p><p>เลยมีเจ้านี่ขึ้นมา แท่มมม</p><p><strong>มาตรฐานอินเตอร์เน็ต</strong>ออกใหม่มาชื่อ <strong>H</strong>TTP<strong> S</strong>trict <strong>T</strong>ransport <strong>S</strong>ecurity (<strong>HSTS</strong>)</p><p>ถ้าแปลตรงตัวเลย Strict ก็คือ เข้มงวด <br>Transport Security ก็คือ การส่งมูล <br>ดังนั้นรวมๆก็ควร<strong> การส่งข้อมูลแบบเข้มงวดขึ้น<br></strong> <strong>โดยฝั่ง Server จะบังคับให้ Web Browser คุยผ่าน HTTPS เท่านั้น</strong></p><p>มาดูกันดีกว่า ว่ามันทำงานยังไงจะได้เห็นภาพมากขึ้น <br>ปกติการขอ Request ระหว่าง Client กับ Web Server จะเป็นลักษณะดังนี้<br>HTTP — —Request — -&gt; Web Server<br>HTTP &lt;— —Response — - Web Server</p><p>HTTP — — Request — -&gt; Web Server<br>HTTPS &lt; — —Response — — Web Server</p><p>HSTS จะสนใจแค่เคสนี้ :<br>HTTPS — — Request — -&gt; Web Server<br>HTTPS &lt; — —Response — — Web Server</p><blockquote>“ถ้าเธอจะคุยกับเราอ่ะ เธอมาแบบธรรมดา (HTTP) เราไม่คุยน่ะ ไปทำตัวเองให้ปลอดภัยมาก่อน (HTTPS) ตั้งแต่แรก แล้วเราค่อยมาคุยกันใหม่ (Policy Enforcement)”</blockquote><p>แล้วคราวนี้มันจะไปบอก Web server ได้ไงล่ะ ว่าไม่ให้มาคุย HTTP แล้ว<br>สิ่งที่ทำได้คือ ใช้ Header ของ Response เวลาส่งกลับไปบอก<br>มาดูตัวอย่าง HSTS header กันดีกว่า ปกติจะมี Parameter หลายตัว แต่ส่วนใหญ่ก็จะใช้กันลักษณะประมาณนี้</p><h4><strong>Strict-Transport-Security</strong>: <strong>max-age</strong>=63072000; <strong>includeSubDomains</strong>; preload</h4><p>โดยจะระบุเลยว่า <br>1. ต้องคุยกันแบบเป็น Strict-Transport-Security เท่านั้นนะ ต้องปลอดภัยน่ะ <br>2. max-age<strong> = </strong>บังคับใช้ HSTS อยู่กี่วินาที หลัง Request ไป เช่น ส่ง header กลับไปบอกว่า 1 ปี แสดงว่า Server จะไม่คุย HTTP กับ Web Browser เลย เป็นเวลา 1 ปี Browser ก็จะจำแล้ว Count Down ลงไปเรื่อยๆ จนกว่าจะหมดเวลา พอหมด ก็ส่งไปใหม่เป็น Loop เดิม<br>3. includeSubDomains บอกว่า หลังจากนี้ถ้าจะคุยกับ Sub Domains ของเรา ก็ต้องคุยแบบ HSTS ด้วยน่ะจ๊ะ</p><p>HSTS:<br>HTTP — — Request — -&gt; Server (Nooooooooooooooooooo!)<br>HTTP &lt; — — ส่งมาใหม่นะหนู๋ มาแบบ HTTPS น่ะ — — Server<br>HTTPS— — Request — -&gt; Web Server (Oh Yessssssss!)<br>HTTPS &lt; — — อยากได้นี่ใช้ไหม อ่ะทางปลอดภัยแล้ว เราส่งให้— — Server</p><p>อย่าลืมว่า Server ต้องใส่ SSL ถูกต้องแล้วด้วย และเปิด port 443 HTTPS</p><p>หากถามว่ามี Browser ไหนรองรับแล้วยัง ล่าสุด browser หลัก ทำงานได้หมดทุกตัว</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CADjYKtIWGD3kxfB6Un0EQ.png" /><figcaption><a href="https://caniuse.com/#search=HSTS">https://caniuse.com/#search=HSTS</a></figcaption></figure><p>ต่างประเทศก็ทยอยทำไปเรียบร้อย ล่าสุด .gov ของอเมริกาทำ HSTS ใส่ใน browser กันแล้ว รวมถึง Facebook, Twitter, Google ก็มาครบเรียบร้อย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Cb1AyaCczLTKCt4JFGinA.png" /><figcaption>.gov</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K3U-sMpMJRF-Di3F8D4RPg.png" /><figcaption>google</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p1L5FQN6QAD0vFTDSvfi-g.png" /><figcaption>facebook</figcaption></figure><p>ส่วนในไทย ก็เห็นมีมาเรื่อยๆ เยอะขึ้นแล้วครับ ดูได้จากที่ส่งมาเช็คกับ <a href="https://chromium.googlesource.com/chromium/src/net/+/master/http/transport_security_state_static.json#50147">Google Preload List</a> พอหาดูเจอ ที่คุ้นๆ เช่น <a href="http://blognone.com/">https://blognone.com</a> , <a href="https://www.wpthaiuser.com/">https://www.wpthaiuser.com/</a> กับ .co.th อีกประมาณ 12 บริษัท</p><p>ส่วนตัวคิดว่าในเว็บที่มีรับส่งข้อมูลปลอดภัยสูง ก็ควรจะบังคับใช้ HSTS ได้แล้ว อนาคตต่อไปจะเป็นต่อไปก็ต้องรอดูกัน</p><p>ปล. สำหรับ nexthop.co.th เองเราก็เปิด HSTS แล้ว ส่งข้อมูลไปแล้ว และมีชื่อใน <a href="https://chromium.googlesource.com/chromium/src/net/+/master/http/transport_security_state_static.json#50147">Preload List</a> (บรรทัดที่ 50147)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idqioM_fe-ybJFtLzfkKPg.png" /></figure><p><a href="https://hstspreload.org/">hstspreload.org</a><br><a href="https://tools.ietf.org/html/rfc6797">tools.ietf.org/html/rfc6797</a><br><a href="https://www.facebook.com/notes/2600-thailand/https-sniffer-hsts-http-strict-transport-security/401957103297657/">2600-thailand</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=688c90c448be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nexthopthai/%E0%B8%A2%E0%B8%B8%E0%B8%84%E0%B8%99%E0%B8%B5%E0%B9%89-https-%E0%B8%84%E0%B8%87%E0%B8%A2%E0%B8%B1%E0%B8%87%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%9E%E0%B8%AD-%E0%B8%A1%E0%B8%B1%E0%B8%99%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87-hsts-extra-security-over-https-%E0%B8%A1%E0%B8%B2%E0%B8%95%E0%B8%A3%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%AD%E0%B8%B4%E0%B8%99%E0%B9%80%E0%B8%97%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B9%80%E0%B8%99%E0%B9%87%E0%B8%95-%E0%B8%97%E0%B8%B5%E0%B9%88-dev-688c90c448be">ยุคนี้ HTTPS คงยังไม่พอ มันต้อง #HSTS (extra security over HTTPS) มาตรฐานใหม่อินเทอร์เน็ต ที่ควรรู้</a> was originally published in <a href="https://medium.com/nexthopthai">Next-Hop Co., Ltd.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrade & Downgrade #Unifi Controller on Cloud Key]]></title>
            <link>https://medium.com/nexthopthai/upgrade-downgrade-unifi-controller-on-cloud-key-693e24b5f23f?source=rss-14116d917e54------2</link>
            <guid isPermaLink="false">https://medium.com/p/693e24b5f23f</guid>
            <category><![CDATA[unifi]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[network]]></category>
            <category><![CDATA[controller]]></category>
            <dc:creator><![CDATA[Choowong Sitaphong]]></dc:creator>
            <pubDate>Sun, 20 May 2018 08:11:28 GMT</pubDate>
            <atom:updated>2018-11-02T07:11:33.307Z</atom:updated>
            <content:encoded><![CDATA[<p>ปกติ Admin ทั่วๆ ไปก็คงใช้ controller release version ที่ประกาศเป็นทางการ เพราะ Stable ที่สุด แต่บางครั้งก็มีเหตุจำเป็นให้ต้อง Upgrade &amp; Downgrade เช่น อยากลองของก่อน เพราะมีฟังชั่นที่น่าสนใจในรุ่น Beta Version หรือพอ Upgrade ไปแล้ว ไม่เวิร์ค อยาก Downgrade กลับมา ** Downgrade controller ค่าต่างๆอาจต้องตั้งค่าใหม่ทั้งหมด แต่ Upgrade ส่วนใหญ่ใช้งานได้ต่อเนื่องเลย 1. SSH to Cloud Key</p><p><strong>User: root , Pass: ของ admin ที่เข้าสู่ระบบ Controller</strong></p><p>ถ้าเข้าสู่ระบบสำเร็จก็จะโชว์ภาพตามด้านล่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*ctwvmux-AJPGIxCA.jpg" /></figure><p>2. หลังจากเชื่อมกับ Cloud Key ได้แล้ว ก็เข้าไป directory ของ tmp เพราะเดี๋ยวจะมีไฟล์ที่ดาว์โหลดมาด้วย จะได้รู้ว่าเป็นที่เก็บชั่วคราว</p><p><strong>cd /tmp</strong></p><p>3. จากนั้นทำการดาวโหลดไฟล์ Controller รุ่นที่ต้องการ ของผมต้องการ 5.6.4 ซึ่งเป็นเวอร์ชั่น Beta อยู่ ต้องเข้าไปส่องลิ้งดูที่ Blog Beta เท่านั้น!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/0*qZDlnVUUhq3CZWdW.PNG" /></figure><p>ก็คลิกขวา เลือก Copy link ของ Linux</p><p>จากนั้นกลับมาที่ Putty พิมพ์ wget แล้วขลิกขวา url ก็จะมา Enter เลยย</p><p><strong>wget </strong><a href="https://www.ubnt.com/downloads/unifi/5.6.4-c3f780a99//unifi_sysvinit_all.deb"><strong>https://www.ubnt.com/downloads/unifi/5.6.4-c3f780a99//unifi_sysvinit_all.deb</strong></a> 4. ติดตั้ง</p><p><strong>dpkg -i unifi_sysvinit_all.deb</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*fxtlqDjI4jwYapkL.jpg" /></figure><p>5. เมื่อติดตั้งเสร็จ ก็ลบไฟล์ทิ้งไป จะได้ไม่เปลืองพื้นที่</p><p><strong>rm unifi_sysvinit_all.deb</strong></p><p>6. ลบเสร็จแล้วก็ออกจากระบบ</p><p><strong>exit</strong></p><p>7. จากนั้นเข้าหน้า Controller บน Cloud Key จะเจอหน้าติดตั้ง รอเรื่อยๆจนติดเสร็จ ก็จะใช้งานได้ทันที</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*iF54UAB7GeqlOiQs.PNG" /></figure><p>8. เรียบร้อย เข้าสู่ระบบก็ใช้งานได้เลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*wlW31EfDnS0JNTnS.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=693e24b5f23f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nexthopthai/upgrade-downgrade-unifi-controller-on-cloud-key-693e24b5f23f">Upgrade &amp; Downgrade #Unifi Controller on Cloud Key</a> was originally published in <a href="https://medium.com/nexthopthai">Next-Hop Co., Ltd.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>