Routing Registry Tutorial1. Create Maintainer objectAbout the Maintainer ObjectThe maintainer object is your primary Point of Contact to describe your network's architecture. Your maintainer object is used to authorize any object creations, modifications, or deletions as well as being operational point of contact for operational issues with your network. In other words, if your network does not have a maintainer object, it cannot be maintained on the registry. With the dn42 whois there are two methods of authorization available: PGP and CRYPT-PW. The use of the PGP authentication is encouraged as it does not depend on a secure channel to the whois service, though your new maintainer object will have only the CRYPT-PW method registered and you will have to enable PGP later. Register a MaintainerMaintainer objects specify the persons who are allowed to execute updates to the registry, and how they are authenticated. When an information about your network such as AS or route information object is submitted, a Maintainer object is referenced in the submitted object using the mnt-by attribute. If a Maintainer object is not referenced, the submission will be rejected. So, in order to register information about your network to the registry, you must register a Maintainer object first. To register your maintainer object, first you need to determine the names and e-mail addresses of persons from your organization who are allowed to update and/or submit network information objects such as Route and AS objects. Use the maintainer object template below to fill in the fields with appropriate information. The value of mnt-by attribute should be the same value of the mntner attribute. Later, you will find out that all objects must be signed with mnt-by attribute, which registers the object being submitted under your maintainer. Feel free to take a look at the example below. Then copy the maintainer object template you just completed into an e-mail message and send it off to db-adm@whois.dn42.net. All maintainer object registrations must be reviewed by a human and are then added to the registy. It may take up to several days as dn42 is a volunteer based project and everyone is busy, but we will try our best to complete it early as possible.
You find crypt.c here. It uses the crypt(3) method to calculate a password for usage with CRYPT-PW. To compile it, you need to issue someting like gcc -o crypt crypt.c -lcrypt on GNU/Linux and something similar but without "-lcrypt" on most other unices. Simply run it with ./crypt then, the rest should be straight forward. 2. Extend Maintainer objectAdding a person to your handleNow that you have your Maintainer object installed into the registry, you may want to extend it by contact information abount your roles. To do so, you need to add a person object. For this, formulate a request similar to the example below and send it to auto-dbm@whois.dn42.net. For using the CRYPT-PW authorization, you will need to put your password into the registered object's password: attribute. See the example below to see how it is done.
Adding a PGP-KeyAs you have seen, you need to send you password in plaintext over a channel which is more or less not under your control, which is obviously a security risk. Let's make it our next task to fix this. As a more secure way we will use the PGP authentication method. A prerequisite for this is adding your PGP-Key to the whois database system. To do so we add a key-cert object to store the public key. As you will probably notice, multiline syntax is used.
Actually using your PGP-Key for authenticationNow that the key is stored in the system, the maintainer object has to be linked to it. This is achieved by updating the maintainer object and adding a new authentication method. For updating an object, we simply get its recent version from the database (whois -h whois.dn42.net MNT-WEISHAUPT in this case), make our changes to it, update the changed: attribute and send it to auto-dbm@whois.dn42.net. The old version is replaced with the new one. Of course we need to add the correct password: attribute when using CRYPT-PW.
3. Register ASRegistering the aut-num objectNow that you have Maintainer object installed into the registry, you need to register an object that details your AS's routing policy, such as how you are connected to the rest of the world. This might be a good time to test your PGPKEY authentication. Sign the next request with your key. Make sure to use inline formatting and not PGP/MIME.
|
Last modified: 2010-05-17 Summary: Christian Franke Author Table of Contents: |