hostnames registration application for I2P
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
R4SAS 7b444c3f89 add comment ignore 8 years ago
bin add comment ignore 8 years ago
conf py-i2phosts-checker: implement multiple lookup tries 11 years ago
contrib Add upstart initscript for py-i2phosts-master 11 years ago
pyi2phosts fixed tabulation 8 years ago
tools Update issues URL 8 years ago
.gitignore .gitignore: do not ignore inproxy.html 14 years ago
.placeholder Add .placeholder for distutils 14 years ago
LICENSE Add GPLv2 license 14 years ago
README.md added README 8 years ago
manage.py Update manage.py to django 1.5 version and move it one level above 11 years ago
requirements.txt requirements.txt: add psycopg2 9 years ago
setup.py Convert tabs to spaces 9 years ago
web Rename web -> pyi2phosts 14 years ago

README.md

py-i2phosts

Overview

py-i2phosts is a hostnames registration application for I2P. It is open source (licensed under GPL). Web interface and database structure are made using django web framework. Other scripts are plain python programs, however, they are intergated with django app. Current status: all of base features are implemented and project is ready for production use. Tested with python 2.7 and django 1.8.x. There are working instances of py-i2phosts: http://inr.i2p/ and http://no.i2p/

Features

  • Web interface is made using django (a set of templates included)
    • Hosts submission page with local policy and form with fields Hostname, Destination and Description
    • Page for verification of upper-level domain when addind a subdomain
    • Index page
    • Navigation menu
    • Language switcher, multi-language interface (currently available in english and russian)
    • Browsing alive and recently added hosts (URLs are provided with addresshelpers)
    • RSS feeds for all active hosts and freshly added hosts
    • Searching by hostname
  • Admin interface (via django admin) features:
    • browsing all hosts with various filtering and ordering options
    • manual hosts editing and approving recently added hosts
    • preview b32 links for all hosts
    • managing external sources from which hosts.txt should be fetched
  • Validation of hostname and destination as described in I2P naming rules both in web interface and in admin interface. Also some additional validation (see http://zzz.i2p/topics/739 for details) is present in web interface.
  • Injector program: it parses hosts.txt files and adds hosts from them into database
  • hosts.txt fetcher: it fetches hosts.txt from another services and runs injector on them. Fetcher uses Last-Modified and ETag http headers for safe bandwith.
  • Hosts checker: it does availability check of each host using SAM python interface and updates "last seen" timestamp in database
  • hosts.txt builder: it queries database and builds a hosts.txt file
  • Hosts maintainer: it implements logic for all host-maintainance operations (activating, deactivating, deleting, setting expiration date)
  • Master daemon: it runs as unix daemon and periodically launches all other py-i2phosts programs.
  • All scripts (except injector and builder) can write all activity to log files. Web interface can log all submission attempts and all validation errors.
  • All scripts are supports command-line options and config files
  • Built-in jump service
  • Install script (using distutils)

Source code

Sources available in 2 places:

Documentation

See the Documentation page.

Discussion area

Here: http://zzz.i2p/topics/733

TODO and ideas

Web interface

  • Add hostname reservation feature into admin interface
  • Improve design
  • Add categorisation by tags
  • Add news
  • Lookup tool b32->b64 in web-interface
  • Add option "share subdomains" to add form: everyone will be permitted to add subdomains in this domain
  • Register multiple subdomains in the same time with primary domain registration
  • Search: show b32 also
  • Implement flexible API for exchanging between registrators
  • Show meaningfull error pages instead of redirects to /

Internals

  • Parallel lookups in checker
  • Add "last probe" timestamp for hosts. It will help to reduce lookups frequency for inactive hosts.
  • Display "key conflict" errors in admin interface or send email to admin
  • Probe alive hosts for http service, and provide http:// links at browse page only for them
  • Implement json-rpc API for inter-registration services communications.

Other

  • Write some documentation ("how it works" for each component, INSTALL, README and so on)