Re: Simple cell with standalone router/server + backup
"Elvis Stansvik" <[email protected]> Sat, 13 Sep 2008 17:35:37 +0200
| Newsgroups | gmane.network.silc.user |
|---|---|
| Message-ID | <[email protected]> |
2008/9/13 Pekka Riikonen <[email protected]>: > > : I did some investigation on my own, and right before this (which is > : false, hence the error): > : > : if (!memcmp(server_id->ip.data, ip, 4)) > : > : in silc_id_is_valid_server_id(), I printed some of the values: > : > : [Logging] [Error] remote_ip 213.66.197.251 > : [Logging] [Error] server_id->ip.data > : [Logging] [Error] server_id->ip.data_len 4 > : [Logging] [Error] server_id->rnd 255 > : [Logging] [Error] server_id->port 49666 > : > : See how server_id->ip.data is completely empty.. I'm not really sure > : where to go from here. The code is very beautiful and clean by the > : way! > : > It's because you bind to 0.0.0.0. Bind to the IP you want to use. Also, > if you are behind NAT use the public_ip (unfortunately undocumented > feature in current release) to set the public IP address. You may also > use that in case you bind to 0.0.0.0: > > primary { > ip = "0.0.0.0"; > public_ip = "213.66.197.251"; > port = 706; > }; > > or bind directly to the correct IP in which case you don't need to use the > public_ip. Oh that makes sense. It is a bit unfortunate though because I was hoping that in the end I would be able to set up SILC without defining any of my IP addresses, since they are dynamic. If my IP changes all that I would have to do is change the DNS records. Now I will have one more place to correct the IPs when my addresses change. Anyway, I now finally have it working so I want to thank you for your patience. Elvis > > Pekka > ________________________________________________________________________ > Pekka Riikonen priikone at silcnet.org > Secure Internet Live Conferencing (SILC) http://silcnet.org/ > _______________________________________________________________ Info: https://lists.silcnet.org/mailman/listinfo/silc-users Archive: https://lists.silcnet.org/pipermail/silc-users FAQ: http://silcnet.org/support/faq/