{"id":8330,"date":"2025-04-16T20:03:59","date_gmt":"2025-04-16T13:03:59","guid":{"rendered":"https:\/\/www.ablenet.co.th\/?p=8330"},"modified":"2025-04-16T20:04:45","modified_gmt":"2025-04-16T13:04:45","slug":"freeradius-in-debian12","status":"publish","type":"post","link":"http:\/\/www.ablenet.co.th\/en\/2025\/04\/16\/freeradius-in-debian12\/","title":{"rendered":"\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 FreeRADIUS + MariaDB \u0e1a\u0e19 Debian 12"},"content":{"rendered":"<p dir=\"ltr\" data-pm-slice=\"1 1 []\">\u0e43\u0e19\u0e42\u0e25\u0e01\u0e02\u0e2d\u0e07 Network \u0e41\u0e25\u0e30 Security RADIUS (Remote Authentication Dial-In User Service) \u0e04\u0e37\u0e2d Server \u0e15\u0e31\u0e27\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e17\u0e35\u0e48\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e2b\u0e49\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e07\u0e48\u0e32\u0e22\u0e41\u0e25\u0e30\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22 \u0e14\u0e49\u0e27\u0e22\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19 Authentication, Authorization, \u0e41\u0e25\u0e30 Accounting (AAA) \u0e17\u0e33\u0e43\u0e2b\u0e49 RADIUS server \u0e40\u0e1b\u0e47\u0e19\u0e2b\u0e31\u0e27\u0e43\u0e08\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e43\u0e19\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e27\u0e48\u0e32\u0e43\u0e04\u0e23\u0e40\u0e02\u0e49\u0e32\u0e44\u0e14\u0e49 \u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e44\u0e14\u0e49\u0e1a\u0e49\u0e32\u0e07 \u0e41\u0e25\u0e30\u0e40\u0e01\u0e47\u0e1a Logs \u0e27\u0e48\u0e32\u0e43\u0e04\u0e23\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e44\u0e1b\u0e1a\u0e49\u0e32\u0e07 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e01\u0e34\u0e14\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e41\u0e25\u0e49\u0e27 \u0e08\u0e30\u0e44\u0e14\u0e49\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07<\/p>\n<p dir=\"ltr\" data-pm-slice=\"1 1 []\">\u0e42\u0e14\u0e22\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 \u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e19\u0e33\u0e40\u0e2a\u0e19\u0e2d \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 FreeRADIUS \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 OS \u0e04\u0e37\u0e2d Debian12 (\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e43\u0e0a\u0e49 linux \u0e15\u0e31\u0e27\u0e2d\u0e37\u0e48\u0e19\u0e01\u0e47\u0e44\u0e14\u0e49\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e16\u0e49\u0e32\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e16\u0e19\u0e31\u0e14) \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01 FreeRADIUS \u0e40\u0e1b\u0e47\u0e19 open-sources \u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e1f\u0e23\u0e35 \u0e23\u0e27\u0e21\u0e16\u0e36\u0e07\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e19\u0e01\u0e31\u0e1a MariaDB \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e07\u0e48\u0e32\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23 Query \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e15\u0e48\u0e2d \u0e40\u0e0a\u0e48\u0e19 \u0e40\u0e02\u0e35\u0e22\u0e19 web management \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49 user \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e44\u0e14\u0e49\u0e07\u0e48\u0e32\u0e22\u0e02\u0e36\u0e49\u0e19 \u0e17\u0e33 report \u0e2a\u0e23\u0e38\u0e1b\u0e1c\u0e25 \u0e08\u0e32\u0e01 table \u0e02\u0e2d\u0e07 mariadb \u0e17\u0e35\u0e48\u0e2a\u0e23\u0e38\u0e1b\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22 \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e19\u0e04\u0e23\u0e31\u0e1a<\/p>\n<h3><strong>Prerequisite<\/strong><\/h3>\n<p>1.) Debian 12.10 (Bookworm)<\/p>\n<p>2.) \u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e17\u0e35\u0e48\u0e08\u0e30\u0e19\u0e33 FreeRADIUS \u0e44\u0e1b\u0e1c\u0e39\u0e01<\/p>\n<p>3.) \u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 Dependencies \u0e15\u0e48\u0e32\u0e07\u0e46 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 FreeRADIUS (\u0e08\u0e30\u0e21\u0e35\u0e1a\u0e2d\u0e01\u0e43\u0e19 Step \u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e04\u0e23\u0e31\u0e1a)<\/p>\n<h3><strong>\u0e42\u0e14\u0e22 Step \u0e08\u0e30\u0e21\u0e35\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<\/strong><\/h3>\n<p>1.) \u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17 dependencies \u0e08\u0e32\u0e01 repository \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19 version \u0e25\u0e48\u0e32\u0e2a\u0e38\u0e14<\/p>\n<p>2.) \u0e43\u0e0a\u0e49\u0e44\u0e1f\u0e25\u0e4c user \u0e40\u0e1b\u0e47\u0e19 DB \u0e40\u0e1e\u0e37\u0e48\u0e2d Authen (\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e14\u0e49 \u0e41\u0e15\u0e48\u0e44\u0e21\u0e48\u0e41\u0e19\u0e30\u0e19\u0e33)<\/p>\n<p>3.) \u0e43\u0e0a\u0e49 MariaDB \u0e40\u0e1b\u0e47\u0e19 Database \u0e41\u0e17\u0e19 \u0e44\u0e1f\u0e25\u0e4c user<\/p>\n<p>4.) \u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d FreeRADIUS \u0e40\u0e02\u0e49\u0e32\u0e01\u0e31\u0e1a MariaDB<\/p>\n<p>5.) \u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32 FreeRADIUS \u0e17\u0e33\u0e07\u0e32\u0e19\u0e1b\u0e01\u0e15\u0e34\u0e44\u0e2b\u0e21<\/p>\n<p>6.) \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 NAS Client<\/p>\n<p>&nbsp;<\/p>\n<p><strong>1.) \u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17 dependencies \u0e08\u0e32\u0e01 repository \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19 version \u0e25\u0e48\u0e32\u0e2a\u0e38\u0e14 \u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/strong><\/p>\n<blockquote><p>apt update -y &amp;&amp; apt upgrade -y<\/p><\/blockquote>\n<p>\u0e41\u0e15\u0e48\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e21\u0e35 Erorr \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01 repository \u0e17\u0e35\u0e48\u0e08\u0e30\u0e44\u0e1b\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17 \u0e08\u0e30\u0e44\u0e1b\u0e40\u0e2d\u0e32\u0e21\u0e32\u0e08\u0e32\u0e01 CD-ROM<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-8332\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-174951.png\" alt=\"\" width=\"1554\" height=\"318\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-174951.png 1554w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-174951-300x61.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-174951-1024x210.png 1024w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-174951-768x157.png 768w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-174951-1536x314.png 1536w\" sizes=\"(max-width: 1554px) 100vw, 1554px\" \/><\/p>\n<p>\u0e40\u0e23\u0e32\u0e40\u0e25\u0e22\u0e08\u0e30\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e08\u0e32\u0e01 \u0e43\u0e2b\u0e49 get repository \u0e08\u0e32\u0e01 CD-ROM \u0e40\u0e1b\u0e47\u0e19 Website \u0e02\u0e2d\u0e07 debian \u0e42\u0e14\u0e22\u0e15\u0e23\u0e07<\/p>\n<p>1.1) \u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 nano \/etc\/apt\/sources.list \u0e41\u0e25\u0e30 comment \u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e41\u0e23\u0e01\u0e17\u0e34\u0e49\u0e07 \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e40\u0e1e\u0e34\u0e48\u0e21 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49 debian \u0e44\u0e1b apt \u0e08\u0e32\u0e01 repositories \u0e08\u0e32\u0e01 debian \u0e42\u0e14\u0e22\u0e15\u0e23\u0e07 \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19 Ctrl+o &#8211;&gt; Enter &#8211;&gt; Ctrl+x<\/p>\n<blockquote><p>deb http:\/\/deb.debian.org\/debian bookworm main contrib non-free non-free-firmware<\/p>\n<p>deb http:\/\/deb.debian.org\/debian bookworm-updates main contrib non-free non-free-firmware<\/p>\n<p>deb http:\/\/deb.debian.org\/debian-security bookworm-security main contrib non-free non-free-firmware<\/p><\/blockquote>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-8333\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-180444.png\" alt=\"\" width=\"1551\" height=\"231\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-180444.png 1551w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-180444-300x45.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-180444-1024x153.png 1024w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-180444-768x114.png 768w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-180444-1536x229.png 1536w\" sizes=\"(max-width: 1551px) 100vw, 1551px\" \/><\/p>\n<blockquote><p>\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19 \u0e23\u0e31\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 apt update -y &amp;&amp; apt upgrade -y \u0e2d\u0e35\u0e01\u0e23\u0e2d\u0e1a<\/p><\/blockquote>\n<p>1.2 \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 vim \u0e40\u0e1b\u0e47\u0e19 Text Editor \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e07\u0e48\u0e32\u0e22\u0e15\u0e48\u0e2d\u0e01\u0e32\u0e23 config + \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 FreeRADIUS<\/p>\n<blockquote><p>apt install vim -y<br \/>\napt install freeradius -y<\/p><\/blockquote>\n<p>1.3 \u0e40\u0e0a\u0e47\u0e04\u0e27\u0e48\u0e32 FreeRADIUS \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 FreeRADIUS \u0e16\u0e39\u0e01\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27<\/p>\n<blockquote><p>apt list freeradius<\/p><\/blockquote>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-8343\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-185904.png\" alt=\"\" width=\"732\" height=\"80\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-185904.png 732w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-185904-300x33.png 300w\" sizes=\"(max-width: 732px) 100vw, 732px\" \/><\/p>\n<p><strong>2. \u0e43\u0e0a\u0e49\u0e44\u0e1f\u0e25\u0e4c user \u0e40\u0e1b\u0e47\u0e19 DB \u0e40\u0e1e\u0e37\u0e48\u0e2d Authen (\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e14\u0e49 \u0e41\u0e15\u0e48\u0e44\u0e21\u0e48\u0e41\u0e19\u0e30\u0e19\u0e33)<\/strong><\/p>\n<p>2.1 \u0e2a\u0e23\u0e49\u0e32\u0e07 user \u0e17\u0e35\u0e48\u0e08\u0e30\u0e43\u0e0a\u0e49 authen \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n<blockquote><p>vim etc\/freeradius\/3.0\/users<\/p><\/blockquote>\n<p>\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e1f\u0e25\u0e4c user \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19 Copy format \u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e17\u0e35\u0e48\u0e21\u0e35\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 \u0e42\u0e14\u0e22 testtest \u0e04\u0e37\u0e2d username, Cleartext-Password \u0e04\u0e37\u0e2d password \u0e41\u0e25\u0e30 reply-Message \u0e04\u0e37\u0e2d \u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e17\u0e35\u0e48\u0e08\u0e30\u0e15\u0e2d\u0e1a\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32\u0e2b\u0e32\u0e40\u0e23\u0e32 \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19 save<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8345\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-192342.png\" alt=\"\" width=\"767\" height=\"112\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-192342.png 767w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-192342-300x44.png 300w\" sizes=\"(max-width: 767px) 100vw, 767px\" \/><\/p>\n<p>2.2) \u0e2a\u0e31\u0e48\u0e07 systemctl restart freeradius \u0e40\u0e1e\u0e37\u0e48\u0e2d restart services \u0e02\u0e2d\u0e07 freeradius \u0e43\u0e2b\u0e49\u0e2d\u0e48\u0e32\u0e19\u0e44\u0e1f\u0e25\u0e4c users \u0e2d\u0e35\u0e01\u0e23\u0e2d\u0e1a<\/p>\n<p>2.3) \u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e17\u0e2a\u0e27\u0e48\u0e32 user \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16 authen \u0e44\u0e14\u0e49\u0e1b\u0e01\u0e15\u0e34\u0e44\u0e2b\u0e21 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 radtest testtest P@ssw0rd localhost 0 testing123 \u0e0b\u0e36\u0e48\u0e07 format \u0e40\u0e1b\u0e47\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49 radtest &lt;username&gt; &lt;password&gt; &lt;server&gt; &lt;port&gt; &lt;secret&gt; [options]<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8348\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-193337.png\" alt=\"\" width=\"1000\" height=\"239\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-193337.png 1000w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-193337-300x72.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-193337-768x184.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>\u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 Received Access-Accept \u0e41\u0e1b\u0e25\u0e27\u0e48\u0e32 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 user \u0e19\u0e35\u0e49 \u0e40\u0e1e\u0e37\u0e48\u0e2d Authen \u0e44\u0e14\u0e49\u0e41\u0e25\u0e49\u0e27<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>*** \u0e41\u0e15\u0e48\u0e27\u0e34\u0e18\u0e35\u0e19\u0e35\u0e49 \u0e44\u0e21\u0e48\u0e41\u0e19\u0e30\u0e19\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e22\u0e34\u0e48\u0e07 \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01 \u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e17\u0e33\u0e01\u0e32\u0e23 restart freeradius service \u0e17\u0e38\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07 \u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23 add users \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e43\u0e2b\u0e21\u0e48 \u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e01\u0e23\u0e30\u0e17\u0e1a\u0e01\u0e31\u0e1a user \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2d\u0e22\u0e39\u0e48\u0e14\u0e49\u0e27\u0e22 ***<\/strong><\/span><\/p>\n<p><strong>\u0e42\u0e14\u0e22\u0e40\u0e23\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e08\u0e32\u0e01\u0e44\u0e1f\u0e25\u0e4c user \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 text-based DB \u0e40\u0e1b\u0e47\u0e19 MariaDB \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e01\u0e47\u0e1a username password \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23 Authen \u0e23\u0e27\u0e21\u0e16\u0e36\u0e07 log \u0e15\u0e48\u0e32\u0e07\u0e46\u0e14\u0e49\u0e27\u0e22 (Accounting)<\/strong><\/p>\n<p><strong>3. \u0e43\u0e0a\u0e49 MariaDB \u0e40\u0e1b\u0e47\u0e19 Database \u0e41\u0e17\u0e19 \u0e44\u0e1f\u0e25\u0e4c user<\/strong><\/p>\n<p style=\"text-align: left;\">3.1 \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 mariaDB package \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n<blockquote><p>apt install mariadb-server -y<\/p>\n<p>sudo apt install freeradius-mysql -y<\/p><\/blockquote>\n<p>3.2 \u0e40\u0e0a\u0e47\u0e04\u0e2a\u0e16\u0e32\u0e19\u0e30 mariaDB \u0e27\u0e48\u0e32\u0e17\u0e33\u0e07\u0e32\u0e19\u0e1b\u0e01\u0e15\u0e34\u0e44\u0e2b\u0e21 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 systemctl status mariadb \u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 \u0e2a\u0e16\u0e32\u0e19\u0e30\u0e40\u0e1b\u0e47\u0e19 Active \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e17\u0e33\u0e07\u0e32\u0e19<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8355\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-220550.png\" alt=\"\" width=\"1546\" height=\"604\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-220550.png 1546w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-220550-300x117.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-220550-1024x400.png 1024w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-220550-768x300.png 768w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-220550-1536x600.png 1536w\" sizes=\"(max-width: 1546px) 100vw, 1546px\" \/><\/p>\n<p>3.2 \u0e40\u0e02\u0e49\u0e32\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 MariaDB \u0e42\u0e14\u0e22\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 mysql -u root -p \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35\u0e43\u0e2b\u0e49\u0e43\u0e2a\u0e48 password \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e14 enter \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e02\u0e49\u0e32\u0e21\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01 default credential \u0e08\u0e30\u0e44\u0e21\u0e48\u0e21\u0e35 password \u0e04\u0e23\u0e31\u0e1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8356\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-224259.png\" alt=\"\" width=\"965\" height=\"289\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-224259.png 965w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-224259-300x90.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-224259-768x230.png 768w\" sizes=\"(max-width: 965px) 100vw, 965px\" \/><\/p>\n<p>3.3 \u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e0a\u0e37\u0e48\u0e2d radius (\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e15\u0e31\u0e49\u0e07\u0e0a\u0e37\u0e48\u0e2d\u0e2d\u0e37\u0e48\u0e19\u0e01\u0e47\u0e44\u0e14\u0e49\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a) \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 create database radius character set utf8; \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e40\u0e1c\u0e37\u0e48\u0e2d\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e02\u0e35\u0e22\u0e19 PHP \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01 DB) \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e40\u0e0a\u0e47\u0e04\u0e27\u0e48\u0e32 \u0e21\u0e35\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e17\u0e35\u0e48\u0e0a\u0e37\u0e48\u0e2d radius \u0e41\u0e25\u0e49\u0e27\u0e2b\u0e23\u0e37\u0e2d\u0e22\u0e31\u0e07 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 show databases; \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 \u0e21\u0e35 database \u0e0a\u0e37\u0e48\u0e2d radius \u0e21\u0e32\u0e41\u0e25\u0e49\u0e27<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8358 alignnone\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-225649.png\" alt=\"\" width=\"757\" height=\"357\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-225649.png 757w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-06-225649-300x141.png 300w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/p>\n<p>3.4 Import Table schema \u0e42\u0e14\u0e22\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e44\u0e1b\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e2d\u0e07 \u0e15\u0e31\u0e27 freeradius \u0e21\u0e35\u0e43\u0e2b\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 mysql -u root -p radius &lt; \/etc\/freeradius\/3.0\/mods-config\/sql\/main\/mysql\/schema.sql \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e25\u0e2d\u0e07\u0e40\u0e0a\u0e47\u0e04\u0e27\u0e48\u0e32 Table \u0e44\u0e14\u0e49\u0e16\u0e39\u0e01 import \u0e21\u0e32\u0e08\u0e23\u0e34\u0e07\u0e44\u0e2b\u0e21 \u0e42\u0e14\u0e22\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48 radius database \u0e41\u0e25\u0e49\u0e27 show tables; \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 \u0e21\u0e35 table \u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8359\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-000724.png\" alt=\"\" width=\"1269\" height=\"849\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-000724.png 1269w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-000724-300x201.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-000724-1024x685.png 1024w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-000724-768x514.png 768w\" sizes=\"(max-width: 1269px) 100vw, 1269px\" \/><\/p>\n<p>3.5 \u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e1f\u0e25\u0e4c setup.sql \u0e43\u0e2b\u0e49\u0e21\u0e35 user\/password \u0e17\u0e35\u0e48\u0e08\u0e30\u0e40\u0e02\u0e49\u0e32 database \u0e17\u0e35\u0e48\u0e0a\u0e37\u0e48\u0e2d radius \u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e37\u0e48\u0e2d\u0e2d\u0e37\u0e48\u0e19 \u0e42\u0e14\u0e22 default \u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19 radius\/radpass \u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 database \u0e44\u0e14\u0e49\u0e08\u0e32\u0e01 localhost \u0e19\u0e35\u0e49\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 (ip \u0e19\u0e35\u0e49\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19) \u0e42\u0e14\u0e22\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n<blockquote><p>vim \/etc\/freeradius\/3.0\/mods-config\/sql\/main\/mysql\/setup.sql<\/p><\/blockquote>\n<p>\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e43\u0e2b\u0e49 comment \u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e2d\u0e07\u0e40\u0e14\u0e34\u0e21 \u0e41\u0e25\u0e49\u0e27\u0e2a\u0e23\u0e49\u0e32\u0e07 username\/password \u0e43\u0e2b\u0e21\u0e48 \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e01\u0e33\u0e2b\u0e19\u0e14 permission \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8361 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-005526.png\" alt=\"\" width=\"945\" height=\"818\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-005526.png 945w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-005526-300x260.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-005526-768x665.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8362\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-005602.png\" alt=\"\" width=\"910\" height=\"91\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-005602.png 910w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-005602-300x30.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-005602-768x77.png 768w\" sizes=\"(max-width: 910px) 100vw, 910px\" \/><\/p>\n<p>3.6 Import \u0e44\u0e1f\u0e25\u0e4c setup.sql \u0e21\u0e32\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48 radius database \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 mysql -u root -p radius &lt; \/etc\/freeradius\/3.0\/mods-config\/sql\/main\/mysql\/setup.sql<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8363\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012358.png\" alt=\"\" width=\"1239\" height=\"80\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012358.png 1239w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012358-300x19.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012358-1024x66.png 1024w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012358-768x50.png 768w\" sizes=\"(max-width: 1239px) 100vw, 1239px\" \/><\/p>\n<p>3.7 \u0e40\u0e0a\u0e47\u0e04\u0e27\u0e48\u0e32 \u0e21\u0e35 user cisco \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e44\u0e27\u0e49\u0e44\u0e2b\u0e21 \u0e42\u0e14\u0e22\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48 database radius \u0e41\u0e25\u0e49\u0e27\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 SELECT User, Host FROM mysql.user; \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 \u0e21\u0e35 user cisco \u0e2a\u0e23\u0e49\u0e32\u0e07\u0e44\u0e27\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27 (user radius \u0e40\u0e1b\u0e47\u0e19 default \u0e15\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e2a\u0e23\u0e49\u0e32\u0e07\u0e21\u0e32\u0e44\u0e27\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e25\u0e1a\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e16\u0e49\u0e32\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e43\u0e0a\u0e49)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8364 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012527.png\" alt=\"\" width=\"635\" height=\"288\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012527.png 635w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012527-300x136.png 300w\" sizes=\"(max-width: 635px) 100vw, 635px\" \/><\/p>\n<p>3.8 Import \u0e44\u0e1f\u0e25\u0e4c process-radacct.sql (\u0e40\u0e1b\u0e47\u0e19 table \u0e44\u0e27\u0e49\u0e14\u0e39 summary bandwidth \u0e41\u0e25\u0e30\u0e40\u0e27\u0e25\u0e32 login\/logout \u0e02\u0e2d\u0e07 users) \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 mysql -u root -p radius &lt; \/etc\/freeradius\/3.0\/mods-config\/sql\/main\/mysql\/process-radacct.sql \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e40\u0e0a\u0e47\u0e04\u0e04\u0e27\u0e32\u0e21\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e42\u0e14\u0e22\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48 database radius \u0e41\u0e25\u0e49\u0e27 show tables; \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19 tables \u0e17\u0e35\u0e48\u0e0a\u0e37\u0e48\u0e2d data_usage_by_period<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8365 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012657.png\" alt=\"\" width=\"1377\" height=\"784\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012657.png 1377w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012657-300x171.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012657-1024x583.png 1024w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-012657-768x437.png 768w\" sizes=\"(max-width: 1377px) 100vw, 1377px\" \/><\/p>\n<p><strong>4. \u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d FreeRADIUS \u0e40\u0e02\u0e49\u0e32\u0e01\u0e31\u0e1a MariaDB<\/strong><\/p>\n<p>\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01\u0e42\u0e14\u0e22\u0e04\u0e48\u0e32 default freeradius \u0e08\u0e30\u0e14\u0e36\u0e07 user \u0e21\u0e32\u0e08\u0e32\u0e01 \u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 user \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19 \u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e22\u0e49\u0e32\u0e22\u0e43\u0e2b\u0e49 Freeradius \u0e0a\u0e35\u0e49\u0e44\u0e1b\u0e17\u0e35\u0e48 mariadb \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e17\u0e33\u0e44\u0e27\u0e49<\/p>\n<p>4.1 ) \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e1f\u0e25\u0e4c \u0e43\u0e2b\u0e49\u0e0a\u0e35\u0e49 db \u0e44\u0e1b\u0e17\u0e35\u0e48 mariadb \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n<blockquote><p>vim \/etc\/freeradius\/3.0\/mods-available\/sql<\/p><\/blockquote>\n<p>4.1.1) \u0e41\u0e01\u0e49\u0e44\u0e02\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e17\u0e35\u0e48 40 \u0e40\u0e1b\u0e47\u0e19 dialect = mysql \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 mysql<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8367 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-022546.png\" alt=\"\" width=\"630\" height=\"398\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-022546.png 630w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-022546-300x190.png 300w\" sizes=\"(max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>4.1.2) \u0e25\u0e1a comment \u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e17\u0e35\u0e48 61 \u0e2d\u0e2d\u0e01 \u0e41\u0e25\u0e49\u0e27\u0e44\u0e1b comment \u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e17\u0e35\u0e48 60 \u0e41\u0e17\u0e19 \u0e0a\u0e35\u0e49\u0e44\u0e1b\u0e17\u0e35\u0e48 mysql \u0e02\u0e49\u0e2d 4.1.1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8368 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-022720.png\" alt=\"\" width=\"526\" height=\"70\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-022720.png 526w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-022720-300x40.png 300w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/p>\n<p>4.1.3) \u0e1b\u0e34\u0e14 TLS Certificate Check \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01\u0e40\u0e23\u0e32\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e21\u0e35 Cert (\u0e2b\u0e32\u0e01\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e21\u0e35 cert \u0e41\u0e25\u0e49\u0e27 \u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e04\u0e23\u0e31\u0e1a) \u0e2b\u0e32\u0e01\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e43\u0e0a\u0e49 db \u0e15\u0e31\u0e27\u0e2d\u0e37\u0e48\u0e19\u0e46 \u0e01\u0e47\u0e44\u0e1b\u0e1b\u0e34\u0e14 TLS \u0e15\u0e23\u0e07 db \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e44\u0e14\u0e49\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e02\u0e2d\u0e07\u0e1c\u0e21\u0e43\u0e0a\u0e49 mariadb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8369 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023508.png\" alt=\"\" width=\"1107\" height=\"476\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023508.png 1107w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023508-300x129.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023508-1024x440.png 1024w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023508-768x330.png 768w\" sizes=\"(max-width: 1107px) 100vw, 1107px\" \/><\/p>\n<p>4.1.4) \u0e41\u0e01\u0e49\u0e44\u0e02 connection info \u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d db \u0e01\u0e31\u0e1a freeradius \u0e42\u0e14\u0e22\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 username\/password \u0e40\u0e1b\u0e47\u0e19 username\/password \u0e17\u0e35\u0e48\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e44\u0e27\u0e49\u0e15\u0e2d\u0e19\u0e02\u0e49\u0e2d 2 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e41\u0e17\u0e19 default \u0e04\u0e23\u0e31\u0e1a (\u0e41\u0e15\u0e48\u0e2b\u0e32\u0e01\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e41\u0e01\u0e49\u0e44\u0e02 \u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49 default password \u0e40\u0e14\u0e34\u0e21\u0e44\u0e14\u0e49\u0e04\u0e23\u0e31\u0e1a)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8370 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023556.png\" alt=\"\" width=\"488\" height=\"168\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023556.png 488w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023556-300x103.png 300w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/><\/p>\n<p>4.1.5) \u0e2b\u0e32\u0e01\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46 \u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e43\u0e0a\u0e49\u0e0a\u0e37\u0e48\u0e2d db \u0e27\u0e48\u0e32 radius \u0e01\u0e47\u0e43\u0e2b\u0e49\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46 \u0e21\u0e32\u0e41\u0e01\u0e49\u0e44\u0e02\u0e0a\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e15\u0e23\u0e07\u0e01\u0e31\u0e19\u0e01\u0e31\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a (\u0e41\u0e15\u0e48\u0e41\u0e19\u0e30\u0e19\u0e33\u0e27\u0e48\u0e32 \u0e15\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e37\u0e48\u0e2d radius \u0e14\u0e35\u0e01\u0e27\u0e48\u0e32\u0e04\u0e23\u0e31\u0e1a \u0e08\u0e30\u0e44\u0e14\u0e49\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e41\u0e01\u0e49\u0e44\u0e02\u0e2d\u0e30\u0e44\u0e23\u0e40\u0e22\u0e2d\u0e30)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8371 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023925.png\" alt=\"\" width=\"938\" height=\"63\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023925.png 938w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023925-300x20.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-023925-768x52.png 768w\" sizes=\"(max-width: 938px) 100vw, 938px\" \/><\/p>\n<p>4.2) \u0e2a\u0e23\u0e49\u0e32\u0e07 softlink driver (shortcut) \u0e08\u0e32\u0e01 mods-avaliable &#8211;&gt; mods-enabled \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e1f\u0e25\u0e4c sql<\/p>\n<blockquote><p>ln -s \/etc\/freeradius\/3.0\/mods-available\/sql \/etc\/freeradius\/3.0\/mods-enabled\/<\/p><\/blockquote>\n<p>\u0e40\u0e0a\u0e47\u0e04\u0e14\u0e39\u0e27\u0e48\u0e32\u0e44\u0e1f\u0e25\u0e4c\u0e21\u0e32\u0e41\u0e25\u0e49\u0e27\u0e22\u0e31\u0e07 \u0e42\u0e14\u0e22\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48 mods-enabled \u0e41\u0e25\u0e49\u0e27 ls -l \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32\u0e21\u0e35\u0e44\u0e1f\u0e25\u0e4c sql \u0e21\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19 mods-enabled \u0e41\u0e25\u0e49\u0e27<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8372\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-024909.png\" alt=\"\" width=\"1134\" height=\"757\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-024909.png 1134w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-024909-300x200.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-024909-1024x684.png 1024w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-024909-768x513.png 768w\" sizes=\"(max-width: 1134px) 100vw, 1134px\" \/><\/p>\n<p>* \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01\u0e1c\u0e21\u0e44\u0e14\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 owner \u0e40\u0e1b\u0e47\u0e19 root \u0e15\u0e31\u0e49\u0e07\u0e41\u0e15\u0e48\u0e41\u0e23\u0e01\u0e43\u0e19 folder freeradius \u0e17\u0e33\u0e43\u0e2b\u0e49 owner \u0e17\u0e35\u0e48\u0e40\u0e2b\u0e47\u0e19\u0e43\u0e19\u0e44\u0e1f\u0e25\u0e4c\u0e2d\u0e37\u0e48\u0e19\u0e46 \u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19 root \u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46 \u0e08\u0e30\u0e02\u0e36\u0e49\u0e19\u0e40\u0e1b\u0e47\u0e19 freerad \u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e41\u0e15\u0e48\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e17\u0e33 softlink \u0e21\u0e32 \u0e21\u0e31\u0e19\u0e08\u0e30\u0e21\u0e35 owner \u0e40\u0e1b\u0e47\u0e19 root \u0e04\u0e23\u0e31\u0e1a \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e4c root \u0e43\u0e19\u0e01\u0e32\u0e23 execute command \u0e41\u0e25\u0e49\u0e27\u0e40\u0e27\u0e25\u0e32 start service \u0e21\u0e31\u0e19\u0e08\u0e30\u0e44\u0e21\u0e48\u0e1c\u0e48\u0e32\u0e19\u0e04\u0e23\u0e31\u0e1a \u0e15\u0e49\u0e2d\u0e07\u0e41\u0e01\u0e49 owner \u0e44\u0e1b\u0e40\u0e1b\u0e47\u0e19 freerad \u0e01\u0e48\u0e2d\u0e19\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n<blockquote><p>chown -R freerad:freerad sql<\/p>\n<p>chmod 755 sql (\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e19\u0e35\u0e49\u0e17\u0e33\u0e44\u0e27\u0e49\u0e40\u0e1c\u0e37\u0e48\u0e2d\u0e46\u0e04\u0e23\u0e31\u0e1a)<\/p><\/blockquote>\n<p>4.3) \u0e17\u0e14\u0e2a\u0e2d\u0e1a config \u0e02\u0e2d\u0e07 freeradius \u0e27\u0e48\u0e32\u0e40\u0e23\u0e32\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d DB \u0e01\u0e31\u0e1a freeradius \u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e41\u0e25\u0e49\u0e27\u0e2b\u0e23\u0e37\u0e2d\u0e22\u0e31\u0e07 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n<blockquote><p>\/usr\/sbin\/freeradius -XC<\/p><\/blockquote>\n<p>\u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e27\u0e48\u0e32 Configuration appears to be OK \u0e41\u0e2a\u0e14\u0e07\u0e27\u0e48\u0e32 \u0e40\u0e23\u0e32 config \u0e44\u0e27\u0e49\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e41\u0e25\u0e49\u0e27<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8374 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-031817.png\" alt=\"\" width=\"604\" height=\"938\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-031817.png 604w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-07-031817-193x300.png 193w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><\/p>\n<p><strong>5.) \u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32 freeradius \u0e17\u0e33\u0e07\u0e32\u0e19\u0e1b\u0e01\u0e15\u0e34\u0e44\u0e2b\u0e21<\/strong><\/p>\n<p>5.1) \u0e42\u0e14\u0e22\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48 database radius \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 INSERT INTO radcheck (username, attribute, op, value)VALUES (&#8216;napat&#8217;, &#8216;Cleartext-Password&#8217;, &#8216;:=&#8217;, &#8216;P@ssw0rd123&#8217;); \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 username \u0e41\u0e25\u0e30 password \u0e44\u0e14\u0e49 \u0e43\u0e19\u0e0a\u0e48\u0e2d\u0e07\u0e02\u0e2d\u0e07 username, value \u0e2a\u0e48\u0e27\u0e19\u0e04\u0e48\u0e32\u0e2d\u0e37\u0e48\u0e19\u0e46 \u0e43\u0e2b\u0e49\u0e04\u0e07\u0e44\u0e27\u0e49\u0e15\u0e32\u0e21 format \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19 \u0e43\u0e2b\u0e49\u0e40\u0e0a\u0e47\u0e04\u0e27\u0e48\u0e32 user \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e21\u0e32 \u0e44\u0e14\u0e49\u0e16\u0e39\u0e01 add \u0e43\u0e19 database radius \u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 SELECT id, username, attribute, op, value FROM radcheck; \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 \u0e21\u0e35 user \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e44\u0e27\u0e49 \u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27<\/p>\n<p>* \u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 username \u0e41\u0e25\u0e30 password \u0e43\u0e19\u0e17\u0e48\u0e32\u0e1b\u0e01\u0e15\u0e34 \u0e08\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e43\u0e19 table radcheck \u0e02\u0e2d\u0e07 database radius \u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8379\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-15-222525.png\" alt=\"\" width=\"986\" height=\"183\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-15-222525.png 986w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-15-222525-300x56.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-15-222525-768x143.png 768w\" sizes=\"(max-width: 986px) 100vw, 986px\" \/><\/p>\n<p>5.2) \u0e17\u0e14\u0e25\u0e2d\u0e07 Debug \u0e42\u0e14\u0e22\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23 stop services \u0e02\u0e2d\u0e07 freeradius \u0e40\u0e2a\u0e35\u0e22\u0e01\u0e48\u0e2d\u0e19 \u0e01\u0e48\u0e2d\u0e19\u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23 debug \u0e42\u0e14\u0e22\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 systemctl stop freeradius \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e43\u0e2b\u0e49\u0e40\u0e0a\u0e47\u0e04\u0e2a\u0e16\u0e32\u0e19\u0e30 \u0e27\u0e48\u0e32 freeradius \u0e01\u0e25\u0e32\u0e22\u0e40\u0e1b\u0e47\u0e19 inactive \u0e41\u0e25\u0e49\u0e27\u0e2b\u0e23\u0e37\u0e2d\u0e22\u0e31\u0e07 \u0e42\u0e14\u0e22\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 systemctl status freeradius \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 status \u0e01\u0e25\u0e32\u0e22\u0e40\u0e1b\u0e47\u0e19 inactive \u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8380\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-15-223058.png\" alt=\"\" width=\"1451\" height=\"627\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-15-223058.png 1451w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-15-223058-300x130.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-15-223058-1024x442.png 1024w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-15-223058-768x332.png 768w\" sizes=\"(max-width: 1451px) 100vw, 1451px\" \/><\/p>\n<p>\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 \/usr\/sbin\/freeradius -X \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e1b\u0e34\u0e14 debug mode \u0e02\u0e2d\u0e07 freeradius \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e40\u0e1b\u0e34\u0e14\u0e2d\u0e35\u0e01 1 terminal \u0e41\u0e25\u0e49\u0e27 ssh \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48 debain \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 radtest napat P@ssw0rd123 localhost 0 testing123 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e17\u0e2a\u0e27\u0e48\u0e32 user \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16 login \u0e44\u0e14\u0e49\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08\u0e44\u0e2b\u0e21 \u0e0b\u0e36\u0e48\u0e07\u0e16\u0e49\u0e32\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07 \u0e08\u0e30\u0e02\u0e36\u0e49\u0e19\u0e2a\u0e16\u0e32\u0e19\u0e30 Received Access-Accept \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8404\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-16-132318.png\" alt=\"\" width=\"1162\" height=\"294\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-16-132318.png 1162w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-16-132318-300x76.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-16-132318-1024x259.png 1024w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-16-132318-768x194.png 768w\" sizes=\"(max-width: 1162px) 100vw, 1162px\" \/><\/p>\n<p><strong>6.) \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 NAS Client<\/strong><\/p>\n<p>6.1) \u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e1f\u0e25\u0e4c client.conf \u0e40\u0e1e\u0e37\u0e48\u0e2d allow \u0e43\u0e2b\u0e49 NAS Client \u0e1c\u0e39\u0e01\u0e01\u0e31\u0e1a freeradius \u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 vim \/etc\/freeradius\/3.0\/clients.conf \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e43\u0e2b\u0e49\u0e40\u0e1e\u0e34\u0e48\u0e21 \u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e17\u0e35\u0e48 251-254 \u0e2b\u0e23\u0e37\u0e2d\u0e08\u0e30\u0e41\u0e01\u0e49\u0e44\u0e02\u0e08\u0e32\u0e01 \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e17\u0e35\u0e48\u0e21\u0e35\u0e43\u0e2b\u0e49\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22 attribute ipaddr \u0e04\u0e37\u0e2d \u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e17\u0e35\u0e48\u0e08\u0e30\u0e1c\u0e39\u0e01 freeradius \u0e41\u0e25\u0e30 secret \u0e04\u0e37\u0e2d secret \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e04\u0e38\u0e22\u0e01\u0e31\u0e19<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8405 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-16-135348.png\" alt=\"\" width=\"682\" height=\"363\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-16-135348.png 682w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2025\/04\/Screenshot-2025-04-16-135348-300x160.png 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/p>\n<p>6.2) stop service freeradius \u0e41\u0e25\u0e30 \u0e40\u0e1b\u0e34\u0e14 debug mode \u0e17\u0e34\u0e49\u0e07\u0e44\u0e27\u0e49 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 \/usr\/sbin\/freeradius -X<\/p>\n<p>6.3) \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46 \u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33 \u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e02\u0e2d\u0e07\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46 \u0e44\u0e1b\u0e1c\u0e39\u0e01\u0e01\u0e31\u0e1a FreeRADIUS \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 Secret Key \u0e17\u0e35\u0e48\u0e15\u0e31\u0e49\u0e07\u0e44\u0e27\u0e49<\/p>\n<p>&nbsp;<\/p>\n<p>\u0e01\u0e47\u0e08\u0e1a\u0e01\u0e31\u0e19\u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21 \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 FreeRADIUS + MariaDB \u0e1a\u0e19 Debian 12 \u0e42\u0e14\u0e22\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07 mariadb \u0e43\u0e2b\u0e49\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e01\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 CLI \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 phpmyadmin \u0e2b\u0e23\u0e37\u0e2d\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 mySQL Client \u0e2d\u0e37\u0e48\u0e19\u0e46 \u0e17\u0e35\u0e48\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e16\u0e19\u0e31\u0e14 \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e41\u0e15\u0e48\u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 \u0e08\u0e30\u0e21\u0e32\u0e17\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e09\u0e1a\u0e31\u0e1a CLI \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e40\u0e2b\u0e47\u0e19\u0e20\u0e32\u0e1e\u0e23\u0e27\u0e21\u0e27\u0e48\u0e32\u0e21\u0e35\u0e01\u0e35\u0e48 Step \u0e41\u0e25\u0e49\u0e27\u0e15\u0e49\u0e2d\u0e07\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e1a\u0e49\u0e32\u0e07 Table \u0e41\u0e15\u0e48\u0e25\u0e30\u0e15\u0e31\u0e27 \u0e43\u0e0a\u0e49\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e1a\u0e49\u0e32\u0e07 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46 \u0e40\u0e02\u0e49\u0e32\u0e43\u0e08\u0e2b\u0e25\u0e31\u0e01\u0e01\u0e32\u0e23\u0e02\u0e2d\u0e07 FreeRADIUS \u0e01\u0e31\u0e19\u0e01\u0e48\u0e2d\u0e19\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e08\u0e23\u0e34\u0e07\u0e46\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e08\u0e49\u0e32\u0e15\u0e31\u0e27 FreeRADIUS \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e44\u0e14\u0e49\u0e2b\u0e25\u0e32\u0e22\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e25\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e40\u0e0a\u0e48\u0e19 mac-auth, eduroam \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e28\u0e36\u0e01\u0e29\u0e32\u0e01\u0e31\u0e19\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 <a href=\"https:\/\/wiki.freeradius.org\/guide\/HOWTO\">https:\/\/wiki.freeradius.org\/guide\/HOWTO<\/a> \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p>Ref : <a href=\"https:\/\/draculaservers.com\/tutorials\/freeradius-centos-7-mysql\/\">https:\/\/draculaservers.com\/tutorials\/freeradius-centos-7-mysql\/<\/a><\/p>\n<p><a href=\"https:\/\/networkradius.com\/doc\/FreeRADIUS%20Technical%20Guide.pdf\">https:\/\/networkradius.com\/doc\/FreeRADIUS%20Technical%20Guide.pdf<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e43\u0e19\u0e42\u0e25\u0e01\u0e02\u0e2d\u0e07 Network \u0e41\u0e25\u0e30 Security RADIUS (Remote Authentication Dial-In User Service) \u0e04\u0e37\u0e2d Server \u0e15\u0e31\u0e27\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e17\u0e35\u0e48\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e2b\u0e49\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e07\u0e48\u0e32\u0e22\u0e41\u0e25\u0e30\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22 \u0e14\u0e49\u0e27\u0e22\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19 Authentication, Authorization, \u0e41\u0e25\u0e30 Accounting (AAA) \u0e17\u0e33\u0e43\u0e2b\u0e49 RADIUS server \u0e40\u0e1b\u0e47\u0e19\u0e2b\u0e31\u0e27\u0e43\u0e08\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e43\u0e19\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e27\u0e48\u0e32\u0e43\u0e04\u0e23\u0e40\u0e02\u0e49\u0e32\u0e44\u0e14\u0e49 \u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e44\u0e14\u0e49\u0e1a\u0e49\u0e32\u0e07 \u0e41\u0e25\u0e30\u0e40\u0e01\u0e47\u0e1a Logs \u0e27\u0e48\u0e32\u0e43\u0e04\u0e23\u0e17\u0e33\u0e2d\u0e30\u0e44\u0e23\u0e44\u0e1b\u0e1a\u0e49\u0e32\u0e07 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e01\u0e34\u0e14\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e41\u0e25\u0e49\u0e27 \u0e08\u0e30\u0e44\u0e14\u0e49\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07 \u0e42\u0e14\u0e22\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 \u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e19\u0e33\u0e40\u0e2a\u0e19\u0e2d \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 FreeRADIUS \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 OS \u0e04\u0e37\u0e2d Debian12 (\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e43\u0e0a\u0e49 linux \u0e15\u0e31\u0e27\u0e2d\u0e37\u0e48\u0e19\u0e01\u0e47\u0e44\u0e14\u0e49\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e16\u0e49\u0e32\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e16\u0e19\u0e31\u0e14) \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01 FreeRADIUS \u0e40\u0e1b\u0e47\u0e19 open-sources \u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e1f\u0e23\u0e35 \u0e23\u0e27\u0e21\u0e16\u0e36\u0e07\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e19\u0e01\u0e31\u0e1a MariaDB \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e07\u0e48\u0e32\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23 Query \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e15\u0e48\u0e2d \u0e40\u0e0a\u0e48\u0e19 \u0e40\u0e02\u0e35\u0e22\u0e19 web [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":8408,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[678,677,238],"class_list":["post-8330","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-article","tag-debian12","tag-freeradius","tag-linux"],"_links":{"self":[{"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/8330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/comments?post=8330"}],"version-history":[{"count":27,"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/8330\/revisions"}],"predecessor-version":[{"id":8410,"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/8330\/revisions\/8410"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/media\/8408"}],"wp:attachment":[{"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/media?parent=8330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/categories?post=8330"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/tags?post=8330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}