| Version 10 (modified by ismail.uman@…, 5 years ago) |
|---|
INSTALLATION OF WIFIDOG ON openSuSE 10.3
(VERY PRELIMINARY)
The installation of the authorization server and of the gateway is done in the same box. Below the step by step installation procedures on openSuSE are given. The installation is very preliminary so please verify and/or correct.
- Install openSuSE 10.3 with the full software (at least 7GB of space on hard disk are required).
- Update openSuSE 10.3.
INSTALLATION OF WIFIDOG AUTHORIZATION SERVER
- Install all php5 extensions.
- Install postgresql-server.
- Follow the instructions given in
http://www.novell.com/coolsolutions/feature/595.html to start apache (start also the postgresql server instead of mysql).
- Change directory to
cd /srv/www
- Download the authorization server with the command
svn checkout https://dev.wifidog.org/svn/trunk/wifidog-auth
- Change directory to
cd /etc/apache2
- Sustitute '/srv/www/wifidog-auth/wifidog' instead of '/srv/www/htdocs'
everywhere in default-server.conf
- Stop and start apache server again
- Open with your browser the local web page
http://localhost/install.php and follow the instructions. While running with the php installation
- To enter in postgresql execute the command
su – postgres
- In the php install after creating the database the indicated directories with username/groupname wwwrun/www must be created and their ownership must be given with the following commands. There is a bug in the x84-64 openSuSE architecture: the username/groupname is not indicated by the php installer (unknown user, unknown group). With both architectures x86 and x86-64 the following command works:
su wwwrun
mkdir ‘indicated files’;
chown -R wwwrun ‘indicated files’
chgrp -R www `indicated files’
- In the last stages before connect to the database pg_hba.conf must be changed in /var/lib/pgsql/data. So change directory to
cd /var/lib/pgsql/data
- Edit the pg_hba.conf substituting 'ident sameuser' with 'md5 samerole':
Default settings:
local all all ident sameuser
host all all 127.0.0.1/32 ident sameuser
host all all ::1/128 ident sameuser
New settings:
local all all md5 samerole
host all all 127.0.0.1/32 md5 samerole
host all all ::1/128 md5 samerole
- Stop and start postgresql server again
- WARNING: in order to connect to the database directly with the command
‘su – postrges’ after the first installation reset again the old value and restart the postgresql server again.
- Configure the authorization server
- Modify the localhost with an arbitrary local ip address like 192.168.0.1 which will be also inserted in the following routing and gateway installation.
INSTALLATION OF WIFIDOG GATEWAY
- In a local directory ex. /root download the wifidog gateway software with
svn checkout https://dev.wifidog.org/svn/trunk/wifidog
- Change directory to
cd /root/wifidog
- Install the gateway with
./autogen.sh
make
make install
- Connect the second wired network card and configure it.
Follow the instruction to set up the SuSE 10 machine as a router given in http://www.novell.com/coolsolutions/feature/16579.html
- Connect a second computer to the server through the internal card of the server.
- Test if the connection to internet with a second computer through the server works.
- Create the /usr/local/etc directory
cp /root/wifidog.conf /usr/local/etc/.
cp /root/wifidog-msg.html /usr/local/etc/.
- Configure in wifidog.conf (to be linked to the auth server) the internal and external units according to your hardware and server configuration. For example:
GatewayID default
ExternalInterface? eth0
GatewayInterface? eth2
Hostname 192.168.0.1
SSLAvailable no
SSLPort 443
HTTPPort 80
Path /
}
- 192.168.0.1 is the arbitrary ip address given to the internal card while setting the server as a router. The address is also equivalent to the name given to the default virtual host to the authorization server.
- Restart the server
- Start the gateway with
wifidog -f -d 7
