guifi.net:msf
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
guifi.net:msf [2022/11/20 21:29] – jose | guifi.net:msf [2022/11/21 11:50] (current) – jose | ||
---|---|---|---|
Line 55: | Line 55: | ||
====== Freeradius ====== | ====== Freeradius ====== | ||
https:// | https:// | ||
+ | |||
docker run --name radius_msf -p 5000:5000 -p 1812: | docker run --name radius_msf -p 5000:5000 -p 1812: | ||
- | < | ||
/ | / | ||
+ | |||
+ | Modifiquem aquests paràmetres: | ||
< | < | ||
ldap { | ldap { | ||
Line 73: | Line 75: | ||
</ | </ | ||
+ | Ens quedaria quelcom així | ||
+ | < | ||
+ | ldap { | ||
+ | server = ' | ||
+ | identity = ' | ||
+ | password = asdasd | ||
+ | base_dn = ' | ||
+ | update { | ||
+ | control: | ||
+ | |||
+ | control: | ||
+ | request: | ||
+ | reply: | ||
+ | } | ||
+ | user_dn = " | ||
+ | |||
+ | user { | ||
+ | base_dn = " | ||
+ | filter = " | ||
+ | } | ||
+ | |||
+ | group { | ||
+ | base_dn = " | ||
+ | filter = ' | ||
+ | membership_attribute = ' | ||
+ | } | ||
+ | |||
+ | client { | ||
+ | base_dn = " | ||
+ | filter = ' | ||
+ | attribute { | ||
+ | ipaddr | ||
+ | secret | ||
+ | } | ||
+ | } | ||
+ | accounting { | ||
+ | reference = " | ||
+ | type { | ||
+ | start { | ||
+ | update { | ||
+ | description := " | ||
+ | } | ||
+ | } | ||
+ | interim-update { | ||
+ | update { | ||
+ | description := "Last seen at %S" | ||
+ | } | ||
+ | } | ||
+ | stop { | ||
+ | update { | ||
+ | description := " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | post-auth { | ||
+ | update { | ||
+ | description := " | ||
+ | } | ||
+ | } | ||
+ | |||
+ | options { | ||
+ | chase_referrals = yes | ||
+ | rebind = yes | ||
+ | res_timeout = 10 | ||
+ | srv_timelimit = 3 | ||
+ | net_timeout = 1 | ||
+ | idle = 60 | ||
+ | probes = 3 | ||
+ | interval = 3 | ||
+ | ldap_debug = 0x0028 | ||
+ | } | ||
+ | |||
+ | pool { | ||
+ | start = ${thread[pool].start_servers} | ||
+ | min = ${thread[pool].min_spare_servers} | ||
+ | max = ${thread[pool].max_servers} | ||
+ | spare = ${thread[pool].max_spare_servers} | ||
+ | uses = 0 | ||
+ | retry_delay = 30 | ||
+ | lifetime = 0 | ||
+ | idle_timeout = 60 | ||
+ | } | ||
+ | } | ||
+ | </ | ||
/ | / | ||
< | < | ||
- | client | + | client |
- | | + | |
- | | + | |
} | } | ||
</ | </ | ||
+ | Esborrem aquesta línea | ||
rm / | rm / | ||
- | radtest jose.legido 12345678 127.0.0.1 1812 celaldogan | + | radtest jose.legido 12345678 127.0.0.1 1812 mataro |
====== Mikrotik ====== | ====== Mikrotik ====== |
guifi.net/msf.1668979788.txt.gz · Last modified: 2022/11/20 21:29 by jose