Installing nipap on ubuntu 16.04
What is NIPAP?
nipap is a sleek, intuitive and powerful IP address management system built to handle large amounts of IP addresses.
Packages required:
All below commands are run as root user.
Adding a repository
28 echo "deb http://spritelink.github.io/NIPAP/repos/apt stable main extra" > /etc/apt/sources.list.d/nipap.list
29 wget -O - https://spritelink.github.io/NIPAP/nipap.gpg.key | apt-key add -
Check installed apt gpg key for repository
30 apt-key list
Installing nipapd backend daemon
23 apt-get install nipapd
Installing nipapd frontend web-gui
24 apt-get install nipap-www
Check IP address
25 ip a
Update repository after adding new repository
27 apt-get update
Install all the required packages before installing nipap
33 apt-get install postgresql-9.5-ip4r postgresql-contrib-9.5
44 apt-get install libapache2-mod-wsgi apache2 apache2-utils
Check service status of postgresql
38 systemctl status postgresql
Search for the nipap package
34 apt-cache search nipap
Create first nipap admin user
40 nipap-passwd add --username nipap-www --password secret --name "User account for the web UI" --trusted
View all available users for nipap
66 nipap-passwd list
41 vi /etc/nipap/nipap.conf
42 clear
Create a normal user
43 nipap-passwd add --username myuser --password mypassword --name "my user"
Enable python wsgi module for apache2
48 a2enmod wsgi
Check IPtables for any firewall rule
50 iptables -L
Edit default virtual host configuration
51 vi /etc/apache2/sites-available/000-default.conf
Assign proper permission to the /var/cache/nipap-www
52 chown -R www-data:www-data /var/cache/nipap-www
53 chmod -R u=rwX /var/cache/nipap-www
Restart apache server
49 systemctl restart apache2.service
56 vi /etc/nipap/nipap.conf
Delete unnecessary users in nipap-passwd list
70 nipap-passwd delete -u <username>
Access nipap database with user nipap
89 psql -d nipap
View any error log for apache2
90 tail -f /var/log/apache2/error.log
Incase with issue regarding wrong username and password Due to some strange error in the documentation of nipap we have to delete user nipap-www and again add the same user with password secret
101 nipap-passwd list
102 nipap-passwd delete -u nipap-www
104 nipap-passwd add --username nipap-www --password secret --name "User account for the web UI" --trusted
Edit /etc/nipap/nipap.conf and add following line in [www] field
xmlrpc_uri = http://nipap-www@local:secret@127.0.0.1:1337
Restart apache
107 systemctl restart apache2.service
Visit ip address on the browser to view login page
Enter the admin user= nipap-www
and password= secret
Github link:
https://spritelink.github.io/NIPAP/
nipap-passwd man page:
https://github.com/SpriteLink/NIPAP/blob/master/nipap/nipap-passwd.man.rst
NIPAP issue with username and password
https://github.com/SpriteLink/NIPAP/issues/927
Demo of NIPAP:
http://nipap-demo.spritelink.net/
nipap is a sleek, intuitive and powerful IP address management system built to handle large amounts of IP addresses.
Packages required:
- nipapd
- nipap-www
- postgresql-9.5-ip4r
- postgresql-contrib-9.5
- libapache2-mod-wsgi
- apache2
- apache2-utils
All below commands are run as root user.
Adding a repository
28 echo "deb http://spritelink.github.io/NIPAP/repos/apt stable main extra" > /etc/apt/sources.list.d/nipap.list
29 wget -O - https://spritelink.github.io/NIPAP/nipap.gpg.key | apt-key add -
Check installed apt gpg key for repository
30 apt-key list
Installing nipapd backend daemon
23 apt-get install nipapd
Installing nipapd frontend web-gui
24 apt-get install nipap-www
Check IP address
25 ip a
Update repository after adding new repository
27 apt-get update
Install all the required packages before installing nipap
33 apt-get install postgresql-9.5-ip4r postgresql-contrib-9.5
44 apt-get install libapache2-mod-wsgi apache2 apache2-utils
Check service status of postgresql
38 systemctl status postgresql
Search for the nipap package
34 apt-cache search nipap
Create first nipap admin user
40 nipap-passwd add --username nipap-www --password secret --name "User account for the web UI" --trusted
View all available users for nipap
66 nipap-passwd list
41 vi /etc/nipap/nipap.conf
42 clear
Create a normal user
43 nipap-passwd add --username myuser --password mypassword --name "my user"
Enable python wsgi module for apache2
48 a2enmod wsgi
Check IPtables for any firewall rule
50 iptables -L
Edit default virtual host configuration
51 vi /etc/apache2/sites-available/000-default.conf
Assign proper permission to the /var/cache/nipap-www
52 chown -R www-data:www-data /var/cache/nipap-www
53 chmod -R u=rwX /var/cache/nipap-www
Restart apache server
49 systemctl restart apache2.service
56 vi /etc/nipap/nipap.conf
Delete unnecessary users in nipap-passwd list
70 nipap-passwd delete -u <username>
Access nipap database with user nipap
89 psql -d nipap
View any error log for apache2
90 tail -f /var/log/apache2/error.log
Incase with issue regarding wrong username and password Due to some strange error in the documentation of nipap we have to delete user nipap-www and again add the same user with password secret
101 nipap-passwd list
102 nipap-passwd delete -u nipap-www
104 nipap-passwd add --username nipap-www --password secret --name "User account for the web UI" --trusted
Edit /etc/nipap/nipap.conf and add following line in [www] field
xmlrpc_uri = http://nipap-www@local:secret@127.0.0.1:1337
Restart apache
107 systemctl restart apache2.service
Visit ip address on the browser to view login page
Enter the admin user= nipap-www
and password= secret
Github link:
https://spritelink.github.io/NIPAP/
nipap-passwd man page:
https://github.com/SpriteLink/NIPAP/blob/master/nipap/nipap-passwd.man.rst
NIPAP issue with username and password
https://github.com/SpriteLink/NIPAP/issues/927
Demo of NIPAP:
http://nipap-demo.spritelink.net/
Comments
Post a Comment