User Tools

Site Tools


сервис_captive_portal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_captive_portal [2026/04/26 16:20]
val [pfSense]
сервис_captive_portal [2026/05/27 15:15] (current)
val [Status/System Logs/System/General]
Line 2: Line 2:
  
 ===== pfSense ===== ===== pfSense =====
 +
 +  * [[https://​opnsense.org/​]]
  
   * [[https://​www.pfsense.org/​]]   * [[https://​www.pfsense.org/​]]
 +  * [[https://​val.bmstu.ru/​unix/​img/​My%20Documents/​pfSense-CE-2.7.2.ova]]
 +
 +
   * [[https://​ftp.fagskolen.gjovik.no/​pub/​pfSense/​]]   * [[https://​ftp.fagskolen.gjovik.no/​pub/​pfSense/​]]
   * [[https://​simplificandoredes.com/​en/​install-pfsense-on-virtualbox/​]]   * [[https://​simplificandoredes.com/​en/​install-pfsense-on-virtualbox/​]]
-<​code>​ 
-По умолчанию,​ em0 WAN, em1 LAN 
  
 +
 +==== Базовая настройка ====
 +
 +  * По умолчанию,​ em0 WAN, em1 LAN
 +<​code>​
 Username: admin Username: admin
 Password: pfsense Password: pfsense
 Default IP: 192.168.1.1 Default IP: 192.168.1.1
  
-Captive Portal +Через консоль назначаем LAN IP: 192.168.X.1/24, dhpc потом в визарде
-HTTPS server name: 192.168.1.1 +
-Allow only users/groups with "​Captive portal login" privilege set+
 </​code>​ </​code>​
 +
 +  * Подключаемся через Web и отвечаем на вопросы Визарда:​
 +<​code>​
 +Hostname: gate
 +Domain: corpX.un
 +Primary DNS Server: 192.168.X.10
 +Override DNS: No
 +
 +Timezone: Europe/​Moscow
 +
 +Configure WAN Interface
 +SelectedType:​ static
 +IP Address: 172.16.1.X
 +Subnet Mask: 24
 +Add a new gateway ...
 +
 +Admin Password: Pa$$w0rd
 +
 +Services/​DNS Resolver/​General Settings/​Enable:​ false
 +</​code>​
 +
 +==== Services/​DHCP Server/LAN ====
 +
 +<​code>​
 +Address Pool Range: 192.168.X.101 - 192.168.X.109
 +DNS Servers: 192.168.X.10
 +</​code>​
 +
 +==== System/​Certificates/​Certificates ====
 +
 +  * [[Пакет OpenSSL#​Создание самоподписанного сертификата]] wild
 +
 +==== System/​Advanced/​Admin Access ====
 +
 +  * SSL/TLS Certificate:​ wild
 +
 +==== System/User Manager/​Authentication Servers ====
 +
 +  * [[Сервис FreeRADIUS]]
 +
 +<​code>​
 +Descriptive name: radius server
 +Type: RADIUS
 +Hostname or IP address: server
 +Shared Secret: testing123
 +RADIUS NAS IP Attribute: LAN...
 +</​code>​
 +
 +==== Services/​Captive Portal ====
 +
 +<​code>​
 +Interfaces: LAN
 +
 +Authentication Method: Authentication backend !!! По умолчанию
 +Authentication Server: radius server
 +NAS Identifier: gate
 +
 +Enable HTTPS login: yes
 +HTTPS server name: gate.corpX.un
 +SSL/TLS Certificate:​ wild
 +
 +Services/​Captive Portal/​corpX/​Allowed IP Addresses
 +192.168.X.10
 +</​code>​
 +
 +==== Status/​System Logs/​System/​General ====
 +
 +  * Просмотр журналов (Time - порядок сортировки или Filter по слову moved)
 ===== Самописный вариант ===== ===== Самописный вариант =====
  
сервис_captive_portal.1777209618.txt.gz · Last modified: 2026/04/26 16:20 by val