AuthInstall | |
NoCatAuth gateway installation guideThis is the quick-and-dirty guide to getting a wireless gateway running with the NoCatAuth system. If you simply want to "run a NoCat node", this should get you going. For detailed instructions on how to set up your own Authentication Service (and a good overall view of how this whole thing works), check out Introduction.txt and AuthService.txt in the doc/ directory. We don't recommend running the gateway and the authservice on the same machine, but if you're dead-set on doing it, be sure to read doc/SameMachine.txt first. Installing a gateway.For the terminally impatient!Check your prerequisites as below. Then, try the following: $ su - # tar zvxf NoCatAuth-x.xx.tar.gz # cd NoCatAuth-x.xx # make gateway # cd /usr/local/nocat # vi nocat.conf # bin/gateway If you see something to the effect of: [2001-12-28 20:38:27] Resetting firewall. [2001-12-28 20:38:27] Binding listener socket to 0.0.0.0 ...then you're up! Watch the progress in 'nocat.log', and give it a try. Step by step:Currently, the gateway is designed to run on a standalone box. If you have other firewall rules defined, THEY WILL BE OVERWRITTEN by the gateway process when it starts. See the end of this file for how to get around this, but please first consider running the gateway on its own machine. Also, remember that running a gateway requires root permissions. 1. Make sure you have the prerequisites installed:
2. Unpack the NoCatAuth tarball. You probably already did this if you're reading this file. $ tar zvxf NoCatAuth-x.xx.tar.gz 3. Edit the Makefile, if necessary. The only real option at present is INST_PATH, which determines where NoCatAuth gets installed to. The default is '/usr/local/nocat', so if that's okay with you, you can skip this step. 4. From the NoCatAuth directory, run 'make gateway'. This will install the important pieces of the gateway software. 5. Edit the /usr/local/nocat/nocat.conf file to suit. These parameters are required:
Starting the gatewayYou should now be able to start the portal by running bin/gateway as root. You'll see a message to the effect of: [2001-12-28 20:38:27] Resetting firewall. [2001-12-28 20:38:27] Binding listener socket to 0.0.0.0 If it doesn't start cleanly, read on. The portal needs to know where to find (a) its perl libraries, and (b) its nocat.conf configuration file. NoCatAuth tries very hard to figure out these values on its own. If you installed to /usr/local/nocat, you should have no problems. Otherwise, you may need to add the following variables to the shell environment before running the gateway script: $ export PERL5LIB=/path/to/nocat/lib:$PERL5LIB $ export NOCAT=/path/to/nocat/nocat.conf Utilities like iptables, modprobe, and gpgv need should be in your $PATH somewhere (if they aren't already). For example: $ export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin Starting the gateway is then as simple as: (from a root prompt) # /path/to/nocat/bin/gateway NOTE: You MUST run the gateway program as root, in order for it to be able to update the firewall rules as needed. Arguably, this is a bug. Patches welcome. To start the gateway service automatically at boot time, check out the etc/nocat.rc script. Install it by copying it to /etc/rc.d/init.d, and either add a call to it in your rc.local, or symlink it to your runlevel, like this: # ln -s /etc/rc.d/init.d/nocat.rc /etc/rc.d/rc3.d/S99nocat Congratulations. You're now running a gateway. Important Notes for the Gateway
IP security is a complicated enough already... NoCat adds to the complexity by introducing dynamic firewall rules that are triggered by completely anonymous users (via the wireless.) While no security system is foolproof, risk can be minimized by isolating your wireless node from the rest of your network. Please read docs/Introduction.txt (and a good book on firewalls) for more details. Thanks for using NoCatAuth. Good luck! Patches welcome!
| |