[NoCat] Your MAC address is undefined. Problem with the gateway?

bijayant kumar bijayant4u at yahoo.com
Thu Apr 5 06:14:49 PDT 2007


Hi,
    Thanks for your reply. Now i have done some configuration changes rather i have rectified my some silly mistakes. I am able to find the login page . As soon as i type any website address it redirects me to the desired authentication  screen. But when i login it shows me the Internal Server Error page. I am getting these errors in my logs. Please have a look, and help me :- 

1) tail -f /usr/local/nocat/gateway/nocat.log

[2007-04-05 18:16:55] Connection to 192.168.1.116 from 192.168.1.183
[2007-04-05 18:16:55] Capturing  192.168.1.183  for http://www.google.com/url?rand=4d601ba7dc1175778198166&q=http%3A%2F%2Fwww.google.com%2Fimages%2Fcleardot.gif
[2007-04-05 18:16:55] Spawning child process 16603.
[2007-04-05 18:16:55] Notifying parent of Capture on peer 00:0C:F1:6E:73:F8
[2007-04-05 18:16:55] Got notification Capture of peer 00:0C:F1:6E:73:F8
[2007-04-05 18:16:55] Child process returned 1

2) tail -f /var/log/apache2/error_log

[Thu Apr 05 18:09:25 2007] [error] [client 192.168.1.183] [2007-04-05 18:09:25] User bijayant from 192.168.1.183 requests form, referer: http://192.168.99.116/cgi-bin/login?redirect=http%3a%2f%2fgoogle%2ecom%2f&timeout=600&
gateway=192%2e168%2e1%2e116%3a5280
&mac=00%3a0C%3aF1%3a6E%3a73%3aF8&token=%241%2413506782%24X%2fC2R%2e1bKOQW81C2CnyaJ%2e

[Thu Apr 05 18:09:25 2007] [error] [client 192.168.1.183] [2007-04-05 18:09:25] /usr/bin/gpg --sign --armor --homedir=/usr/local/nocat/cgi-bin/../pgp --keyring trustedkeys.gpg --no-tty -o- returned error message:, referer: http://192.168.99.116/cgi-bin/login?redirect=http%3a%2f%2fgoogle%2ecom%2f&timeout=600&gateway=192%2e168%2e1%2e116%3a5280&mac=00%3a0C%3aF1%3a6E%3a73%3aF8&token=%241%2413506782%24X%2fC2R%2e1bKOQW81C2CnyaJ%2e
[Thu Apr 05 18:09:25 2007] [error] [client 192.168.1.183] gpg: Sorry, no terminal at all requested - can't get input, referer: http://192.168.99.116/cgi-bin/login?redirect=http%3a%2f%2fgoogle%2ecom%2f&timeout=600&gateway=192%2e168%2e1%2e116%3a5280&mac=00%3a0C%3aF1%3a6E%3a73%3aF8&token=%241%2413506782%24X%2fC2R%2e1bKOQW81C2CnyaJ%2e
[Thu Apr 05 18:09:25 2007] [error] [client 192.168.1.183] Can't call method "text" on an undefined value at ../lib//NoCat/AuthService.pm line 134., referer: http://192.168.99.116/cgi-bin/login?redirect=http%3a%2f%2fgoogle%2ecom%2f&timeout=600&gateway=192%2e168%2e1%2e116%3a5280&mac=00%3a0C%3aF1%3a6E%3a73%3aF8&token=%241%2413506782%24X%2fC2R%2e1bKOQW81C2CnyaJ%2e
[Thu Apr 05 18:09:25 2007] [error] [client 192.168.1.183] Premature end of script headers: login, referer: http://192.168.99.116/cgi-bin/login?redirect=http%3a%2f%2fgoogle%2ecom%2f&timeout=600&gateway=192%2e168%2e1%2e116%3a5280&mac=00%3a0C%3aF1%3a6E%3a73%3aF8&token=%241%2413506782%24X%2fC2R%2e1bKOQW81C2CnyaJ%2e

I have already installed Net::Netmask module. I think i am very near to run NoCat. Now please help me. I am desperate to use this wonderful service.

Thanks

twistedpickles <twistedpickles at gmail.com> wrote: On 4/5/07, bijayant kumar  wrote:
> Hello to all,
>                    I am trying to configure NoCat gateway and NoCat authserver on the same machine. I work on gentoo-linux.  But i am not able  to do so.  I need support from you people. I have a small network. And my machine is behind the firewall gateway.  I want to configure NoCat gateway on my machine, and want to test it with other system making that machine's gateway of mine. I am giving my whole configuration file here :-
>
> 1) vi /usr/local/nocat/nocat.conf
> Verbosity       10
> GatewayName     Bijayant Gateway
> GatewayMode     Passive
> GatewayLog      /usr/local/nocat/nocat.log
> LoginTimeout    600
> HomePage        http://localhost/cgi-bin/login
> DocumentRoot    /usr/local/nocat/htdocs
> SplashForm      splash.html
> StatusForm      status.html
> TrustedGroups Any
> AuthServiceAddr 192.168.1.183
> AuthServiceURL  http://$AuthServiceAddr/cgi-bin/login
> LogoutURL       http://$AuthServiceAddr/logout.html
> InternalDevice eth0
> LocalNetwork   192.168.99.0/24
> IncludePorts    22 80 443
> ExcludePorts    25
> GatewayPort     5280
> PGPKeyPath     /usr/local/nocat/pgp
> GpgvPath       /usr/bin/gpgv
>
> 2) vi /usr/local/nocat/authserv/nocat.conf
>
>  PGPKeyPath     /usr/local/nocat/authserv/pgp
> HomePage        http://localhost/cgi-bin/login
> DocumentRoot    /usr/local/nocat/authserv/htdocs/
> DataSource      LDAP
> LDAP_Host               bijayant.kavach.blr
> LDAP_Base               dc=kavach,dc=blr
> LDAP_Admin_User         cn=Manager,dc=kavach,dc=blr
>  LDAP_Admin_PW          secret
>  LDAP_Hash_Passwords    Yes
>  LDAP_Search_as_Admin   Yes
> LDAP_Filter            username
> UserTable       member
> UserIDField     login
> UserPasswdField pass
> UserAuthField   status
> UserStampField  created
>
> GroupTable      network
> GroupIDField    network
> GroupAdminField admin
> GpgPath        /usr/bin/gpg
> LocalGateway    bijayant.kavach.blr
>
> 3) vi /etc/apache2/httpd.conf
>
> ScriptAlias /cgi-bin/ /usr/local/nocat/authserv/cgi-bin/
> 
> Options ExecCGI
> SetEnv PERL5LIB /usr/local/nocat/authserv/lib
> SetEnv NOCAT    /usr/local/nocat/authserv/nocat.conf
> Order allow,deny
> Allow from all
> 
> Alias /images/ /usr/local/nocat/authserv/htdocs/images/
> Alias /nocat/  /usr/local/nocat/authserv/htdocs/
> 
> Options -Indexes FollowSymLinks MultiViews
> AllowOverride All
> 
> Order allow,deny
> Allow from all
> 
> 
>
> When i run /usr/local/nocat/bin/gateway i got all the messages as described in various documents. When i type http://192.168.99.183:5280/status in the browser i got the status page also like
>
> Gateway Up SinceThu Apr  5 14:51:33 2007
> TotalConnections    0
> GatewayVersion    0.81.20020808
> GatewayMode    Passive
> LoginTimeout    600
> IdleTimeout    300
> HomePage    http://localhost/cgi-bin/login
> LastConnectionTime    none
> ConnectionCount    0
>
> I dont get any authentication page while opening any websites,and my default page is remains the apache page.  When i type in the browser http://localhost/cgi-bin/login, i get the login page but when i supplied all information there i got error
> Your MAC address is undefined. Problem with the gateway?
>
> And from another system when i open any other site it just opens without any authentication.
> I want to ask that where i am doing wrong. Please help me.
>
>
>
> Bijayant Kumar
>  Send instant messages to your online friends http://uk.messenger.yahoo.com
> _______________________________________________
> NoCat mailing list
> NoCat at lists.nocat.net
> http://lists.nocat.net/mailman/listinfo/nocat
>


You must install Net::Netmask if your running both on the same machine.

You must define "LocalGateway" in your authserv nocat.conf file. The
local gateway should be the ip address that is running both your
gateway and authserv.

Also not that it matters because I'm sure your're running in passive
mode but "HomePage" should be defined as your  public IP address or
your FQDN and not as localhost. This is feature is used only in open
mode and redirects your customer or end user to the website you list
here after the splash. It doesn't necessarily need to be the IP of
your gateway but it shouldn't be http://gatewayIP/cgi-bin/login. This
will force the user into a loop and not allow them to login or gain
access to the Internet.

-- 
::twistedPickles:: :


_______________________________________________
NoCat mailing list
NoCat at lists.nocat.net
http://lists.nocat.net/mailman/listinfo/nocat



Bijayant Kumar
 Send instant messages to your online friends http://uk.messenger.yahoo.com 


More information about the NoCat mailing list