Configurando Nocat + Radius modo passive
Esse artigo nos mostra como configurar o NoCat para autenticar seus usuários em conjunto com o radius. O NoCat serve para proteger sua rede wireless de possíveis "gatos", ou seja, pessoas que roubam sua banda sem fio para navegar pela internet.
Parte 5: Configurando o NoCat
Até agora já temos o cenário pronto para atuação, vamos fazer os ajustes no NoCat.
Iremos configurar primeiro o gateway, que vai bloquear o acesso a internet e capturar a tela:
# vi /usr/local/nocat/gw/nocat.conf
Iremos configurar primeiro o gateway, que vai bloquear o acesso a internet e capturar a tela:
# vi /usr/local/nocat/gw/nocat.conf
Verbosity 10
GatewayName CapTela
GatewayMode Passive
GatewayLog /usr/local/nocat/gw/nocat.log
LoginTimeout 600
HomePage http://www.siteaescolha.com.br
# página padrão para redirecionar após autenticação
DocumentRoot /usr/local/nocat/authserv/htdocs
# diretório no authserv, as linhas abaixo falam de arquivos nesse diretório
SplashForm splash.html
StatusForm status.html
TrustedGroups Any
AuthServiceAddr auth.captela
AuthServiceURL https://$AuthServiceAddr/cgi-bin/login
LogoutURL https://$AuthServiceAddr/logout.html
ExternalDevice eth1
InternalDevice eth0
# Deixe essas 2 opções acima comentadas para detectar automaticamente
ExcludePorts 25
GatewayName CapTela
GatewayMode Passive
GatewayLog /usr/local/nocat/gw/nocat.log
LoginTimeout 600
HomePage http://www.siteaescolha.com.br
# página padrão para redirecionar após autenticação
DocumentRoot /usr/local/nocat/authserv/htdocs
# diretório no authserv, as linhas abaixo falam de arquivos nesse diretório
SplashForm splash.html
StatusForm status.html
TrustedGroups Any
AuthServiceAddr auth.captela
AuthServiceURL https://$AuthServiceAddr/cgi-bin/login
LogoutURL https://$AuthServiceAddr/logout.html
ExternalDevice eth1
InternalDevice eth0
# Deixe essas 2 opções acima comentadas para detectar automaticamente
ExcludePorts 25
Agora o authserv, que enviará a autenticação pro radius:
# vi /usr/local/nocat/authserv/nocat.conf
Verbosity 10
HomePage http://www.seusite.com.br/
DocumentRoot /usr/local/nocat/authserv/htdocs
DataSource RADIUS
RADIUS_Host auth.captela:1812 #olhar no /etc/services a porta radius
RADIUS_Secret segredoradius
RADIUS_TimeOut 5
MinPasswdLength 0
LoginForm login.html
LoginOKForm login_ok.html
FatalForm fatal.html
ExpiredForm expired.html
RenewForm renew.html
PassiveRenewForm renew_pasv.html
RegisterForm register.html
RegisterOKForm register_ok.html
RegisterFields name url description
UpdateForm update.html
UpdateFields url description
LoginGreeting Bem Vindos ao capTela do SemGato!!
LoginMissing Please fill in all fields!
LoginBadUser That e-mail address is unknown. Please try again.
LoginBadPass That e-mail and password do not match. Please try again.
LoginBadStatus Sorry, you are not a registered co-op member.
RegisterGreeting Welcome! Please enter the following information to register.
RegisterMissing Name, E-mail, and password fields must be filled in.
RegisterUserExists Sorry, that e-mail address is already taken. Are you already registered?
RegisterBadUser The e-mail address provided appears to be invalid. Did you spell it correctly?
RegisterInvalidPass All passwords must be at least six characters long.
RegisterPassNoMatch The passwords you provided do not match. Please try again.
RegisterSuccess Congratulations, you have successfully registered.
UpdateGreeting Enter your E-mail and password to update your info.
UpdateBadUser That e-mail address is unknown. Please try again.
UpdateBadPass That e-mail and password do not match. Please try again.
UpdateInvalidPass New passwords must be at least six characters long.
UpdatePassNoMatch The new passwords you provided do not match. Please try again.
UpdateSuccess Congratulations, you have successfully updated your account.
HomePage http://www.seusite.com.br/
DocumentRoot /usr/local/nocat/authserv/htdocs
DataSource RADIUS
RADIUS_Host auth.captela:1812 #olhar no /etc/services a porta radius
RADIUS_Secret segredoradius
RADIUS_TimeOut 5
MinPasswdLength 0
LoginForm login.html
LoginOKForm login_ok.html
FatalForm fatal.html
ExpiredForm expired.html
RenewForm renew.html
PassiveRenewForm renew_pasv.html
RegisterForm register.html
RegisterOKForm register_ok.html
RegisterFields name url description
UpdateForm update.html
UpdateFields url description
LoginGreeting Bem Vindos ao capTela do SemGato!!
LoginMissing Please fill in all fields!
LoginBadUser That e-mail address is unknown. Please try again.
LoginBadPass That e-mail and password do not match. Please try again.
LoginBadStatus Sorry, you are not a registered co-op member.
RegisterGreeting Welcome! Please enter the following information to register.
RegisterMissing Name, E-mail, and password fields must be filled in.
RegisterUserExists Sorry, that e-mail address is already taken. Are you already registered?
RegisterBadUser The e-mail address provided appears to be invalid. Did you spell it correctly?
RegisterInvalidPass All passwords must be at least six characters long.
RegisterPassNoMatch The passwords you provided do not match. Please try again.
RegisterSuccess Congratulations, you have successfully registered.
UpdateGreeting Enter your E-mail and password to update your info.
UpdateBadUser That e-mail address is unknown. Please try again.
UpdateBadPass That e-mail and password do not match. Please try again.
UpdateInvalidPass New passwords must be at least six characters long.
UpdatePassNoMatch The new passwords you provided do not match. Please try again.
UpdateSuccess Congratulations, you have successfully updated your account.
Prontinho, NoCat e radius configurados, vamos as configurações do Apache...
Sabe se dá pra fazer o mesmo esquema mas com o mysql autenticando?