[hipl-users] Re: hiphosts invalid hit obtained durning connection test

  • From: Mika Kousa <mkousa@xxxxxxxxx>
  • To: hipl-users@xxxxxxxxxxxxx
  • Date: Thu, 20 Jan 2005 14:58:33 +0200 (EET)

On Thu, 20 Jan 2005, Irene Garcia Vargas wrote:

-> Hallo all, I am Irene, student in Stuttgart.I am trying to testing the 
-> connection between two host following the HOW-TO... I have obteined an 
-> invalid hit,and I can not find how to regenerate a good one.I have 
-> detailed all the steps I did. Any comment wil be welcome, Thank you in 
-> advance Irene

....

-> # ./hipconf add hi default
-> info(hipconf.c:274@handle_hi): Using hostname: ksat77
-> error(hipconf.c:290@handle_hi): No key file given, use default
-> debug(crypto.c:177@dsa_to_hit): HIT is 
5b40:1489:f3d1:8777:ffc3:8545:aa4d:XXXX
-> 
-> 
-> Then I leave the "root" user, and try the conection, and I got this error:
-> 
-> igvargas@ksat77:~/hipl--main--2.6/test$ ./conntest-server tcp 1111
-> 
-> igvargas@ksat92:~/hipl--main--2.6/test$ ./conntest-client-gai 
ksat77.domain.name tcp 1111
-> hiphosts invalid hit

This usually means that a line is invalid in the /etc/hip/hosts. We 
currently support only lines containing the HIT and then the hostname 
(only one hostname, no aliases). Make sure there are no additional 
characters in the same line and there is one space between the HIT and the 
hostname (not a tab character).

Also make sure that the HIT is really valid. That is, it is in IPv6 
address format (only characters 0-9 and a-f).

If the problem persists, we will see what to do next.


Then about that "connect: Connection refused" thing. We have also noticed 
that when using the conntest-client-gai you sometimes get that error even 
though the HIP setup goes through.

Using netcat6 instead of conntest-client-gai after the HIP setup seems to 
work though. netcat6 is simple to use (assuming you have it installed 
already), for example using TCP and connectin to port 3333:
server side of the connection: "nc6 -l -p 3333 -vv -n"
client side of the connection: "nc6 -vv -n HIT_of_the_server 3333"



By the way, you can setup HIP more easily using the test/hipsetup script.
It can even install the modules when given the option -m. It does not 
install the kernel, that you have to do by yourself.

Other related posts: