This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
сервис_captive_portal [2014/06/17 13:34] val |
сервис_captive_portal [2026/04/26 16:20] (current) val [pfSense] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Сервис Captive Portal ====== | ====== Сервис Captive Portal ====== | ||
| + | |||
| + | ===== pfSense ===== | ||
| + | |||
| + | * [[https://www.pfsense.org/]] | ||
| + | * [[https://ftp.fagskolen.gjovik.no/pub/pfSense/]] | ||
| + | * [[https://simplificandoredes.com/en/install-pfsense-on-virtualbox/]] | ||
| + | <code> | ||
| + | По умолчанию, em0 WAN, em1 LAN | ||
| + | |||
| + | Username: admin | ||
| + | Password: pfsense | ||
| + | Default IP: 192.168.1.1 | ||
| + | |||
| + | Captive Portal | ||
| + | HTTPS server name: 192.168.1.1 | ||
| + | Allow only users/groups with "Captive portal login" privilege set | ||
| + | </code> | ||
| + | ===== Самописный вариант ===== | ||
| * Captive Portal Using PHP and iptables Firewall on Linux ([[http://aryo.info/labs/captive-portal-using-php-and-iptables.html]]) | * Captive Portal Using PHP and iptables Firewall on Linux ([[http://aryo.info/labs/captive-portal-using-php-and-iptables.html]]) | ||
| * Using iptables and PHP to create a captive portal ([[http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal]]) | * Using iptables and PHP to create a captive portal ([[http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal]]) | ||
| - | ===== Linux(Ubuntu) ===== | + | ==== Linux(Ubuntu) ==== |
| <code> | <code> | ||
| root@gate:~# cat nat.sh | root@gate:~# cat nat.sh | ||
| Line 19: | Line 37: | ||
| </code> | </code> | ||
| - | ===== FreeBSD ===== | + | ==== FreeBSD ==== |
| <code> | <code> | ||
| gate# cat /etc/pf.conf | gate# cat /etc/pf.conf | ||
| Line 28: | Line 46: | ||
| </code> | </code> | ||
| - | ===== Apache ===== | + | ==== Apache ==== |
| <code> | <code> | ||