guifi.net:msf
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guifi.net:msf [2022/11/20 19:17] – jose | guifi.net:msf [2022/11/21 11:50] (current) – jose | ||
---|---|---|---|
Line 54: | Line 54: | ||
====== Freeradius ====== | ====== Freeradius ====== | ||
+ | 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 72: | 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 / | ||
+ | |||
+ | radtest jose.legido 12345678 127.0.0.1 1812 mataro | ||
+ | |||
+ | ====== Mikrotik ====== | ||
+ | docker-compose.yml | ||
+ | < | ||
+ | services: | ||
+ | routeros: | ||
+ | image: evilfreelancer/ | ||
+ | restart: unless-stopped | ||
+ | cap_add: | ||
+ | - NET_ADMIN | ||
+ | devices: | ||
+ | - / | ||
+ | ports: | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | networks: | ||
+ | lan_internal: | ||
+ | priority: 1000 | ||
+ | ipv4_address: | ||
+ | lan_net: | ||
+ | priority: 900 | ||
+ | ipv4_address: | ||
+ | |||
+ | networks: | ||
+ | lan_net: | ||
+ | driver: bridge | ||
+ | ipam: | ||
+ | driver: default | ||
+ | config: | ||
+ | - subnet: " | ||
+ | gateway: 172.16.16.1 | ||
+ | lan_internal: | ||
+ | ipam: | ||
+ | driver: default | ||
+ | config: | ||
+ | - subnet: " | ||
+ | gateway: 182.18.18.1 | ||
+ | </ | ||
+ |
guifi.net/msf.1668971837.txt.gz · Last modified: 2022/11/20 19:17 by jose