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 1: | Řádek 1: | ||
[[Soubor:01 groups.png|1400px]] | [[Soubor:01 groups.png|1400px]] | ||
[[Soubor:02 groups engineers.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:01
# 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