Thread View: news.software.nntp
8 messages
8 total messages
Started by Michael Grimm
Fri, 06 Mar 2009 21:09
HOWTO change IPs of a productive server, smoothly?
Author: Michael Grimm
Date: Fri, 06 Mar 2009 21:09
Date: Fri, 06 Mar 2009 21:09
20 lines
1558 bytes
1558 bytes
Hi - I need to change the IPs of my newsserver for various reasons. Right now both IPs are listed in DNS in parallel, only the reverse of the new IP correlates with my servers name [1]. After two days only two thirds of my peers are willing to accept the new IP as incoming at their site. Assumingly, not everyone runs a daily reload of incoming.conf ... So, what's a common strategy in such a situation? Besides mailing the newsadmin ;-) Regards, Michael [1] That's one of the reasons. -- to let
Re: HOWTO change IPs of a productive server, smoothly?
Author: D. Stussy
Date: Fri, 06 Mar 2009 23:22
Date: Fri, 06 Mar 2009 23:22
30 lines
2741 bytes
2741 bytes
"Michael Grimm" <trashcan@odo.in-berlin.de> wrote in message news:gos3dm$21ju$1@de-l.enfer-du-nord.net... > I need to change the IPs of my newsserver for various reasons. > > Right now both IPs are listed in DNS in parallel, only the reverse of > the new IP correlates with my servers name [1]. > > After two days only two thirds of my peers are willing to accept the new > IP as incoming at their site. Assumingly, not everyone runs a daily > reload of incoming.conf ... > > So, what's a common strategy in such a situation? Besides mailing the > newsadmin ;-) E-mailing them is what I do. I even have them grouped together so all I have to do is e-mail the group. I haven't used it for an IP address change, but I did use it recently to notify them ahead of time when I had a planned outage to change the hardware configuration of my server. Incoming.conf or newsfeeds/innfeed.conf aren't regularly reloaded by any INN server in a default setup. (Mine, which doesn't peer with you, does effectively reload innfeed.conf because once per day, I insert a dummy group into the active file so it can record what was created when in a HUMAN readable format. Active.times isn't human readable, as most people can't translate the 12-digit integer into a unix date/time in their heads.) Maybe a parameter (e.g. "reloadconf") could be added to the "news.daily" script to execute a "ctlinnd reload all". If people want to reload less, then they should be directed to write crontab entries.
Re: HOWTO change IPs of a productive server, smoothly?
Author: Ray Banana
Date: Sun, 08 Mar 2009 11:27
Date: Sun, 08 Mar 2009 11:27
25 lines
2233 bytes
2233 bytes
Michael Grimm wrote: > I need to change the IPs of my newsserver for various reasons. > > Right now both IPs are listed in DNS in parallel, only the reverse of > the new IP correlates with my servers name [1]. > > After two days only two thirds of my peers are willing to accept the > new IP as incoming at their site. Assumingly, not everyone runs a > daily reload of incoming.conf ... > > So, what's a common strategy in such a situation? Besides mailing the > newsadmin ;-) As some peers may have your IP address rather than your host name in their incoming file, I usually inform my peers in advance of such configuration changes and send a reminder after two weeks for those not as responsive as would be desirable. This will also give you the opportunity to verify your mail contacts and sort out peers that run on autopilot or have otherwise turned unresponsive -- Too many ingredients in the soup, no room for a spoon. http://news.motzarella.org
Re: HOWTO change IPs of a productive server, smoothly?
Author: Michael Grimm
Date: Sun, 08 Mar 2009 20:54
Date: Sun, 08 Mar 2009 20:54
28 lines
2285 bytes
2285 bytes
D. Stussy <spam@bde-arc.ampr.org> wrote: > "Michael Grimm" <trashcan@odo.in-berlin.de> wrote in message news:gos3dm$21ju$1@de-l.enfer-du-nord.net... >> I need to change the IPs of my newsserver for various reasons. > > E-mailing them is what I do. Well, that's what I initiated an hour ago with those very few remaining. It really surprised me how many did recognize my new IP without any interference from my side. > Incoming.conf or newsfeeds/innfeed.conf aren't regularly reloaded by any > INN server in a default setup. Yes. But I have been referring to incoming.conf. Sending articles to a peer will be rapidly recognized when it comes to an IP change, but receiving articles means reloading incoming.conf which is a default setup in crontab on those platforms I did run INN sofar: Slackware, IRIX, Debian, FreeBSD. But, I have been taught that it might not a good idea to reload incoming.conf every night (DNS hickups and alike). It would be a nice addon to innfeed, if one could propagate IP changes to peers using the established and accepted old IP. Regards, Michael -- to let
Re: HOWTO change IPs of a productive server, smoothly?
Author: D. Stussy
Date: Sun, 08 Mar 2009 21:23
Date: Sun, 08 Mar 2009 21:23
57 lines
4044 bytes
4044 bytes
"Michael Grimm" <trashcan@odo.in-berlin.de> wrote in message news:gp1b9f$cg7$1@de-l.enfer-du-nord.net... > D. Stussy <spam@bde-arc.ampr.org> wrote: > > "Michael Grimm" <trashcan@odo.in-berlin.de> wrote in message news:gos3dm$21ju$1@de-l.enfer-du-nord.net... > > >> I need to change the IPs of my newsserver for various reasons. > > > > E-mailing them is what I do. > > Well, that's what I initiated an hour ago with those very few remaining. > It really surprised me how many did recognize my new IP without any > interference from my side. > > > Incoming.conf or newsfeeds/innfeed.conf aren't regularly reloaded by any > > INN server in a default setup. > > Yes. But I have been referring to incoming.conf. Sending articles to a > peer will be rapidly recognized when it comes to an IP change, but > receiving articles means reloading incoming.conf which is a default > setup in crontab on those platforms I did run INN sofar: Slackware, > IRIX, Debian, FreeBSD. But, I have been taught that it might not a good > idea to reload incoming.conf every night (DNS hickups and alike). > > It would be a nice addon to innfeed, if one could propagate IP changes > to peers using the established and accepted old IP. Feel free to write a control message driver for such. However, instead of concentrating on the IP change, I would concentrate on the reload function. I think it should be restricted as follows: When the control message comes in, the driver looks at the last path element, does a DNS lookup on that, and compares the IP address to the IP address of the socket that the message arrived on. Only if they match should the operation (reload "X") be performed. This will limit the operation to those direct peers who receive the message from the peer issuing the message. All other servers will ignore the operation. There is one problem with this (which can be solved in "newsfeeds"): If any two peers of the issuing system also peer, it's possible that the message arrives via that peering instead of directly from the issuer and therefore won't be executed, and when the direct copy arrives, it is ignored. Even if the indirect copy removes itself from the history list, there could be a race condition that still ignores the direct copy - i.e. the direct copy comes in while the indirect copy is processing but hasn't removed its history entry yet. [The newsfeeds solution involves using the hop-control parameter, set to propagate on hop 1 only.] Considering all that, e-mail between administrators is still probably better. On my news server's primary web page where I list my peers, I also list what I think their IP address(es) is(are) (via a DNS lookup on their names from incoming.conf). Sometimes, I see the changes; sometimes not. At least that way, they know when any changes have propagated via DNS to me.
Re: HOWTO change IPs of a productive server, smoothly?
Author: Julien ÉLIE
Date: Sun, 08 Mar 2009 21:27
Date: Sun, 08 Mar 2009 21:27
58 lines
3788 bytes
3788 bytes
Hi Michael,
> It would be a nice addon to innfeed, if one could propagate IP changes
> to peers using the established and accepted old IP.
Automatically checking for new IPs would be better...
See ticket #76:
http://inn.eyrie.org/trac/ticket/76
A long-standing problem with innd is that it stores the DNS lookup
results for everything in incoming.conf when it starts up and then
never rechecks DNS. Most sites periodically reload incoming.conf
to work around this, but it still breaks the DNS requirement
to honor TTL.
Unfortunately, there's no way to do asynchronous DNS lookups using the
getaddrinfo() interface, which is required to support /etc/hosts and
other non-DNS sources of IP information, and we can't do the blocking
calls since they can block for a long time.
That leaves, as a solution, doing DNS resolution in a child process and
then asynchronously filling in the results. This will require putting
incoming connections to sleep until the DNS resolution finishes, and
then waking them up to do permission checking.
-=-=-=-
RFC 3977 says:
If NNTP clients or servers cache the results of host name lookups
in order to achieve a performance improvement, they MUST observe
the TTL information reported by DNS.
innd caches DNS lookups when reading incoming.conf and doesn't refresh
its knowledge of DNS except when incoming.conf is reloaded.
Impact: An explicit reload is required whenever the IP address of any
peer changes, and in the presence of network renumbering innd is
vulnerable to spoofing if DNS is the only authentication mechanism used.
Suggested fix: This is hard to fix without unacceptable performance
impact. The only good fix is to either fork a separate helper process
to do DNS lookups (since gethostbyname may block for essentially
an arbitrarily long period) or to use the direct resolver library so
that one can get access to a file descriptor and throw it into the
select loop. Either way, this requires keeping a DNS file descriptor
in the main select loop and updating knowledge of DNS periodically,
which is a substantial amount of additional complexity.
--
Julien ÉLIE
« -- Et souvenez-vous ! La seule chose que nous ayons à craindre,
c'est que le ciel nous tombe sur la tête !
-- ...Et souvenez-vous, Romains, la seule chose que nous ayons
à craindre, c'est les Gaulois ! » (Astérix)
Re: HOWTO change IPs of a productive server, smoothly?
Author: Russ Allbery
Date: Sun, 08 Mar 2009 21:31
Date: Sun, 08 Mar 2009 21:31
40 lines
3338 bytes
3338 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:
> Yes. But I have been referring to incoming.conf. Sending articles to a
> peer will be rapidly recognized when it comes to an IP change, but
> receiving articles means reloading incoming.conf which is a default
> setup in crontab on those platforms I did run INN sofar: Slackware,
> IRIX, Debian, FreeBSD. But, I have been taught that it might not a good
> idea to reload incoming.conf every night (DNS hickups and alike).
>
> It would be a nice addon to innfeed, if one could propagate IP changes
> to peers using the established and accepted old IP.
That's really not the right fix. We already have a protocol for
propagating IP address changes: it's called DNS. :)
The problem is that INN is incorrectly caching DNS records for too long,
ignoring the TTL. This, in turn, is because unless you assume DNS is the
resolver method and are willing to bypass any other name resolution (such
as /etc/hosts or YP), you have to use an interface to do DNS lookups that
blocks, which means that innd cannot safely do a DNS lookup for each
incoming connection without running the risk of blocking for quite some
time on lame DNS servers.
The right solution is to externalize DNS lookups into a helper program and
hook that into innd's main processing loop as a special channel. Then, on
a new connection, innd would dispatch a DNS lookup to its helper process
and then put the incoming connection to sleep until it gets a DNS reply,
at which point it would wake up the NNTP channel and take the appropriate
authorization action based on the DNS reply.
The reason why this hasn't been done yet is that it's a non-trivial amount
of work that requires a fairly good understanding of innd's internals. I
estimate it would take me about eight hours to write and test, and I doubt
I'll have the time any time soon.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: HOWTO change IPs of a productive server, smoothly?
Author: Michael Grimm
Date: Mon, 16 Mar 2009 21:55
Date: Mon, 16 Mar 2009 21:55
25 lines
2021 bytes
2021 bytes
Russ Allbery <rra@stanford.edu> wrote: > Michael Grimm <trashcan@odo.in-berlin.de> writes: >> It would be a nice addon to innfeed, if one could propagate IP changes >> to peers using the established and accepted old IP. > > That's really not the right fix. We already have a protocol for > propagating IP address changes: it's called DNS. :) ;-) [Solution] > The reason why this hasn't been done yet is that it's a non-trivial amount > of work that requires a fairly good understanding of innd's internals. I > estimate it would take me about eight hours to write and test, and I doubt > I'll have the time any time soon. What a pity! It took me two weeks until the last peer did reload incoming.conf ... Regards, Michael -- to let
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads