Re: Simple cell with standalone router/server + backup
"Elvis Stansvik" <[email protected]> Fri, 12 Sep 2008 23:40:37 +0200
| Newsgroups | gmane.network.silc.user |
|---|---|
| Message-ID | <[email protected]> |
2008/9/12 Pekka Riikonen <[email protected]>: > : > Unfortuantely the current silcd requires ServerConnection entry, real or > : > dummy, for it to recognize that it is router. This will be fixed in 1.2. > : > I'm not sure if the backup router stuff requires IP addresses instead of > : > host names, but you may also attempt to use only IP addresses and see if > : > it makes a difference, also. > : > : Hm. Okay. I tried making it a dummy connection like you suggested, and > : also changed to using only IP addresses, but still tcpdump shows > : absolutely no traffic on port 706 between the two hosts when I do > : state changing stuff like e.g. /join foo followed by /cmode foo +f. > : > The backup router configuration is wrong as well. The backup router needs > to use the primary router as its primary router connection and thus use > RouterConnection. But because it is also router it also must have real > or dummy ServerConnection entry: > > ServerConnection { > host = "dummy"; > backup = true; > }; > > RouterConnection { > host = "silc.dose.se" > initiator = true; > }; > > Backup router must initiate connection to primary. > > Primary then has: > > ServerConnection { > host = "dummy"; > }; > > RouterConnection { > host = "silc2.dose.se" > backuphost = "silc.dose.se" > backupport = 706; > backuplocal = true; > }; > > I tested this and it worked... Thanks a lot for your patience with me. I see how I got it wrong now. However after I've adjusted my configuration to be: Backup Router -------------- ServerConnection { Host = "dummy"; Backup = true; }; RouterConnection { Host = "silc.dose.se"; Port = 706; PublicKey = "/opt/etc/silc.dose.se.pub"; Params = "normal"; Initiator = true; }; Primary Router --------------- ServerConnection { Host = "dummy"; }; RouterConnection { Host = "silc2.dose.se"; PublicKey = "/usr/local/etc/silc/silc2.dose.se.pub"; BackupHost = "silc.dose.se"; BackupPort = 706; BackupLocal = true; }; I first start up silcd on the primary router like this: [astan@franz /var/log/silc]$ sudo silcd -D 99 [Logging] [Info] SILC Server started But then when I start up silcd on the backup router, I get a segfault on the primary: [Logging] [Info] Incoming connection h251n2fls33o879.telia.com (213.66.197.251) Segmentation fault: 11 (core dumped) It segfaults right at the connection attempt from the backup. Got any ideas off the top of your head about this, or should I bring out gdb? :) Elvis > > : > All state data is transferred, topics, modes, clients, channels, servers, > : > etc. > : > : Okay that's great. I forgot to ask though; are the public keys that > : the server read in from PublicKeyDir considered state data? So that if > : I at some point E would actually allow client connections to my backup > : router, could my clients authenticate with their public keys to the > : backup router and it would work? E.g. the keys would have been > : transferred to the backup? > : > Public keys are not transferred. > > 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/