Nastavení AP pro radius a logování: Porovnání verzí
Z Wiki UnArt Slavičín
Skočit na navigaciSkočit na vyhledávání
Bez shrnutí editace |
Bez shrnutí editace |
||
Řádek 10: | Řádek 10: | ||
[[Soubor:10 users remove.png|1400px]] | [[Soubor:10 users remove.png|1400px]] | ||
[[Soubor:11 users aaa.png|1400px]] | [[Soubor:11 users aaa.png|1400px]] | ||
[[Soubor:12_radius_incoming.png|1400px]] | |||
[[Soubor:13 radius a.png|1400px]] | |||
[[Soubor:13 radius b.png|1400px]] | |||
[[Soubor:14 logging actions.png|1400px]] | [[Soubor:14 logging actions.png|1400px]] | ||
# do promenne freenetis_heslo si ulozime vygenerovane heslo pro freenetis daemon pro toto AP (router) | # do promenne freenetis_heslo si ulozime vygenerovane heslo pro freenetis daemon pro toto AP (router) |
Verze z 2. 6. 2010, 22:11
# do promenne freenetis_heslo si ulozime vygenerovane heslo pro freenetis daemon pro toto AP (router) # Pozor! Toto heslo si zaroven zapiseme do freenetisu :global freenetis_heslo "4RFob3uWSk" # do promenne servis_heslo si ulozime vygenerovane heslo pro servis # toto heslo by melo byt na vsech AP (routerech) stejne, v budoucnu by mel freenetis umet toto heslo jednorazove pregenerovat :global servis_heslo "W8ifsk3q90" # do promenne prefix nastavime identifikator AP (routeru) pro logovani :global prefix "slfree_mladoticka_5G" # nastaveni radiusu radius incoming set accept=yes port=1700 radius add service=login address=10.143.126.8 secret=secretslfree # pridani uzivatelu freenetis a servis user add name=freenetis comment="freenetis daemon user" password=$freenetis_heslo group=full user add name=servis comment="servis" password=$servis_heslo group=servis # smazani vsech uzivatelu (krome freenetis a servis) :foreach user in=[user find] do={ :if ([user get $user name]!="freenetis" && [user get $user name]!="servis") do={ user remove $user } } # pridani uzivatelskych skupin user group add name="engineers" policy=local,telnet,ssh,ftp,reboot,read,write,test,winbox,password,web,sniff,!policy user group add name="member" policy=read,winbox,!local,!telnet,!ssh,!ftp,!reboot,!write,!policy,!test,!password,!web,!sniff user group add name="admin" policy=local,telnet,ssh,ftp,reboot,read,write,test,winbox,password,web,sniff,!policy user group add name="servis" policy=local,telnet,ssh,ftp,reboot,read,write,test,winbox,web,sniff,!policy,!password # smazani vsech jinych skupin (krome engineers, member, admin, servis, full, write, read) :foreach group in=[user group find] do={ :if ([user group get $group name]!="engineers" && [user group get $group name]!="member" && [user group get $group name]!="admin" && [user group get $group name]!="servis" && [user group get $group name]!="full" && [user group get $group name]!="write" && [user group get $group name]!="read") do={ user group remove $group } } # nastaveni autentizace skrze radius user aaa set accounting=yes default-group=member use-radius=yes # nastaveni logovani system logging action add name=remote target=remote remote=10.143.126.15:514 system logging add action=remote prefix=$prefix topics=account,critical,error,firewall,system