http://www.unixuser.org/~euske/python/unagi/index.html
- Download unagi-0.39.py (32KBytes).
To run the program, first you need to modify the script to configure several parameters (although these parameters can be specified with command line options, too). Here is the part you need to change:
# your network information SIGNATURE = 'some_string' P2P_PORT = TCP_port_number_for_P2P_network # >1024 HTTP_PORT = HTTP_port_number_for_status_report # >1024 P2P_SCAN_RANGES = [ address_ranges_for_initial_scanning ] # ex. [ "192.168.0.100-199" ] P2P_ALLOW_RANGES = [ address_ranges_of_trusted_peers ] # ex. [ "192.168." ] HTTP_ALLOW_RANGES = [ address_ranges_of_http_clients ] # ex. [ "192.168.", "127." ] UNAGI_USER = 'username_to_run_the_script' # make sure to modify /etc/passwd!
Add the following entry to /etc/group:
log:x:888:
Add the following entry to /etc/passwd:
unagi:x:10000:888::/:/sbin/nologin
After setting the configuration, make sure this script launched at startup. You can also run the script directly from the shell for testing purpose.
Running on Linux, unagi.py refers to the following files:
* /proc/uptime
* /proc/loadavg
* /proc/meminfo
* /proc/stat
* /proc/net/dev
* /var/run/utmp
* /var/log/messages
* ps command (included in procps package)
| /Ablauf /Adressen /Ausbau /Etikette /NachArbeiten /Pflege-der-Daten /email /smtplib /tuning |
Linux/Internet/Mail/Schleuder/tuning (last modified 2008-11-04 07:00:05)