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 6: Últimas configurações
Bom pessoas, agora só falta criar o virtual host no Apache...
Como vocês observaram, no /usr/local/nocat/authserv existe um arquivo httpd.conf, nele estão as configurações do vhost! É só ir no Apache,e criar um vhost com aquelas configurações.
Dei uma pesquisada e achei umas configurações mais completas, ai estão elas:
Como vocês observaram, no /usr/local/nocat/authserv existe um arquivo httpd.conf, nele estão as configurações do vhost! É só ir no Apache,e criar um vhost com aquelas configurações.
Dei uma pesquisada e achei umas configurações mais completas, ai estão elas:
<VirtualHost 192.168.0.1>
ServerName auth.captela
DocumentRoot "/usr/local/nocat/authserv/htdocs"
ScriptAlias /cgi-bin/ /usr/local/nocat/authserv/cgi-bin/
Options FollowSymLinks Includes Indexes MultiViews
<Directory "/usr/local/nocat/authserv/htdocs">
AllowOverride All
Options FollowSymLinks Includes Indexes MultiViews
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
<Directory /usr/local/nocat/authserv/cgi-bin>
AllowOverride All
Options ExecCGI
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
##
# $PERL5LIB tells Perl where to find the NoCat libraries.
##
SetEnv PERL5LIB /usr/local/nocat/authserv/lib
##
# $NOCAT tells NoCat where to find its configuration file.
##
SetEnv NOCAT /usr/local/nocat/authserv/nocat.conf
</Directory>
#
# Include the following to fix the MSIE + Mac + SSL braindead implementation
#
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions inherit
</IfModule>
</VirtualHost>
ServerName auth.captela
DocumentRoot "/usr/local/nocat/authserv/htdocs"
ScriptAlias /cgi-bin/ /usr/local/nocat/authserv/cgi-bin/
Options FollowSymLinks Includes Indexes MultiViews
<Directory "/usr/local/nocat/authserv/htdocs">
AllowOverride All
Options FollowSymLinks Includes Indexes MultiViews
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
<Directory /usr/local/nocat/authserv/cgi-bin>
AllowOverride All
Options ExecCGI
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
##
# $PERL5LIB tells Perl where to find the NoCat libraries.
##
SetEnv PERL5LIB /usr/local/nocat/authserv/lib
##
# $NOCAT tells NoCat where to find its configuration file.
##
SetEnv NOCAT /usr/local/nocat/authserv/nocat.conf
</Directory>
#
# Include the following to fix the MSIE + Mac + SSL braindead implementation
#
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions inherit
</IfModule>
</VirtualHost>
Agora é so restartar o bind e o Apache e startar o gateway:
# killall -HUP named
# killall -HUP httpd
# cd /usr/local/nocat/gw/bin
# ./gateway
Prontinho! O Sem Gato está capturando suas telas ;)
Sabe se dá pra fazer o mesmo esquema mas com o mysql autenticando?