Archive for category Linux
phpIPAM version 0.5 released
Dear all, I am happy to announce new version of phpipam IP address management – version 0.5, amongst others featuring VRF and AD authentication support. All new features and changes are described below…
DEMO: http://phpipamdemo.mihap.si/
List of bug fixes and new features:
New features: ------------- + Importing subnets from RIPE by AS in admin section; + Added switch management and changed switch logic; + Added VRF support; + Added AD domain authentication; + Added MAC address field to ip address; + Added database table and belonging fields check under admin; Bugfixes / enhancements: ------------------------ + Added DNS resolving when editing/adding IP address; + Added IE compatibility meta tag and IE UI improvements for IE >= 8; + Search returns also subnets and MAC searches; + Added mac address and IP status to XLS import/export scripts; + jQuery update from 1.6.2 to 1.7; + Highcharts update from 2.1.2 to 2.1.8; + Fixed dashboard errors if no IPv4/IPv6 subnets configured; + Fixed errors with viewing / modifying IP addresses for Operator users; + Fixed session cookie error on hosts; + Fixed error when saving settings; + Fixed instructions errors when inserting html code; + Fixed first free IP address not displaying in IP request;
For installation and updating just extract the package, edit config.php and open browser to run database installer / updater (or do it manually – read UPDATING).
Backup database files before upgrading!!!
Please note that for AD authentication ldap support is required in php installation!
You can download it on sourceforge site: phpipam-0.5
Some screenshots of new stuff:
Current plans for next release:
- Character support; - selectable fields (mac, switch, port, ...) - subnet splitting; - search for available subnets; - translations (XML); - Sorting of IP addresses; - Sorting of subnets; - custom CSS;
brm
phpIPAM version 0.4 released
Dear all, I am happy to announce new version of PHP IP address management – version 0.4. All new features and changes are described below…
DEMO: http://phpipamdemo.mihap.si/
List of bug fixes and new features:
New features: ------------- + Massive add / edit / delete by specifying IP range (e.g. 10.10.0.1 - 10.10.0.254); + Database upgrade / install from browser -> simplified installation/update procedure; + New usertype viewer - can only view IP address list; + Subnets can now be edited directly from IP address list; + Option to lock subnet for writing to no-admin users; + Device and Host list; + Option to specify which subnet can have IP requests when editing / adding subnet if module is enabled; + Latest version check on admin page; Bugfixes / enhancements: ------------------------ + Fixed overspanning of multiple sections; + Admin menu and add subnet now shown only to admins; + Fixed VLAN table to show nesting and IP request option and statistics; + Fixed subnet table to show nesting and IP request option; + Subnet Adding shows only master subnets in section not in all sections; + Tooltips and button hovers are now in separate javascript file; + Graphs show only subnets with non-0 ip addresses; + Various code enhancements + improved error handling; + Fixed URL links not updating after few clicks; + If loading slave subnet directly the subnet menu drops down and shows active slave subnet; + Clicking on master shubnet shows all nested subnets and statistics; + Redesigned log table; + Fixed search;
For installation and updating just extract the package, edit config.php and open browser to run database installer / updater (or do it manually – read UPDATING).
You can download it on source forge site: phpipam-0.4.tar
Some screenshots of new stuff:
brm
phpIPAM version 0.3 released
Dear all, I am happy to announce new version of PHP IP address management – version 0.3. Among other things It includes most requested subnet nesting…
DEMO: http://phpipamdemo.mihap.si/
List of bug fixes and new features:
New features: ------------- + Subnet nesting - you can now have master subnet and normal subnets belonging to it; + Server settings are now moved to database and can be set under admin menu; + Request IP module on login page with email notification; + Confirm/reject IP address request from admin page with mail notification; + Admin dashboard notification of new requests; + Autocomplete of owner and Switch name from all available when adding/editing IP address; + New settings quick access on button hover; + Option to export each subnet indivudually; Bugfixes / enhancements: ------------------------ + jQuery update from 1.6 to 1.6.2; + VLANs are now grouped by section; + Direct access to subnet from vlan table; + UI enhancements; + Fixed user editing bug where user update broke password; + Fixed password in new account notification; + Fixed percentage display on Dashboard; + IPv6 calculator /64 limit fixed; + Changed tooltip effect to appear instantly for smoother display; + Login functions are now separate file;
For upgrading please read UPGRADE file in package, basically it is done in standard unix way:
- Backup database and existing files;
- Extract package and edit settings in config.php;
- Update database with importing UPDATE.sql file;
New installation stays the same as before…
You can download it on source forge site: phpipam-0.3.
Some screenshots:
Comments welcome.
Kind regards,
Miha
IPAM (IP address management)
Lately I have played around in my free time with creating IPv4/v6 address management program, as a replacement for managing IP addresses and subnets etc. in excel file… There are many commercial IPAMs available, which can do even more stuff, but I prefer to keep things light, simple, free and without unneeded balast.

App is ajax-based using jQuery libraries, it uses php scripts and javascript and some HTML5 features, so some modern browser is preferred to be able to display javascript quickly/correctly…
Some main features include:
- Section / Subnet separation
- IPv4/v6 support
- Displays free range and number of clients
- Subnet statistics
- User management
- E-Mail notification
- Import IP addresses from XLS / CSV file
- IPv4/v6 calculator
- Search IP database
- and many others.
If there will be interest I plan to launch it as an open source project. Next plans for v 0.2 are use of domain authentication, viewer-only user type, rss change feed, mass edit/delete/create, etc.
App can be tested on the following demo page:
ipamdemo
Some screenshots are below…
suggestions/comments are welcome ![]()
brm
mysql | sort by IP address
One small tip – if you have table of IP addresses and you want to sort them by IP addressing it will not work properly…:
mysql> select ipaddr from ipaddresses order by ipaddr asc; +---------------+ | ipaddr | +---------------+ | 10.12.50.1 | | 10.12.50.123 | | 10.12.50.2 | | 10.12.50.5 | +---------------+ 4 rows in set (0.00 sec) mysql>
As you can see the .123 should come last but it is in second place… The solution is to use mysql's aton function, which transforms IP into integer and sorts the fields properly…
mysql> select ipaddr from ipaddresses order by INET_ATON(ipaddr) ASC; +---------------+ | ipaddr | +---------------+ | 10.12.50.1 | | 10.12.50.2 | | 10.12.50.5 | | 10.12.50.123 | +---------------+ 4 rows in set (0.00 sec) mysql>
Apache IPv6 UMTS server @Nokia N900
Nokia N900 is the first mobile device that can do "dual-stack" IPv4 and IPv6 connection on packet data mobile networks (EDGE,UMTS,HSPA) – well, 2 separate PDP contexts anyway, but close enough since it is not really supported by 3GPP yet. It requires some kernel modifications, which I cannot provide here, but if there is any interest send me email and I can provide some info on that subject…
Anyway, once we have IPv6 connectivity to internet we can also setup device to act as web server – since it is a Linux device this is not too hard to do. However, most mobile operators block the incoming TCP connection toward clients to prevent overcharging, so contact your ISP to verify if incoming connections are allowed. Here is the output from my ifconfig, that shows two active mobile data interfaces and sessions, one for IPv4 and second for IPv6:
gprs0 Link encap:UNSPEC HWaddr *
inet addr:10.10.9.14 P-t-P:10.10.9.14 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MTU:1400 Metric:1
RX packets:1158 errors:0 dropped:0 overruns:0 frame:0
TX packets:1294 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:162582 (158.7 KiB) TX bytes:139618 (136.3 KiB)
gprs1 Link encap:UNSPEC HWaddr *
inet6 addr: 2a02:840:beef:30::2/0 Scope:Global
UP POINTOPOINT RUNNING NOARP MTU:1400 Metric:1
RX packets:73 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:8680 (8.4 KiB) TX bytes:39414 (38.4 KiB)
Genoo linux article
Dober clanek o Gentoo Linuxu:
http://kernelnews.com/articles/2010/gentoo_linux.html

Gentoo Linux provides one of the most highly configurable Operating Systems around. Although the time spent installing and configuring Gentoo can turn out to be days instead of hours, the final installation will be totally optimized and customized to how you use your computer.
Zadnje case opazam, da je veliko manj tezav pri nadgradnji paketov…
lpm
Captcha with jQuery, ajax and php
A while ago I came across this guide, as I was searching for some simple captcha implementation for some website. Plain and simple, all clear. The only thing I didn't like too much is the javascript part, for webpages I mainly use jQuery for javascripting, so I wanted to use jquery for ajax functions. Also, including multiple inputs besides captcha code makes javscript more comeplex (please read the comments, near the end) nad that is where jquery comes in handy.
The simplest possible example you can find on http://mihap.si/share/captcha/.
What we need:
IPv6 proxy streznik | squid 3.1
Squid od verzije 3.1 (trenutno je se v beta verziji) naprej pozna IPv6 protokol in zna delati kot ipv6 proxy streznik… To je med drugim uporabno tudi na mobilnem podrocju – vecina mobilnih naprav se nima dual-stack podpore (oz ipv6 podpore), ce smo natancni, mislim da v casu pisanja samo Nokia Symbian telefoni podpirajo IPv6 dialup preko EDGE/HSPA omrezja. Tak proxy postane uporaben v primeru, da imamo na voljo samo IPv6 povezavo, rabimo pa tudi dostop do IPv4 streznikov.

Do squida dostopamo preko IPv6, ta pa nam poleg IPv6 servira tudi IPv4 sajte -> v kolikor dobi od DNSa oba A in AAAA record jasno uporabi IPv6 povezavo… Vec o IPv6 podpori v lignju si lahko preberete na tem linku…
Same instalacije se nebi dotikal, kot vedno je odvisna od platforme… V kolikor nalagate binarne pakete bi morali imeti ipv6 podporo po defaultu omogoceno, v nasprotnem primeru ne pozabite sestaviti squida s podporo za ipv6.
Nastaviti moramo sledece:
- IPv6 nastavitev dostopovne tocke (APN) na telefonu ali
- Nastavitev brskalnika, da uporablja proxy streznik (google it!)
- IPv6 konfiguracija streznika
Is my GPRS/UMTS modem ipv6 capable?
Here is how you can check if your modem is capable of doing an ipv6 dialup… I won't get into details about how to connect to device via terminal, i wrote something similar in this post.. (Hint: M$ hyperterminal or putty, Linux and OsX minicom)
Once you are logged onto device you have to issue following command, with which you see the supported connection types: at+cgdcont=?. Here is the output from my Novatel mc990D card:
at+cgdcont=? +CGDCONT: (1-16),"IP",,,(0-2),(0-3) +CGDCONT: (1-16),"PPP",,,(0-2),(0-3) +CGDCONT: (1-16),"IPV6",,,(0-2),(0-3)
If you see a third line (yes, the ipv6 one) then you are good to go.
brm


























