Thread View: news.software.nntp
15 messages
15 total messages
Started by Ron Schofield
Thu, 14 Oct 1999 00:00
Virtual news servers on INN2.2
Author: Ron Schofield
Date: Thu, 14 Oct 1999 00:00
Date: Thu, 14 Oct 1999 00:00
7 lines
1043 bytes
1043 bytes
Is it possible to setup virtual news servers (i.e. news.server1.com and news.server2.com) with INN 2.2? I think it is possible but have not seen anything in the man pages on virtual servers. Can anybody say yes or no, and if yes how does one go about it?
Re: Virtual news servers on INN2.2
Author: Ron Schofield
Date: Thu, 14 Oct 1999 00:00
Date: Thu, 14 Oct 1999 00:00
42 lines
1904 bytes
1904 bytes
Ron Schofield wrote:
> Is it possible to setup virtual news servers (i.e. news.server1.com and
> news.server2.com) with INN 2.2? I think it is possible but have not seen
> anything in the man pages on virtual servers. Can anybody say yes or no,
> and if yes how does one go about it?
OK, after getting some pointers on how to do this, I got it to work (with
COL 2.3). Heres how:
news.vserver1.com 192.168.20.201
news.vserver2.com 192.168.20.202
add the following to /etc/hosts
192.168.20.201 news.vserver1.com virtualnews1
192.168.20.202 news.vserver2.com virtualnews2
add the following to /etc/sysconfig/network-scripts/ifcfg-eth0
ifconfig eth0:1 192.168.20.201
route add -host 192.168.20.201 dev eth0:1
ifconfig eth0:2 192.168.20.202
route add -host 192.168.20.202 dev eth0:2
in /etc/news/inn.conf
bindaddress: 192.168.20.201
in /etc/rc.d/local.rc
nnrpd -D -b 192.168.20.202
That should be it....
Re: Virtual news servers on INN2.2
Author: Trond Kandal
Date: Thu, 14 Oct 1999 00:00
Date: Thu, 14 Oct 1999 00:00
30 lines
1946 bytes
1946 bytes
Ron Schofield <rschofie@hfx.andara.com> wrote:
> Is it possible to setup virtual news servers (i.e. news.server1.com and
> news.server2.com) with INN 2.2? I think it is possible but have not seen
> anything in the man pages on virtual servers. Can anybody say yes or no,
> and if yes how does one go about it?
As far as I know it is not possible to have more than virtual
newsserver. That is,- if You want use a different name for your
newsserver than the real hostname.
In my case I use a virtual interface and the following
entry in inn.conf.
...
bindaddress: <ip-addr>
sourceaddress: <ip-addr>
...
You'll also need an entry in DNS,- like:
virtual-hostname IN A <ip-addr>
Trond.
--
Trond Kandal*Nettseksjonen*ITEA*NTNU*7491 Trondheim*voice: +47 73597497
*mobile: +47 91897110
The only stable in life is change.
Re: Virtual news servers on INN2.2
Author: bill davidsen
Date: Thu, 14 Oct 1999 00:00
Date: Thu, 14 Oct 1999 00:00
29 lines
2132 bytes
2132 bytes
In article <38055966.B729A9E9@hfx.andara.com>, Ron Schofield <rschofie@hfx.andara.com> wrote: | Is it possible to setup virtual news servers (i.e. news.server1.com and | news.server2.com) with INN 2.2? I think it is possible but have not seen | anything in the man pages on virtual servers. Can anybody say yes or no, | and if yes how does one go about it? Yes. How well it works is dependent on how much work you want to do. The problem is that the stock nnrpd has no easy way to point to another .../etc/ directory where you could put all the vserver info needed. With the standard nnrpd you can change the IP in which it listens, or even the port. With 2.2 the nnrp.access file gives you some limited control of the newsgroups available relative to the client IP, and with 2.3 you have several ways to choose the access granted, and the means to add your own. What I don't think you have without recompiling is a good way to get nnrpd to use /some/dir/etc instead of /usr/local/news/etc as the starting point. Being able to do so would make it much easier. I looked at the doc and not the code, so there may be something I missed. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc When taking small children to a carnival, always have them go potty *before* you let them go on the rides, and let them eat all the junk food and candy *after*.
Re: Virtual news servers on INN2.2
Author: Joe Greco
Date: Thu, 14 Oct 1999 00:00
Date: Thu, 14 Oct 1999 00:00
70 lines
3494 bytes
3494 bytes
In news.software.nntp article <2UxN3.9$qN2.1441942@dca1-nnrp1.news.digex.net>, Dale Ghent <daleg@elemental.org> wrote: :Ron Schofield <rschofie@hfx.andara.com> wrote: : : :: Ron Schofield wrote: : ::> Ron Schofield wrote: ::> ::> > Is it possible to setup virtual news servers (i.e. news.server1.com and ::> > news.server2.com) with INN 2.2? I think it is possible but have not seen ::> > anything in the man pages on virtual servers. Can anybody say yes or no, ::> > and if yes how does one go about it? ::> ::> OK, after getting some pointers on how to do this, I got it to work (with ::> COL 2.3). Heres how: ::> ::> news.vserver1.com 192.168.20.201 ::> news.vserver2.com 192.168.20.202 ::> ::> add the following to /etc/hosts ::> ::> 192.168.20.201 news.vserver1.com virtualnews1 ::> 192.168.20.202 news.vserver2.com virtualnews2 ::> ::> add the following to /etc/sysconfig/network-scripts/ifcfg-eth0 ::> ::> ifconfig eth0:1 192.168.20.201 ::> route add -host 192.168.20.201 dev eth0:1 ::> ifconfig eth0:2 192.168.20.202 ::> route add -host 192.168.20.202 dev eth0:2 ::> ::> in /etc/news/inn.conf ::> ::> bindaddress: 192.168.20.201 ::> ::> in /etc/rc.d/local.rc ::> ::> nnrpd -D -b 192.168.20.202 ::> : :: Then use the nnrp.access file to control the access to the newsgroups. : :Okay, so you went through all that trouble just so you could use an A record :in DNS rather than just CNAME news.vserver2.com to news.vserver1.com ? : :What exactly does this buy you? In the end, no matter what interface a client :connects to, they're seeing the same active file and spool, as well as the :same nnrp.access file. : :You can forego all the virtual interface and inn.conf foo by just CNAME'ing :vserver2.com to vserver1.com and putting the appropriate access restrictions :in nnrp.access. : :Am I missing something? Yeah, you can actually make virtual news servers if you want to spend some time and effort on code... I stopped just shy of individual active files since I could gain largely the same effect via careful nnrp.access design. But I had support for separate nnrp.access, inn.conf, etc., etc., such that the only thing that'd give away that you weren't REALLY on ISP x's news server was that the IP address and traceroute would let the cat out of the bag. The system even included path munging to remove traces of the actual sponsoring organization. Ahhh, and it worked so well for over three years. Too bad I had to retire it. ... JG
Re: Virtual news servers on INN2.2
Author: Ron Schofield
Date: Thu, 14 Oct 1999 00:00
Date: Thu, 14 Oct 1999 00:00
45 lines
2092 bytes
2092 bytes
Ron Schofield wrote: > Ron Schofield wrote: > > > Is it possible to setup virtual news servers (i.e. news.server1.com and > > news.server2.com) with INN 2.2? I think it is possible but have not seen > > anything in the man pages on virtual servers. Can anybody say yes or no, > > and if yes how does one go about it? > > OK, after getting some pointers on how to do this, I got it to work (with > COL 2.3). Heres how: > > news.vserver1.com 192.168.20.201 > news.vserver2.com 192.168.20.202 > > add the following to /etc/hosts > > 192.168.20.201 news.vserver1.com virtualnews1 > 192.168.20.202 news.vserver2.com virtualnews2 > > add the following to /etc/sysconfig/network-scripts/ifcfg-eth0 > > ifconfig eth0:1 192.168.20.201 > route add -host 192.168.20.201 dev eth0:1 > ifconfig eth0:2 192.168.20.202 > route add -host 192.168.20.202 dev eth0:2 > > in /etc/news/inn.conf > > bindaddress: 192.168.20.201 > > in /etc/rc.d/local.rc > > nnrpd -D -b 192.168.20.202 > Then use the nnrp.access file to control the access to the newsgroups. > > That should be it....
Re: Virtual news servers on INN2.2
Author: Brad Knowles
Date: Thu, 14 Oct 1999 00:00
Date: Thu, 14 Oct 1999 00:00
19 lines
1551 bytes
1551 bytes
In article <939884163.620635@tornado.itea.ntnu.no>, Trond Kandal
<Spam.Trond.Kandal@itea.ntnu.no> wrote:
> As far as I know it is not possible to have more than virtual
> newsserver. That is,- if You want use a different name for your
> newsserver than the real hostname.
It is my understanding that you can combine that with per-hostname
nnrp.conf changes so that certain newsgroups appear to be available on
only certain virtual news servers.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
Are you a USENET news server administrator outside of North America or
Western Europe? Would you like a newsfeed from a site in the Freenix
Top 65? If so, please contact me via private e-mail for details.
Re: Virtual news servers on INN2.2
Author: Dale Ghent
Date: Fri, 15 Oct 1999 00:00
Date: Fri, 15 Oct 1999 00:00
43 lines
2876 bytes
2876 bytes
Joe Greco <jgreco@ns.sol.net> wrote: : Yeah, you can actually make virtual news servers if you want to spend some : time and effort on code... I stopped just shy of individual active files : since I could gain largely the same effect via careful nnrp.access design. : But I had support for separate nnrp.access, inn.conf, etc., etc., such that : the only thing that'd give away that you weren't REALLY on ISP x's news : server was that the IP address and traceroute would let the cat out of : the bag. The system even included path munging to remove traces of the : actual sponsoring organization. Interesting feat you accomplished there. That wounded like it was a fun thing to work on. But, as a general observation, I'm wondering if there's a real need to go that far in order to have your server masquerade as another. In making a "virtual server", The only things I see that are necessary are: *A different connect banner. *The relevant group access perms in nnrp.access *An active file to reflect the above. *Ability to set different headers (ie: Setting a site-wide X-Complaints-To header, and being able to specify a separate, different one for a group of hosts that are allowed to connect. The banner part is easy. The ability to do #2 already exists, of course. #3 can be done by having a single, site-wide active file as is done now, but when a v-hosted client does a "LIST" or "LIST ACTIVE <blah>", the output is also matched against the groupmasks in nnrp.access, and so the whole contents of the active file isnt just spewed at the client, including groups that it wouldnt have access to. #4, well, I'm note sure how such a thing could be added into the existing INN configuration structure. This is why I've always loved Typhoon/Cyclone's config structure. It's scalable (for lack of a better term.) /dale
Re: Virtual news servers on INN2.2
Author: Ron Schofield
Date: Fri, 15 Oct 1999 00:00
Date: Fri, 15 Oct 1999 00:00
66 lines
3065 bytes
3065 bytes
Dale Ghent wrote: > Ron Schofield <rschofie@hfx.andara.com> wrote: > > : Ron Schofield wrote: > > :> Ron Schofield wrote: > :> > :> > Is it possible to setup virtual news servers (i.e. news.server1.com and > :> > news.server2.com) with INN 2.2? I think it is possible but have not seen > :> > anything in the man pages on virtual servers. Can anybody say yes or no, > :> > and if yes how does one go about it? > :> > :> OK, after getting some pointers on how to do this, I got it to work (with > :> COL 2.3). Heres how: > :> > :> news.vserver1.com 192.168.20.201 > :> news.vserver2.com 192.168.20.202 > :> > :> add the following to /etc/hosts > :> > :> 192.168.20.201 news.vserver1.com virtualnews1 > :> 192.168.20.202 news.vserver2.com virtualnews2 > :> > :> add the following to /etc/sysconfig/network-scripts/ifcfg-eth0 > :> > :> ifconfig eth0:1 192.168.20.201 > :> route add -host 192.168.20.201 dev eth0:1 > :> ifconfig eth0:2 192.168.20.202 > :> route add -host 192.168.20.202 dev eth0:2 > :> > :> in /etc/news/inn.conf > :> > :> bindaddress: 192.168.20.201 > :> > :> in /etc/rc.d/local.rc > :> > :> nnrpd -D -b 192.168.20.202 > :> > > : Then use the nnrp.access file to control the access to the newsgroups. > > Okay, so you went through all that trouble just so you could use an A record > in DNS rather than just CNAME news.vserver2.com to news.vserver1.com ? > Not my DNS server, its my providers. They provide the IPs and I send them the domain names. They enter it in their system. > > What exactly does this buy you? In the end, no matter what interface a client > connects to, they're seeing the same active file and spool, as well as the > same nnrp.access file. > > You can forego all the virtual interface and inn.conf foo by just CNAME'ing > vserver2.com to vserver1.com and putting the appropriate access restrictions > in nnrp.access. > > Am I missing something? > > /dale
Re: Virtual news servers on INN2.2
Author: Dale Ghent
Date: Fri, 15 Oct 1999 00:00
Date: Fri, 15 Oct 1999 00:00
57 lines
2729 bytes
2729 bytes
Ron Schofield <rschofie@hfx.andara.com> wrote: : Ron Schofield wrote: :> Ron Schofield wrote: :> :> > Is it possible to setup virtual news servers (i.e. news.server1.com and :> > news.server2.com) with INN 2.2? I think it is possible but have not seen :> > anything in the man pages on virtual servers. Can anybody say yes or no, :> > and if yes how does one go about it? :> :> OK, after getting some pointers on how to do this, I got it to work (with :> COL 2.3). Heres how: :> :> news.vserver1.com 192.168.20.201 :> news.vserver2.com 192.168.20.202 :> :> add the following to /etc/hosts :> :> 192.168.20.201 news.vserver1.com virtualnews1 :> 192.168.20.202 news.vserver2.com virtualnews2 :> :> add the following to /etc/sysconfig/network-scripts/ifcfg-eth0 :> :> ifconfig eth0:1 192.168.20.201 :> route add -host 192.168.20.201 dev eth0:1 :> ifconfig eth0:2 192.168.20.202 :> route add -host 192.168.20.202 dev eth0:2 :> :> in /etc/news/inn.conf :> :> bindaddress: 192.168.20.201 :> :> in /etc/rc.d/local.rc :> :> nnrpd -D -b 192.168.20.202 :> : Then use the nnrp.access file to control the access to the newsgroups. Okay, so you went through all that trouble just so you could use an A record in DNS rather than just CNAME news.vserver2.com to news.vserver1.com ? What exactly does this buy you? In the end, no matter what interface a client connects to, they're seeing the same active file and spool, as well as the same nnrp.access file. You can forego all the virtual interface and inn.conf foo by just CNAME'ing vserver2.com to vserver1.com and putting the appropriate access restrictions in nnrp.access. Am I missing something? /dale
Re: Virtual news servers on INN2.2
Author: Joe Greco
Date: Fri, 15 Oct 1999 00:00
Date: Fri, 15 Oct 1999 00:00
49 lines
3063 bytes
3063 bytes
In news.software.nntp article <unAN3.1$cV2.131113@dca1-nnrp1.news.digex.net>, Dale Ghent <daleg@elemental.org> wrote: :Joe Greco <jgreco@ns.sol.net> wrote: : :: Yeah, you can actually make virtual news servers if you want to spend some :: time and effort on code... I stopped just shy of individual active files :: since I could gain largely the same effect via careful nnrp.access design. :: But I had support for separate nnrp.access, inn.conf, etc., etc., such that :: the only thing that'd give away that you weren't REALLY on ISP x's news :: server was that the IP address and traceroute would let the cat out of :: the bag. The system even included path munging to remove traces of the :: actual sponsoring organization. : :Interesting feat you accomplished there. That wounded like it was a fun thing :to work on. : :But, as a general observation, I'm wondering if there's a real need to go :that far in order to have your server masquerade as another. Yes, in the event that there are political reasons that you may not want to advertise exactly what is actually happening. :In making a "virtual server", The only things I see that are necessary are: : : *A different connect banner. : *The relevant group access perms in nnrp.access : *An active file to reflect the above. : *Ability to set different headers (ie: Setting a site-wide X-Complaints-To : header, and being able to specify a separate, different one for a group : of hosts that are allowed to connect. : :The banner part is easy. : :The ability to do #2 already exists, of course. : :#3 can be done by having a single, site-wide active file as is done now, but :when a v-hosted client does a "LIST" or "LIST ACTIVE <blah>", the output is :also matched against the groupmasks in nnrp.access, and so the whole contents :of the active file isnt just spewed at the client, including groups that it :wouldnt have access to. : :#4, well, I'm note sure how such a thing could be added into the existing INN :configuration structure. This is why I've always loved Typhoon/Cyclone's :config structure. It's scalable (for lack of a better term.) Use separate files. ... JG
Re: Virtual news servers on INN2.2
Author: bill davidsen
Date: Mon, 18 Oct 1999 00:00
Date: Mon, 18 Oct 1999 00:00
27 lines
1991 bytes
1991 bytes
In article <2UxN3.9$qN2.1441942@dca1-nnrp1.news.digex.net>, Dale Ghent <daleg@elemental.org> wrote: | What exactly does this buy you? In the end, no matter what interface a client | connects to, they're seeing the same active file and spool, as well as the | same nnrp.access file. No, it doesn't work that way. After you generate a custom inn.conf file for the virtual server, you point it to your own directories. Then you can have a custom inn.conf for the organization line, your own nnrp.access, and your own posting filters in the filters directory. When you graduate to 2.3 you add a separate readers.conf file which really controls what groups you see, even in LIST commands, and which lets you use the more sophisticated validations for auth and ident of users. With 2.2 you can do a reasonable job, and with 2.3 you can do it in an almost seamless implementation. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc When taking small children to a carnival, always have them go potty *before* you let them go on the rides, and let them eat all the junk food and candy *after*.
Re: Virtual news servers on INN2.2
Author: Joe Greco
Date: Mon, 18 Oct 1999 00:00
Date: Mon, 18 Oct 1999 00:00
20 lines
1614 bytes
1614 bytes
In news.software.nntp article <ylyad0l415.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: :bill davidsen <davidsen@tmr.com> writes: : :> With 2.2 you can do a reasonable job, and with 2.3 you can do it in an :> almost seamless implementation. : :The main thing you miss is the ability to not have a shared Path header at :any point; since you're still running a single copy of innd (and not doing :that would require duplicating the spool, which you probably don't want to :do), everything still funnels through it, and it still adds a common Path :entry. : :Normally, this isn't a problem. Complete the sentence, Russ... "Normally, this isn't a problem because you rewrite the Path:". ;-) ;-) ... JG
Re: Virtual news servers on INN2.2
Author: bill davidsen
Date: Tue, 19 Oct 1999 00:00
Date: Tue, 19 Oct 1999 00:00
32 lines
2091 bytes
2091 bytes
In article <ylbta1vda5.fsf@windlord.stanford.edu>,
Russ Allbery <rra@stanford.edu> wrote:
| bill davidsen <davidsen@tmr.com> writes:
|
| > Yes. How well it works is dependent on how much work you want to do.
| > The problem is that the stock nnrpd has no easy way to point to another
| > .../etc/ directory where you could put all the vserver info needed.
|
| Sure it does. Set INNCONF to the full path of your alternate inn.conf
| file and set all the paths you want in there.
Having both read the man page and grepped the source of the entire
nnrpd directory without finding this, might I suggest that some mention
of this in the man page would be nice, other than the "SEE ALSO
everything" section? If the signals are described I would think that at
least a reference to the existance of environment variable actions would
be explicitly mentions.
Like:
ENVIRONMENT VARIABLES
The meaning of environment variables common to all programs which
use inn.conf is described in the inn.conf(5) man page.
--
bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
When taking small children to a carnival, always have them go potty
*before* you let them go on the rides, and let them eat all the junk
food and candy *after*.
Re: Virtual news servers on INN2.2
Author: bill davidsen
Date: Tue, 19 Oct 1999 00:00
Date: Tue, 19 Oct 1999 00:00
30 lines
2114 bytes
2114 bytes
In article <ylyad0l415.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: | bill davidsen <davidsen@tmr.com> writes: | | > With 2.2 you can do a reasonable job, and with 2.3 you can do it in an | > almost seamless implementation. | | The main thing you miss is the ability to not have a shared Path header at | any point; since you're still running a single copy of innd (and not doing | that would require duplicating the spool, which you probably don't want to | do), everything still funnels through it, and it still adds a common Path | entry. | | Normally, this isn't a problem. This could be faked in nnrpd, but it is fairly hard to do right, since it has to be done in both the Path and Xref headers at minimum. Since that could change the byte count the overview would be wrong, and it all becomes a mess from that point forward. Your last statement is the operative one, you should have the server in a domain which is not any of the virtual names, perhaps. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc When taking small children to a carnival, always have them go potty *before* you let them go on the rides, and let them eat all the junk food and candy *after*.
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