{"id":1880,"date":"2017-04-21T19:27:11","date_gmt":"2017-04-21T12:27:11","guid":{"rendered":"https:\/\/engisv.info\/?p=1880"},"modified":"2017-04-21T19:27:11","modified_gmt":"2017-04-21T12:27:11","slug":"pfsense-firewall-captive-portal-chung-thuc-voucher","status":"publish","type":"post","link":"https:\/\/www.engisv.info\/?p=1880","title":{"rendered":"Pfsense Firewall &#8211; Captive Portal ch\u1ee9ng th\u1ef1c Voucher"},"content":{"rendered":"<p>Captive portal tr\u00ean Pfsense ngo\u00e0i <a href=\"https:\/\/www.engisv.info\/?p=144\" target=\"_blank\" rel=\"noopener noreferrer\">ch\u1ee9ng th\u1ef1c b\u1eb1ng \u00a0local user, RADIUS<\/a> v\u00e0 <a href=\"https:\/\/www.engisv.info\/?p=1846\" target=\"_blank\" rel=\"noopener noreferrer\">freeRADIUS<\/a> ra, n\u00f3 c\u00f2n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng h\u00ecnh th\u1ee9c ch\u1ee9ng th\u1ef1c Voucher. Voucher l\u00e0 m\u1ed9t h\u00ecnh th\u1ee9c ch\u1ee9ng th\u1ef1c kh\u00e1 \u0111\u1eb7t bi\u1ec7t, ch\u00fang ta c\u00f3 th\u1ec3 hi\u1ec3u n\u00f3 nh\u01b0 l\u00e0 m\u1ed9t m\u00e3 tr\u1ea3 tr\u01b0\u1edbc c\u1ee7a \u0111i\u1ec7n tho\u1ea1i. Khi ng\u01b0\u1eddi d\u00f9ng k\u00edch ho\u1ea1t m\u00e3 voucher th\u1eddi gian s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c quy \u0111\u1ecbnh trong voucher s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ebfm l\u00f9i cho \u0111\u1ebfn khi h\u1ea1n d\u00f9ng kh\u00f4ng c\u00f2n n\u1eefa. \u1ede m\u1ed9t m\u00f4i tr\u01b0\u1eddng m\u00e0 m\u1ea1ng Wifi c\u00f3 th\u1ec3 tho\u1ea3i m\u00e1i nh\u01b0 \u1edf Vi\u1ec7t Nam th\u00ec b\u1ea1n c\u00f3 th\u1ec3 \u00edt th\u1ea5y ng\u01b0\u1eddi ta s\u1eed d\u1ee5ng ph\u01b0\u01a1ng ph\u00e1p n\u00e0y, xong m\u1ed9t s\u1ed1 n\u01b0\u1edbc, khi b\u1ea1n mu\u1ed1n s\u1eed d\u1ee5ng Wifi trong kh\u00e1ch s\u1ea1n th\u00ec b\u1ea1n s\u1ebd ph\u1ea3i tr\u1ea3 m\u1ed9t kho\u1ea3n ph\u00ed v\u00e0 \u0111\u01b0\u1ee3c cung c\u1ea5p m\u00e3 \u0111\u0103ng nh\u1eadp. Ph\u01b0\u01a1ng ph\u00e1p n\u00e0y c\u0169ng c\u00f3 th\u1ec3 \u00e1p d\u1ee5ng cho cho m\u1ed9t s\u1ed1 d\u1ecbch v\u1ee5 Wifi c\u00f4ng c\u1ed9ng c\u1ee7a qu\u1ed1c gia ho\u1eb7c c\u00e1c th\u00e0nh ph\u1ed1.<\/p>\n<p>Tr\u00ean Pfsense c\u0169ng cung c\u1ea5p cho ch\u00fang ta gi\u1ea3i ph\u00e1i ch\u1ee9ng th\u1ef1c Captive Portal th\u00f4ng qua voucher:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1882 \" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-18.png\" alt=\"\" width=\"327\" height=\"387\" \/><\/p>\n<p>B\u1ea1n b\u1eadt d\u1ecbch v\u1ee5 Captive Portal c\u1ee7a Pfsense<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1884 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-1.png\" alt=\"\" width=\"636\" height=\"208\" \/><\/p>\n<p>Ch\u1ec9 cho ph\u00e9p m\u1ed7i m\u00e3 \u0111\u01b0\u1ee3c d\u00f9ng cho m\u1ed9t thi\u1ebft b\u1ecb.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1885 size-full\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-2.png\" alt=\"\" width=\"526\" height=\"87\" \/><\/p>\n<p>Trong m\u1ee5c\u00a0<strong>Authentication &gt; Authentication method <\/strong>b\u1ea1n ch\u1ecdn ch\u1ee9ng th\u1ef1c b\u1eb1ng\u00a0<strong>Local User Manager \/ Vouchers<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1889 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-19.png\" alt=\"\" width=\"671\" height=\"111\" \/><\/p>\n<p>Khi b\u1eadt Voucher l\u00ean, giao di\u1ec7n ch\u1ee9ng th\u1ef1c m\u1eb7c \u0111\u1ecbnh s\u1ebd xu\u1ea5t hi\u1ec7n th\u00eam d\u00f2ng <strong>Enter Voucher Code<\/strong> b\u00ean c\u1ea1nh ch\u1ee9ng th\u1ef1c b\u1eb1ng user.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1886 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-14.png\" alt=\"\" width=\"437\" height=\"301\" \/><\/p>\n<p>V\u1edbi hai th\u00f4ng tin ch\u1ee9ng th\u1ef1c user v\u00e0 coucher, ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 ch\u1ecdn m\u1ed9t trong hai \u0111\u1ec3 s\u1eed d\u1ee5ng internet. Nh\u01b0 v\u1eady \u0111\u1ec3 kh\u00f4ng\u00a0l\u00e0m cho ng\u01b0\u1eddi d\u00f9ng g\u1eb7p r\u1eafc r\u1ed1i, c\u1ea3m th\u1ea5y \u0111\u01a1n gi\u1ea3n khi s\u1eed d\u1ee5ng. B\u1ea1n c\u00f3 th\u1ec3 thay giao di\u1ec7n \u0111\u0103ng nh\u1eadp kh\u00e1c v\u1edbi ch\u1ec9 vi\u1ec7c\u00a0Enter Voucher Code.\u00a0Trong tab <strong>Configuration<\/strong> c\u1ee7a Captive Portal b\u1ea1n k\u00e9o xu\u1ed1ng m\u1ee5c\u00a0<strong>HTML Page Contents<\/strong> \u0111\u1ec3 thay th\u1ebf giao di\u1ec7n (<a href=\"https:\/\/www.mediafire.com\/folder\/5d27s3wtdge27\/formlogin_voucher\" target=\"_blank\" rel=\"noopener noreferrer\">b\u1ea1n c\u00f3 th\u1ec3 t\u1ea3i v\u1ec1 t\u1ea1i \u0111\u00e2y<\/a>).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1887 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-17.png\" alt=\"\" width=\"578\" height=\"355\" \/><\/p>\n<p>Sau khi thay \u0111\u1ed5i b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c giao di\u1ec7n m\u1edbi.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1888 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-16.png\" alt=\"\" width=\"551\" height=\"314\" \/><\/p>\n<p>Sau khi c\u1ea5u h\u00ecnh b\u1eadt d\u1ecbch v\u1ee5 Captive portal, ch\u1ecdn ph\u01b0\u01a1ng th\u1ee9c ch\u1ee9ng th\u1ef1c v\u00e0 chuy\u1ec3n giao di\u1ec7n ch\u1ee9ng th\u1ef1c xong, b\u1ea1n ti\u1ebfp t\u1ee5c qua tab Vouchers. Trong m\u1ee5c<strong>\u00a0Create, Generate and Activate Rolls with Vouchers<\/strong> b\u1ea1n check v\u00e0o \u00f4\u00a0<strong>Enable the creation, generation and activation of rolls with vouchers<\/strong> \u0111\u1ec3 b\u1eadt ch\u1ee9c n\u0103ng Voucher l\u00ean.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1890 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-3.png\" alt=\"\" width=\"661\" height=\"285\" \/><\/p>\n<p>Sau khi b\u1eadt l\u00ean b\u1ea1n s\u1ebd th\u1ea5y m\u1ed9t s\u1ed1 th\u00f4ng tin c\u1ea5u h\u00ecnh cho d\u1ecbch v\u1ee5 n\u00e0y, c\u00e1c th\u00f4ng tin n\u00e0y d\u00f9ng \u0111\u1ec3 t\u1ea1o v\u00e0 qu\u1ea3n l\u00fd th\u00f4ng tin Voucher trong m\u1ee5c\u00a0<strong>Create, Generate and Activate Rolls with Vouchers<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1892 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-5.png\" alt=\"\" width=\"716\" height=\"248\" \/><\/p>\n<p><strong>Voucher Public Key<\/strong> v\u00e0\u00a0<strong>Voucher Private Key<\/strong>, \u0111\u00e2y l\u00e0 th\u00e0nh ph\u1ea7n \u0111\u1ec3 m\u00e3 h\u00f3a khi t\u1ea1o ra m\u00e3 voucher v\u00e0 gi\u1ea3i m\u00e3 voucher khi ng\u01b0\u1eddi d\u00f9ng \u0111\u0103ng nh\u1eadp. B\u1ea1n mu\u1ed1n t\u1ea1o ra m\u1ed9t m\u00e3 RSA m\u1edbi th\u00ec b\u1ea5m v\u00e0o <strong>Generate new keys<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1894 size-full aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-7.png\" alt=\"\" width=\"635\" height=\"423\" \/><\/p>\n<ul>\n<li><strong>Character set<\/strong>: C\u00e1c k\u00fd t\u1ef1 \u0111\u01b0\u1ee3c d\u00f9ng khi sinh ra code voucher<\/li>\n<li><strong># of Roll bits<\/strong>: S\u1ed1 b\u00edt \u0111\u01b0\u1ee3c d\u00f9ng \u0111\u1ec3 c\u1ea5p c\u00e1c cu\u1ed9n (roll), ch\u00fang ta t\u01b0\u1edfng t\u01b0\u1ee3ng roll th\u00ec n\u00f3 gi\u1ed1ng nh\u01b0 m\u1ed9t cu\u1ed9n gi\u1ea5y v\u1ec7 sinh, tr\u00ean cu\u1ed9n gi\u1ea5y v\u1ec7 sinh \u0111\u00f3 ng\u01b0\u1eddi ta ph\u00e2n chia ra th\u00e0nh nhi\u1ec1u \u0111o\u1ea1n, nh\u1eefng \u0111o\u1ea1n \u0111\u00f3 \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 voucher. Th\u00ec \u1edf \u0111\u00e2y, tham s\u1ed1 n\u00e0y ch\u1ea1y t\u1eeb 1 \u0111\u1ebfn 31 bit. T\u1ed1i thi\u1ec3u \u00a01bit = 2<sup>1\u00a0<\/sup>= 2 roll v\u00e0 31bit \u00a0= 2<sup>31<\/sup>=\u00a02.147.483.647 roll, v\u1eady b\u1ea1n c\u00f3 th\u1ec3 t\u1ea1o cac roll t\u1eeb 0 \u0111\u1ebfn\u00a02.147.483.647.<\/li>\n<li><strong># of Ticket bits<\/strong>: S\u1ed1 b\u00edt d\u00f9ng \u0111\u1ec3 c\u00e2p code voucher tr\u00ean m\u1ed7i roll, t\u1ed1i thi\u1ec3u l\u00e0 1 bit v\u00e0 t\u1ed1i \u0111a l\u00e0 16 bit. T\u01b0\u01a1ng \u0111\u01b0\u01a1ng t\u1ed1i thi\u1ec3u s\u1ebd t\u1ea1o \u0111\u01b0\u1ee3c 2<sup>1<\/sup>-1= 1 code tr\u00ean v\u00e0 t\u1ed1i \u0111a s\u1ebd l\u00e0 2<sup>16<\/sup> &#8211; 1\u00a0= 65.535 code voucher tr\u00ean m\u1ed7i roll, do bit \u0111\u1ea7u ti\u00ean tr\u1ea1ng th\u00e1i b\u1eb1ng 0 th\u00ec kh\u00f4ng c\u00f3 \u00fd ngh\u0129a<\/li>\n<li><strong># of Checksum bits<\/strong>: c\u00e1c bit d\u00f9ng ki\u1ec3m tra th\u00f4ng tin Roll v\u00e0 Ticket tr\u00ean m\u1ed7i voucher<\/li>\n<li><strong># Magic number<\/strong>: Th\u00f4ng tin \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef trong vocher, \u0111\u01b0\u01a1c x\u00e1c minh trong qu\u00e1 tr\u00ecnh ki\u1ec3m tra voucher, s\u1ed1 b\u00edt c\u00f2n l\u1ea1i sau khi d\u00f9ng cho Roll+Ticket+Checksum.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1895 size-full aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-8.png\" alt=\"\" width=\"696\" height=\"134\" \/><\/p>\n<p><strong>Invalid voucher message<\/strong> v\u00e0\u00a0<strong>Invalid voucher message<\/strong>: th\u00f4ng tin b\u00e1o l\u1ed7i khi voucher kh\u00f4ng \u0111\u00fang ho\u1eb7c h\u1ebft h\u1ea1n. Th\u00f4ng tin n\u00e0y \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb n\u1ebfu d\u00f9ng giao di\u1ec7n \u0111\u0103ng nh\u1eadp m\u1eb7c \u0111\u1ecbnh.<\/p>\n<p>Sau khi c\u1ea5u h\u00ecnh xong c\u00e1c th\u00f4ng tin \u0111\u1ec3 t\u1ea1o Voucher, b\u1ea1n ti\u1ebfn h\u00e0nh vi\u00eac t\u1ea1o ra c\u00e1c code voucher cho ng\u01b0\u1eddi d\u00f9ng \u0111\u0103ng nh\u1eadp. Trong m\u1ee5c\u00a0<strong>Voucher Rolls<\/strong>, b\u1ea1n nh\u1ea5n v\u00e0o n\u00fat <strong>Add<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1897 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-20.png\" alt=\"\" width=\"634\" height=\"147\" \/><\/p>\n<p>Ti\u1ebfp theo b\u1ea1n s\u1ebd \u0111i\u1ec1n c\u00e1c th\u00f4ng tin \u0111\u1ec3 t\u1ea1o c\u00e1c Roll ch\u1ee9a c\u00e1c code \u00a0Voucher.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1898 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-9.png\" alt=\"\" width=\"480\" height=\"343\" \/><\/p>\n<ul>\n<li><strong>Roll #<\/strong>: Nh\u01b0 \u0111\u00e3 n\u00f3i \u1edf tr\u00ean s\u1ed1 roll \u0111\u01b0\u1ee3c t\u1ea1o ra b\u1edfi c\u00e1c bit \u0111\u01b0\u1ee3c khai b\u00e1o \u1edf\u00a0# of Roll bits. Roll nh\u1ecf nh\u1ea5t l\u00e0 0, Roll l\u1edbn nh\u1ea5t ph\u1ee5 thu\u1ed9c v\u00e0o s\u1ed1 bit \u0111\u01b0\u1ee3c khai b\u00e1o \u1edf\u00a0# of Roll bits<\/li>\n<li><strong>Minutes per ticket<\/strong>: Th\u1eddi gian s\u1eed d\u1ee5ng cho m\u1ed9t code voucher, \u0111\u01b0\u1ee3c t\u00ednh b\u1eb1ng ph\u00fat.<\/li>\n<li><strong>Count<\/strong>: S\u1ed1 code voucher c\u1ee7a Roll, s\u1ed1 n\u00e0y ph\u1ee5 thu\u1ed9c v\u00e0o s\u1ed1 bit khai b\u00e1o \u1edf\u00a0# of Ticket bits<\/li>\n<li><strong>Comment<\/strong>: Ghi ch\u00fa gi\u1ea3i th\u00edch Roll n\u00e0y l\u00e0 g\u00ec.<\/li>\n<\/ul>\n<p>Sau khi nh\u1ea5n save \u0111\u1ec3 l\u01b0u th\u00f4ng tin Roll \u0111\u01b0\u1ee3c t\u1ea1o ra, b\u1ea1n export th\u00f4ng tin v\u00e0 t\u1ea3i v\u1ec1. Th\u00f4ng tin \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef trong m\u1ed9t file .csv.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1900 aligncenter zoooom\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-11.png\" alt=\"\" width=\"722\" height=\"269\" \/><\/p>\n<p>B\u1ea1n c\u00f3 th\u1ec3 m\u1edf file n\u00e0y v\u1edbi Excel ho\u0103c c\u00f3 th\u1ec3 dung b\u1ea5t k\u1ef3 \u00a0ph\u1ea7n m\u1ec1m Text Edit n\u00e0o nh\u01b0 Notpad, Notepad++, Wordpad&#8230; \u0111\u1ec3 l\u1ea5y th\u00f4ng tin code voucher v\u00e0 cung c\u1ea5p cho ng\u01b0\u1eddi d\u00f9ng<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1901 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-12.png\" alt=\"\" width=\"468\" height=\"372\" \/><\/p>\n<p>B\u1ea1n c\u00f3 th\u1ec3 v\u00e0o <strong>Status &gt; Captive Portal &gt; Voucher Rolls<\/strong> \u0111\u1ec3 ki\u1ec3m tra th\u00f4ng tin l\u00e0 \u0111\u00e3 c\u00f3 bao nhi\u00eau code voucher c\u1ee7a m\u1ed9t Roll \u0111\u00e3 \u0111\u01b0\u1ee3c d\u00f9ng. \u1ede \u0111\u00e2y b\u1ea1n c\u00f3 th\u1ec3 th\u1ea5y l\u00e0 c\u00f3 10 Tickets (code voucher), 1 used \u0111\u00e3 &#8211; d\u00f9ng (h\u1ebft th\u1eddi gian \u0111\u0103ng nh\u1eadp), 1 active &#8211; \u0111ang d\u00f9ng, 8 ready &#8211; ch\u01b0a d\u00f9ng.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1903 aligncenter\" src=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2017\/04\/pfsense-voucher-15-1024x212.png\" alt=\"\" width=\"698\" height=\"145\" \/><\/p>\n<p><em><strong>B\u1ea1n l\u01b0u \u00fd:<\/strong><\/em><\/p>\n<ul>\n<li>Th\u00f4ng tin trong Roll sau khi \u0111\u01b0\u1ee3c t\u1ea1o ra, b\u1ea1n c\u00f3 th\u1ec3 edit.<\/li>\n<li>B\u1ea1n c\u00f3 th\u1ec3 t\u1ea1o l\u1ea1i c\u00e1c Roll n\u1ebfu l\u1ee1 tay x\u00f3a, c\u00e1c th\u00f4ng tin trong Roll c\u00f3 s\u1ed1 Roll tr\u00f9ng s\u1ebd c\u00f3 th\u00f4ng tin gi\u1ed1ng nhau.<\/li>\n<li>Khi b\u1ea1n thay \u0111\u1ed5i c\u00e1c th\u00f4ng tin \u1edf ph\u1ea7n\u00a0Create, Generate and Activate Rolls with Vouchers, th\u00ec c\u00e1c \u00a0Roll khi t\u1ea1o s\u1ebd kh\u00f4ng gi\u1ed1ng v\u1edbi Roll c\u1ee7a th\u00f4ng tin tr\u01b0\u1edbc \u0111\u00f3.<\/li>\n<li>Khi mu\u1ed1n t\u1ea1o ra Roll v\u00e0 code voucher ho\u00e0n to\u00e0n m\u1edbi, b\u1ea1n ch\u1ec9 c\u1ea7n Generate new keys RSA m\u1edbi \u00a0trong Create, Generate and Activate Rolls with Vouchers.<\/li>\n<\/ul>\n<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/X6sN5HN-8z4\" width=\"560\" height=\"314\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Captive portal tr\u00ean Pfsense ngo\u00e0i ch\u1ee9ng th\u1ef1c b\u1eb1ng \u00a0local user, RADIUS v\u00e0 freeRADIUS ra, n\u00f3 c\u00f2n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng h\u00ecnh th\u1ee9c ch\u1ee9ng th\u1ef1c Voucher. Voucher l\u00e0 m\u1ed9t h\u00ecnh th\u1ee9c ch\u1ee9ng th\u1ef1c kh\u00e1 \u0111\u1eb7t bi\u1ec7t, ch\u00fang ta c\u00f3 th\u1ec3 hi\u1ec3u n\u00f3 nh\u01b0 l\u00e0 m\u1ed9t m\u00e3 tr\u1ea3 tr\u01b0\u1edbc c\u1ee7a \u0111i\u1ec7n tho\u1ea1i. Khi ng\u01b0\u1eddi d\u00f9ng k\u00edch ho\u1ea1t m\u00e3 voucher th\u1eddi gian s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c quy \u0111\u1ecbnh trong voucher s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ebfm l\u00f9i cho \u0111\u1ebfn khi h\u1ea1n d\u00f9ng kh\u00f4ng c\u00f2n n\u1eefa. \u1ede m\u1ed9t m\u00f4i tr\u01b0\u1eddng m\u00e0 m\u1ea1ng Wifi c\u00f3 th\u1ec3 tho\u1ea3i m\u00e1i nh\u01b0&hellip;<\/p>\n","protected":false},"author":2,"featured_media":260,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[4,5],"tags":[30,54],"class_list":["post-1880","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mang","category-firewall-proxy","tag-captive-portal","tag-pfsense"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pfsense Firewall - Captive Portal ch\u1ee9ng th\u1ef1c Voucher - EngISV<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.engisv.info\/?p=1880\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pfsense Firewall - Captive Portal ch\u1ee9ng th\u1ef1c Voucher - EngISV\" \/>\n<meta property=\"og:description\" content=\"Captive portal tr\u00ean Pfsense ngo\u00e0i ch\u1ee9ng th\u1ef1c b\u1eb1ng \u00a0local user, RADIUS v\u00e0 freeRADIUS ra, n\u00f3 c\u00f2n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng h\u00ecnh th\u1ee9c ch\u1ee9ng th\u1ef1c Voucher. Voucher l\u00e0 m\u1ed9t h\u00ecnh th\u1ee9c ch\u1ee9ng th\u1ef1c kh\u00e1 \u0111\u1eb7t bi\u1ec7t, ch\u00fang ta c\u00f3 th\u1ec3 hi\u1ec3u n\u00f3 nh\u01b0 l\u00e0 m\u1ed9t m\u00e3 tr\u1ea3 tr\u01b0\u1edbc c\u1ee7a \u0111i\u1ec7n tho\u1ea1i. Khi ng\u01b0\u1eddi d\u00f9ng k\u00edch ho\u1ea1t m\u00e3 voucher th\u1eddi gian s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c quy \u0111\u1ecbnh trong voucher s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ebfm l\u00f9i cho \u0111\u1ebfn khi h\u1ea1n d\u00f9ng kh\u00f4ng c\u00f2n n\u1eefa. \u1ede m\u1ed9t m\u00f4i tr\u01b0\u1eddng m\u00e0 m\u1ea1ng Wifi c\u00f3 th\u1ec3 tho\u1ea3i m\u00e1i nh\u01b0&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.engisv.info\/?p=1880\" \/>\n<meta property=\"og:site_name\" content=\"EngISV\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/engisv\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-21T12:27:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.engisv.info\/wp-content\/uploads\/2015\/01\/PFSense-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"hoanghiepktv\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"hoanghiepktv\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880\"},\"author\":{\"name\":\"hoanghiepktv\",\"@id\":\"https:\\\/\\\/www.engisv.info\\\/#\\\/schema\\\/person\\\/dcbab2ddc35f4c71f45c7e13f36367bf\"},\"headline\":\"Pfsense Firewall &#8211; Captive Portal ch\u1ee9ng th\u1ef1c Voucher\",\"datePublished\":\"2017-04-21T12:27:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880\"},\"wordCount\":1432,\"publisher\":{\"@id\":\"https:\\\/\\\/www.engisv.info\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.engisv.info\\\/wp-content\\\/uploads\\\/2015\\\/01\\\/PFSense-1.png\",\"keywords\":[\"Captive Portal\",\"Pfsense\"],\"articleSection\":[\"D\u1ecbch v\u1ee5 m\u1ea1ng\",\"Firewall - Proxy\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880\",\"url\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880\",\"name\":\"Pfsense Firewall - Captive Portal ch\u1ee9ng th\u1ef1c Voucher - EngISV\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.engisv.info\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.engisv.info\\\/wp-content\\\/uploads\\\/2015\\\/01\\\/PFSense-1.png\",\"datePublished\":\"2017-04-21T12:27:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.engisv.info\\\/?p=1880\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880#primaryimage\",\"url\":\"https:\\\/\\\/www.engisv.info\\\/wp-content\\\/uploads\\\/2015\\\/01\\\/PFSense-1.png\",\"contentUrl\":\"https:\\\/\\\/www.engisv.info\\\/wp-content\\\/uploads\\\/2015\\\/01\\\/PFSense-1.png\",\"width\":500,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.engisv.info\\\/?p=1880#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.engisv.info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pfsense Firewall &#8211; Captive Portal ch\u1ee9ng th\u1ef1c Voucher\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.engisv.info\\\/#website\",\"url\":\"https:\\\/\\\/www.engisv.info\\\/\",\"name\":\"EngISV\",\"description\":\"H\u00e3y b\u1eaft \u0111\u1ea7u t\u1eeb nh\u1eefng vi\u1ec7c nh\u1ecf!\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.engisv.info\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.engisv.info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.engisv.info\\\/#organization\",\"name\":\"EngISV\",\"url\":\"https:\\\/\\\/www.engisv.info\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.engisv.info\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.engisv.info\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/logo2-3-1-1.png\",\"contentUrl\":\"https:\\\/\\\/www.engisv.info\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/logo2-3-1-1.png\",\"width\":200,\"height\":76,\"caption\":\"EngISV\"},\"image\":{\"@id\":\"https:\\\/\\\/www.engisv.info\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/engisv\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.engisv.info\\\/#\\\/schema\\\/person\\\/dcbab2ddc35f4c71f45c7e13f36367bf\",\"name\":\"hoanghiepktv\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/645a174195a58b43e64a66af9255c62adc3c73faba32dda89a76c2778e9b3172?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/645a174195a58b43e64a66af9255c62adc3c73faba32dda89a76c2778e9b3172?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/645a174195a58b43e64a66af9255c62adc3c73faba32dda89a76c2778e9b3172?s=96&d=mm&r=g\",\"caption\":\"hoanghiepktv\"},\"url\":\"https:\\\/\\\/www.engisv.info\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pfsense Firewall - Captive Portal ch\u1ee9ng th\u1ef1c Voucher - EngISV","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.engisv.info\/?p=1880","og_locale":"en_US","og_type":"article","og_title":"Pfsense Firewall - Captive Portal ch\u1ee9ng th\u1ef1c Voucher - EngISV","og_description":"Captive portal tr\u00ean Pfsense ngo\u00e0i ch\u1ee9ng th\u1ef1c b\u1eb1ng \u00a0local user, RADIUS v\u00e0 freeRADIUS ra, n\u00f3 c\u00f2n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng h\u00ecnh th\u1ee9c ch\u1ee9ng th\u1ef1c Voucher. Voucher l\u00e0 m\u1ed9t h\u00ecnh th\u1ee9c ch\u1ee9ng th\u1ef1c kh\u00e1 \u0111\u1eb7t bi\u1ec7t, ch\u00fang ta c\u00f3 th\u1ec3 hi\u1ec3u n\u00f3 nh\u01b0 l\u00e0 m\u1ed9t m\u00e3 tr\u1ea3 tr\u01b0\u1edbc c\u1ee7a \u0111i\u1ec7n tho\u1ea1i. Khi ng\u01b0\u1eddi d\u00f9ng k\u00edch ho\u1ea1t m\u00e3 voucher th\u1eddi gian s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c quy \u0111\u1ecbnh trong voucher s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ebfm l\u00f9i cho \u0111\u1ebfn khi h\u1ea1n d\u00f9ng kh\u00f4ng c\u00f2n n\u1eefa. \u1ede m\u1ed9t m\u00f4i tr\u01b0\u1eddng m\u00e0 m\u1ea1ng Wifi c\u00f3 th\u1ec3 tho\u1ea3i m\u00e1i nh\u01b0&hellip;","og_url":"https:\/\/www.engisv.info\/?p=1880","og_site_name":"EngISV","article_publisher":"https:\/\/www.facebook.com\/engisv","article_published_time":"2017-04-21T12:27:11+00:00","og_image":[{"width":500,"height":500,"url":"https:\/\/www.engisv.info\/wp-content\/uploads\/2015\/01\/PFSense-1.png","type":"image\/png"}],"author":"hoanghiepktv","twitter_card":"summary_large_image","twitter_misc":{"Written by":"hoanghiepktv","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.engisv.info\/?p=1880#article","isPartOf":{"@id":"https:\/\/www.engisv.info\/?p=1880"},"author":{"name":"hoanghiepktv","@id":"https:\/\/www.engisv.info\/#\/schema\/person\/dcbab2ddc35f4c71f45c7e13f36367bf"},"headline":"Pfsense Firewall &#8211; Captive Portal ch\u1ee9ng th\u1ef1c Voucher","datePublished":"2017-04-21T12:27:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.engisv.info\/?p=1880"},"wordCount":1432,"publisher":{"@id":"https:\/\/www.engisv.info\/#organization"},"image":{"@id":"https:\/\/www.engisv.info\/?p=1880#primaryimage"},"thumbnailUrl":"https:\/\/www.engisv.info\/wp-content\/uploads\/2015\/01\/PFSense-1.png","keywords":["Captive Portal","Pfsense"],"articleSection":["D\u1ecbch v\u1ee5 m\u1ea1ng","Firewall - Proxy"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.engisv.info\/?p=1880","url":"https:\/\/www.engisv.info\/?p=1880","name":"Pfsense Firewall - Captive Portal ch\u1ee9ng th\u1ef1c Voucher - EngISV","isPartOf":{"@id":"https:\/\/www.engisv.info\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.engisv.info\/?p=1880#primaryimage"},"image":{"@id":"https:\/\/www.engisv.info\/?p=1880#primaryimage"},"thumbnailUrl":"https:\/\/www.engisv.info\/wp-content\/uploads\/2015\/01\/PFSense-1.png","datePublished":"2017-04-21T12:27:11+00:00","breadcrumb":{"@id":"https:\/\/www.engisv.info\/?p=1880#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.engisv.info\/?p=1880"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engisv.info\/?p=1880#primaryimage","url":"https:\/\/www.engisv.info\/wp-content\/uploads\/2015\/01\/PFSense-1.png","contentUrl":"https:\/\/www.engisv.info\/wp-content\/uploads\/2015\/01\/PFSense-1.png","width":500,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.engisv.info\/?p=1880#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.engisv.info\/"},{"@type":"ListItem","position":2,"name":"Pfsense Firewall &#8211; Captive Portal ch\u1ee9ng th\u1ef1c Voucher"}]},{"@type":"WebSite","@id":"https:\/\/www.engisv.info\/#website","url":"https:\/\/www.engisv.info\/","name":"EngISV","description":"H\u00e3y b\u1eaft \u0111\u1ea7u t\u1eeb nh\u1eefng vi\u1ec7c nh\u1ecf!","publisher":{"@id":"https:\/\/www.engisv.info\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.engisv.info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.engisv.info\/#organization","name":"EngISV","url":"https:\/\/www.engisv.info\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engisv.info\/#\/schema\/logo\/image\/","url":"https:\/\/www.engisv.info\/wp-content\/uploads\/2018\/06\/logo2-3-1-1.png","contentUrl":"https:\/\/www.engisv.info\/wp-content\/uploads\/2018\/06\/logo2-3-1-1.png","width":200,"height":76,"caption":"EngISV"},"image":{"@id":"https:\/\/www.engisv.info\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/engisv"]},{"@type":"Person","@id":"https:\/\/www.engisv.info\/#\/schema\/person\/dcbab2ddc35f4c71f45c7e13f36367bf","name":"hoanghiepktv","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/645a174195a58b43e64a66af9255c62adc3c73faba32dda89a76c2778e9b3172?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/645a174195a58b43e64a66af9255c62adc3c73faba32dda89a76c2778e9b3172?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/645a174195a58b43e64a66af9255c62adc3c73faba32dda89a76c2778e9b3172?s=96&d=mm&r=g","caption":"hoanghiepktv"},"url":"https:\/\/www.engisv.info\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/www.engisv.info\/index.php?rest_route=\/wp\/v2\/posts\/1880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.engisv.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.engisv.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.engisv.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.engisv.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1880"}],"version-history":[{"count":0,"href":"https:\/\/www.engisv.info\/index.php?rest_route=\/wp\/v2\/posts\/1880\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.engisv.info\/index.php?rest_route=\/wp\/v2\/media\/260"}],"wp:attachment":[{"href":"https:\/\/www.engisv.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.engisv.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.engisv.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}