扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
htpasswd -c /usr/local/pf/conf/user.conf USERNAME |
htpasswd /usr/local/pf/conf/user.conf USERNAME |
你现在需要重新配置PacketFence使其启动。
configurator.pl脚本
在我们首次安装PacketFence时,我们通过在测试模式中运行configurator.pl脚本而完成这种操作。这次我们要在注册模式中运行configuator.pl脚本。为此,切换到/usr/local/pf目录并执行命令(以root用户身份)./configurator.pl。这个过程将是如下的样子:
Checking existing configuration... Existing configuration found, upgrading Would you like to modify the existing configuration [y|n] y Would you like to use a template configuration or custom [t|c] t Which template would you like: 1) Test mode 2) Registration 3) Detection 4) Registration & Detection 5) Registration, Detection & Scanning 6) Session-based Authentication Answer: [1|2|3|4|5]: [1|2|3|4|5|6] 5 Setting option scan to template value enabled Setting option dhcpdetector to template value enabled Setting option mode to template value passive Setting option isolation to template value disabled Setting option testing to template value disabled Setting option detection to template value enabled Setting option registration to template value enabled Setting option auth to template value local Setting option skip_mode to template value window Setting option skip_window to template value 2w Setting option aup to template value disabled Setting option skip_reminder to template value 1d Setting option pass to template value packet Setting option ssl to template value enabled Setting option user to template value admin Setting option port to template value 1241 Setting option registration to template value enabled Setting option host to template value 127.0.0.1 |
(default: eth0) [eth0|?]: eth0 - ok? [y|n] y |
其IP地址是
(default: 192.168.1.29 [?]): 192.168.1.29 - ok? [y|n] y |
其子网掩码
(default: 255.255.255.0 [?]): 255.255.255.0 - ok? [y|n] y |
网关
(default: 192.168.1.1 [?]): 192.168.1.1 - ok? [y|n] y |
(default: eth1) [eth0|?]: eth0 eth0 - ok? [y|n] y |
此外,还有SMTP中继服务器等。此后,你将准备启动PacketFence.为此执行命令:
/usr/local/pf/bin/start
你应当看到下面的内容:
Checking configuration sanity... service|command config files|start iptables|start httpd|start pfmon|start pfdetect|start named|start snort|start |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者