Sysnet Board คู่มือ การใช้งานอุปกรณ์ Network

การ Config อุปกรณ์ เครือข่าย Network Device => อุปกรณ์ Mikrotik Router => หัวข้อที่ตั้งโดย: yod เมื่อ วันที่ 22 มิถุนายน 2015, 14:58:30

ชื่อ: แก้ไขปัญหา User Login เข้า Hotspot ด้วย HTTPS แล้วไม่ Redirect ไปหน้า Login
โดย: yod เมื่อ วันที่ 22 มิถุนายน 2015, 14:58:30

แก้ไขปัญหา User Login เข้า Hotspot ด้วย HTTPS แล้วไม่ Redirect ไปหน้า Login



เวลา User เข้าระบบ Hotspot แล้วพิมพ์ https เช่น https://www.google.com (https://www.google.com) แล้วไม่ Redirct ไปยังหน้าให้ใส่ User/Password

(https://www.sysnetcenter.com/board/images/mikrotik/https-hotspot/mikrotik-https-hotspot-001.gif)


จากที่ลองหาข้อมูลเพิ่มเติม รายละเอียดจาก Link นี้ครับ
http://forum.mikrotik.com/viewtopic.php?f=2&t=81683 (http://forum.mikrotik.com/viewtopic.php?f=2&t=81683)

ทางเลือกที่ 1
เช่า Certificate มาลงที่ Mikrotik ครับ แต่เสียตังค์ปีละ 1,700 ในส่วนนี้ อ่านแล้วยังงงๆอยู่ครับ ขอผ่านแล้วกัน  ;D ;D

(https://www.sysnetcenter.com/board/images/mikrotik/https-hotspot/mikrotik-https-hotspot-002.gif)


ทางเลือกที่ 2

สร้าง Certificate หลอกขึ้นมา จากที่ทดสอบ ใช้ได้กับ IE และ Firefox นะครับ ส่วน Chrome ไม่ Work  :-\ :-\

จาก Script ด้านล่าง แก้ไข IP แล้ว Copy ไป run ที่ Terminal

/certificate add name=self-signed-certificate common-name=common-name country=it days-valid=365 key-size=2048 locality=locality organization=sysnetcenter state=state trusted=yes unit=organization-unit subject-alt-name=DNS:my.local.net,IP:192.168.100.1,email:in@sysnetcenter.com key-usage=digital-signature,key-cert-sign,crl-sign;

/certificate sign self-signed-certificate ca-crl-host=192.168.100.1 name=common-name ca-on-smart-card=no



(https://www.sysnetcenter.com/board/images/mikrotik/https-hotspot/mikrotik-https-hotspot-004.gif)


Menu System --> Certificate

(https://www.sysnetcenter.com/board/images/mikrotik/https-hotspot/mikrotik-https-hotspot-005.gif)


Menu IP --> Hotspot --> Server Profile

ที่ Tab Login เลือก HTTPS
SSL Certificate เลือก common-name

(https://www.sysnetcenter.com/board/images/mikrotik/https-hotspot/mikrotik-https-hotspot-006.gif)


IP --> Service

Enable www-ssl

(https://www.sysnetcenter.com/board/images/mikrotik/https-hotspot/mikrotik-https-hotspot-007.gif)


ทีนี้ลองทดสอบครับ

Enable Hotspot Server แล้วพิมพ์ https://www.google.com (https://www.google.com)

ถ้าเป็น IE จะขึ้น Error ตามรูป แต่ Click Continue ก็สามารถเข้าหน้าจอ Login ได้

(https://www.sysnetcenter.com/board/images/mikrotik/https-hotspot/mikrotik-https-hotspot-008.gif)


เข้า Web ผ่าน Firefox จะมีให้ Click เยอะหน่อย

(https://www.sysnetcenter.com/board/images/mikrotik/https-hotspot/mikrotik-https-hotspot-009.gif)


ส่วน Google Chrome นิ่งสนิท เข้าไม่ได้ครับ  :-\

(https://www.sysnetcenter.com/board/images/mikrotik/https-hotspot/mikrotik-https-hotspot-010.gif)


ทางเลือกที่ 3

เพิ่ม Site Google ใน Wall Garden ประมาณว่าเข้า Google ได้ แต่เวลา Search แล้ว Click Link ก็จะขึ้นหน้า Login เองครับ

www.google.com (http://www.google.com)
www.google.co (http://www.google.co).??
www.google.com (http://www.google.com).??
www.google (http://www.google).??

(https://www.sysnetcenter.com/board/images/mikrotik/https-hotspot/mikrotik-https-hotspot-011.gif)


แนะนำ ใช้ทางเลือกที่ 2 กับ 3 รวมกันครับ อย่างน้อยก็จะพอแก้ไขปัญหาได้บ้างครับ  :)

Users found this pages searching for: