Skip to content

Commit

Permalink
Release 1.8p1
Browse files Browse the repository at this point in the history
  • Loading branch information
Cougar committed Oct 1, 2003
1 parent fa170dc commit 4f9d21c
Show file tree
Hide file tree
Showing 9 changed files with 311 additions and 65,868 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
01.10.2003 1.8p1
! Juniper "show route" command changes
! Parser changes for Juniper output
+ timeout problem fix by DJL
+ new configuration option "TimeOut"

02.07.2003 1.8
+ Community descriptions
! use Berkeley DB instead of plain text file (compile with makedb.pl)

17.06.2003 1.7p7
! as2link parser fix - thanks to Rob Wise

Expand Down
54 changes: 46 additions & 8 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ to /usr/local/httpd/htdocs/lg directory.

1. Create directory where you want to keep LG files

mkdir /usr/local/httpd/htdocs/lg
> mkdir /usr/local/httpd/htdocs/lg

2. Copy lg.cgi, as.txt, as-apnic.txt, as-arin.txt, as-ripe.txt, lg.conf and
favicon.ico to this directory, make CGI executable
2. Copy lg.cgi, lg.conf and favicon.ico to this directory, make CGI executable

cp lg.cgi as*.txt lg.conf favicon.ico /usr/local/httpd/htdocs/lg
chmod 644 /usr/local/httpd/htdocs/lg/*
chmod 755 /usr/local/httpd/htdocs/lg/lg.cgi
> cp lg.cgi lg.conf favicon.ico /usr/local/httpd/htdocs/lg
> chmod 644 /usr/local/httpd/htdocs/lg/*
> chmod 755 /usr/local/httpd/htdocs/lg/lg.cgi

3. Add these lines to your webserver config (In SuSE it is located at
/etc/httpd/httpd.conf or /etc/httpd/suse_include.conf). The order of these
Expand All @@ -40,10 +39,41 @@ ScriptAlias /lg /usr/local/httpd/htdocs/lg/lg.cgi

4. Restart webserver

killall -1 httpd
> killall -1 httpd

5. DONE!

6. Now you have time to set up AS num and community description files

Download as.txt, as-apnic.txt, as-arin.txt, as-ripe.txt and communities.txt
form http://www.version6.net/lg/db/ . Put all files to LG directory
(/usr/local/httpd/htdocs/lg).

> wget http://www.version6.net/lg/db/as.txt
> wget http://www.version6.net/lg/db/as-apnic.txt
> wget http://www.version6.net/lg/db/as-arin.txt
> wget http://www.version6.net/lg/db/as-ripe.txt
> wget http://www.version6.net/lg/db/communities.txt

7. If you prefer use Berkeley DB (you should! :-) ), then set up a database
file. PS! you can't use community descriptions without using Berkeley DB.

7.1 Create db file yourself by running makedb.pl in LG directory:

> ./makedb.pl

or

7.2 Download as.db from http://www.version6.net/lg/db/

> wget http://www.version6.net/lg/db/as.db

8. Make sure that all these files are readable for webrserver

> chmod a+r /usr/local/httpd/htdocs/lg/*.txt
> chmod a+r /usr/local/httpd/htdocs/lg/as.db




ADVANCED CONFIURATION
Expand All @@ -52,18 +82,26 @@ killall -1 httpd
You can generate as-apnic.txt, as-arin.txt and as-ripe.txt files yourself.
Just run Perl script makeaslist.pl and it creates these three files in your
current directory. It is recommended to update these files sometimes to get
fresh information about new AS numbers.
fresh information about new AS numbers. Don't forget to run makedb.pl after
that as well.

You can also edit as.txt file. These three autogenerated files are included
at the beginning of as.txt file. All lines below just overwrites previous
ones. This means that you can put any better names for AS numbers to this file
and will see it instead of these autogenerated names (which are quite hard to
understand some times).

Also you have to edit communities.txt file by hand. Don't forget to run
makedb.pl after that again.

A little bit about lg.conf file. In this example all logins are replaced with
"login" and passwords with "password". These lines are also commented out, so
you can use this configuration file even without any modification.

You can set ASList as as.txt file or as.db database. With my 900 MHz Celeron
it takes about 4 sec to load as.txt (and all included files) while using DB
takes only 0.2 sec ;-) Use DB if possible!

As long as the configuration file is quite simple, I don't give here any help
how to configure LG. Just look at lg.conf, all possible ways how to configure
it, are shown in ths file already ;-)
Expand Down
Loading

0 comments on commit 4f9d21c

Please sign in to comment.