1 OS:ubuntu18

2安装freeradius

Now to install freeradius, as I use a radius server for user authentication with coovachilli. We will also install some library’s used by coovachilli.

apt-get update

apt-get upgrade

apt-get install freeradius freeradius-utils libtool libssl-dev libcurl4-openssl-dev

2.1修改共享密钥

Now we need to set it up. open up /etc/freeradius/clients.conf and change the secret from “testing123” to a secure password that you will remember.

/etc/freeradius/3.0/clients.conf

secret = testing123

2.2添加用户

Now for adding users to freeradius. What I do is I delete the file /etc/freeradius/users and just create a new file, and start fresh. Here is the format used for user accounts:

用户名      Cleartext-Password := "用户密码"

useraccountname Cleartext-Password := "userpass1"

Simultaneous-Use = 999999,

Idle-Timeout = 86400,

Acct-Interim-Interval = 120,

WISPr-Bandwidth-Max-Down = 1236000,

WISPr-Bandwidth-Max-Up = 600000

so as you can guess useraccountname is the name of the user, and userpass1 is the password for that account. For the rest of the stuff

  • Simultaneous-Use = How many times the same account can be logged in at once.
  • Idle-Timeout = How long it will wait to logout the user after idling, in seconds.
  • Acct-Interm-Interval = the number of seconds between each interim update in seconds for a specific session.
  • WISPr-Bandwidth-Max-Down = The max allowed download speed, in bits (not kilobits)
  • WISPr-Bandwidth-Max-Up = The max allowed upload speed, in bits

So with this, create as many users as you want to use. If you don’t want to limit a users speed, or timeout, then just don’t add those lines to that user and it won’t apply.

2.3测试

Next up is testing. restart the freeradius service, and then test the account you made to make sure it authenticates. So, for our above example, we would do the following:

service freeradius restart

radtest useraccountname userpass1 localhost 0 SecretCode

Where SecretCode 共享密钥 is the secret we changed in freeradius earlier in this tutorial. If everything worked, you should get some output like this:

Sending Access-Request of id 35 to 127.0.0.1 port 1812

User-Name = "useraccountname"

User-Password = "userpass1"

NAS-IP-Address = 127.0.1.1

NAS-Port = 0

rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=35, length=56

Idle-Timeout = 86400

Acct-Interim-Interval = 120

WISPr-Bandwidth-Max-Down = 1236000

WISPr-Bandwidth-Max-Up = 600000

This means the user was authenticated successfully, and freeradius is now setup!

freeradius安装相关推荐

  1. freeradius安装配置

    开源radius服务端软件freeradius,在Ubuntu 16.10 server版上的安装命令: sudo apt-get install freeradius 配置文件目录位于/etc/fr ...

  2. 学习笔记:上网认证1 FreeRadius安装及与openldap的连接

    Freeradius是开源免费并完全兼容RADIUS协议的RADIUS服务器和客户端软件,可以用它对用户的接入和访问特定的网络进行有效的控制,授权,计费等等,它支持多种验证,包括文件,LDAP,数据库 ...

  3. freeradius 在centos上的安装和调试

    1.使用yum安装即可,确定安装的是freeradius2,而不是1.如果以前又freeradius,先卸载      yum remove freeradius      安装      yum i ...

  4. rlm sql mysql.so_找了好久,终于找到一篇关于FREERADIUS新版的安装说明。和以前的1.X.X还是有很大不同的。...

    一.安装openssl 二.安装mysql 直接用命令#yun groupinstall "MySQL Database"安装MySQL数据库. 安装好后,#service mys ...

  5. Ubuntu中使用freeradius配置RADIUS,并在RADIUS中配置LDAP 并实现AP认证

    RADIUS介绍 RADIUS(Remote Authentication Dial-In User Server,远程认证拨号用户服务)是一种分布式的.C/S架构的信息交互协议,能包含网络不受未授权 ...

  6. Ubuntu下使用FreeRadius实现Wifi认证

    硬件和环境: ASUS RT-AC88U路由器.两台Ubuntu 16.04的机器.FreeRADIUS 2.2.8 FreeRADIUS安装和测试: sudo apt-get install fre ...

  7. 使用 freeradius 搭建 EAP PEAP MS-CHAPv2 验证环境

    企业级 Wi-Fi 搭建起来有点小复杂,我们知道自己家使用的 Wi-Fi 非常简单,几乎只需要配置一下热点的 SSID 和密码就可以了,实际上这是两种 Wi-Fi 认证类型.想要快速部署企业级 Wi- ...

  8. Ubuntu中使用freeradius配置RADIUS,并在RADIUS中配置LDAP

    安装RADIUS Remote Authentication Dial In User Service,远程用户拨号认证系统由RFC2865,RFC2866定义,是目前应用最广泛的AAA协议.AAA是 ...

  9. freeradius pap mysql_[转载]RedHat as4常用应用之mysql+freeradius+cisco路由器

    RedHat as4常用应用之freeradius 一.概述 RADIUS( Remote Access Dial In User Service) Protocol主要用来提供认证(Authenti ...

  10. Hha mysql_RedHat as4常用应用之mysql+freeradius+cisco路由器

    RedHat as4常用应用之freeradius 一.概述 RADIUS( Remote Access Dial In User Service) Protocol主要用来提供认证(Authenti ...

最新文章

  1. 【转载】计算机视觉~VGG网络
  2. linux下卸载已安装的软件
  3. python测试需要学什么_从手工测试到自动化测试需要学什么?
  4. object detection错误之no module named nets
  5. 制造业数字化经营新思路:管理平台架构及三大落地方法论
  6. centos 6.9 mysql5.7_centos6.9升级Mysql版本至5.7
  7. python自定义包的发布与安装
  8. javascript中数组遍历问题
  9. Confluence 6 附件存储配置
  10. input输入框提示
  11. 计算机桌面来回闪烁,Windows10系统电脑屏幕一直闪烁的解决方案
  12. 机器学习(三):一文读懂线性判别分析(LDA)
  13. 《剑指offer》:[22]如何判断一个序列是否为栈的弹出序列
  14. 我的awk常用命令备忘 xargs备忘
  15. C Halting Problem
  16. ROS2机器人笔记20-08-02
  17. oracle基础|数据库模型|实体-关系图(E-R图)|什么是一对一、一对多、多对多
  18. 【python-sklearn】中文文本处理LDA主题模型分析
  19. 通过ppk私钥连接服务器中遇到的问题
  20. 曼哈顿图就够了吗?你还需要LocusZoom

热门文章

  1. Linux命令详解(2)ip命令
  2. c语言实现 字符串替换函数,C语言函数实现 字符串替换
  3. 窗口风格 :ModifyStyle函数的用法:
  4. 福昕PDF编辑器中文版(FoxitPDFEditor)绿色版
  5. ActiveSync同步使用方法
  6. vfp python_Visual Fox Pro和Python
  7. Redmi显示器调节亮度 27英寸/2k/ IPS技术/低蓝光
  8. Springboot打包部署到linux服务器的方法
  9. HTML将广告关闭的JS代码,原生js对联广告代码制作浮动固定层可关闭对联广告横幅...
  10. pytorch torchvision 各种版本whl下载地址