Thread View: news.software.nntp
6 messages
6 total messages
Started by Steve Crook
Fri, 10 Dec 2010 10:35
Multiple bind addresses
Author: Steve Crook
Date: Fri, 10 Dec 2010 10:35
Date: Fri, 10 Dec 2010 10:35
6 lines
1214 bytes
1214 bytes
Hi all, Looking at the man page for inn.conf, it appears that both bindaddress and bind6address will only take a single address. This makes it impossible to bind inn to a specific external address and localhost. Is there a way to do it, or are there good reasons for not doing it?
Re: Multiple bind addresses
Author: D. Stussy
Date: Fri, 10 Dec 2010 21:23
Date: Fri, 10 Dec 2010 21:23
20 lines
2035 bytes
2035 bytes
"Steve Crook" <steve@mixmin.net> wrote in message
news:slrnig40jd.iq6.steve@news.mixmin.net...
> Looking at the man page for inn.conf, it appears that both bindaddress
> and bind6address will only take a single address. This makes it
> impossible to bind inn to a specific external address and localhost. Is
> there a way to do it, or are there good reasons for not doing it?
True. These bind only to a specific address.
Reason: That's the way networking is implemented. One may bind to a
specific address or to the unspecified address ("0.0.0.0" or "::").
Likewise, one may bind to a specific port or let the OS choose one. The
limitation is in the TCP/IP socket interface.
If you want to bind to specific, multiple addresses, you have two choices:
1) Run multiple instances of the program, or
2) Run one instance of the program (using the unspecified address) and
limit access via another means (e.g. a firewall).
Re: Multiple bind addresses
Author: Russ Allbery
Date: Fri, 10 Dec 2010 21:41
Date: Fri, 10 Dec 2010 21:41
17 lines
1984 bytes
1984 bytes
Steve Crook <steve@mixmin.net> writes:
> Looking at the man page for inn.conf, it appears that both bindaddress
> and bind6address will only take a single address. This makes it
> impossible to bind inn to a specific external address and localhost. Is
> there a way to do it, or are there good reasons for not doing it?
INN currently doesn't have a way to listen more generally on multiple
interfaces. Most of the code is already there in order to support
listening on both IPv4 and IPv6 addresses, so it probably wouldn't be
particularly hard to finish the work, but it's not currently implemented.
--
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: Multiple bind addresses
Author: Steve Crook
Date: Sat, 11 Dec 2010 18:42
Date: Sat, 11 Dec 2010 18:42
15 lines
1781 bytes
1781 bytes
On Fri, 10 Dec 2010 13:23:39 -0800, D. Stussy wrote in Message-Id: <idu5p3$3e9$1@snarked.org>: > If you want to bind to specific, multiple addresses, you have two choices: > 1) Run multiple instances of the program, or > 2) Run one instance of the program (using the unspecified address) and > limit access via another means (e.g. a firewall). Thanks for the reply. Yes, running multiple instances is an option but it seems overkill when the bind to localhost is simply for various internal functions. Binding to all interfaces was never really an issue with IPv4 as the general principle was always to share a single address between multiple services. With the (admittedly slow) adoption of IPv6, I expect it will become a lot more common for people to run services on dedicated addresses.
Re: Multiple bind addresses
Author: Steve Crook
Date: Sat, 11 Dec 2010 18:45
Date: Sat, 11 Dec 2010 18:45
11 lines
1708 bytes
1708 bytes
On Fri, 10 Dec 2010 13:41:01 -0800, Russ Allbery wrote in Message-Id: <87pqt9i9w2.fsf@windlord.stanford.edu>: > INN currently doesn't have a way to listen more generally on multiple > interfaces. Most of the code is already there in order to support > listening on both IPv4 and IPv6 addresses, so it probably wouldn't be > particularly hard to finish the work, but it's not currently implemented. Thanks Russ, for now I'll leave IPv4 bound to all interfaces and just specifically bind IPv6 to a single address. This will suffice until such time as everything is IPv6. I don't plan to hold my breath. :)
Re: Multiple bind addresses
Author: D. Stussy
Date: Sun, 12 Dec 2010 08:42
Date: Sun, 12 Dec 2010 08:42
22 lines
2411 bytes
2411 bytes
"Steve Crook" <steve@mixmin.net> wrote in message news:slrnig7hge.iq6.steve@news.mixmin.net... > On Fri, 10 Dec 2010 13:23:39 -0800, D. Stussy wrote in > Message-Id: <idu5p3$3e9$1@snarked.org>: > > If you want to bind to specific, multiple addresses, you have two choices: > > 1) Run multiple instances of the program, or > > 2) Run one instance of the program (using the unspecified address) and > > limit access via another means (e.g. a firewall). > > Thanks for the reply. Yes, running multiple instances is an option but > it seems overkill when the bind to localhost is simply for various > internal functions. Binding to all interfaces was never really an issue > with IPv4 as the general principle was always to share a single address > between multiple services. With the (admittedly slow) adoption of IPv6, > I expect it will become a lot more common for people to run services on > dedicated addresses. Yes, like me. I have a dedicated IPv6 address for my news server virtual host. It has two services: nntp and http (for statistics).
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