Thread View: news.software.nntp
3 messages
3 total messages
Started by Dougal Campbell
Wed, 23 Oct 1996 00:00
Redirect nnrpd connects
Author: Dougal Campbell
Date: Wed, 23 Oct 1996 00:00
Date: Wed, 23 Oct 1996 00:00
30 lines
1911 bytes
1911 bytes
Many moons ago, someone posted here a method which allowed him to automagically redirect reader connections to a nonstandard port number (where nnrpd lived), allowing for faster connections on a server that's sometimes slow to respond to new connections. Does anyone have more information on what tools are needed for that? I think the process involved using tcp wrappers and inetd to direct feeders to one program and readers to another.... On my current server, new connects are a little slow, but bearable. I want to add another peer feed, but I'm reluctant to do so because I fear that the extra load will cause reader connections to start timing out. I've already got an extra nnrpd running on a nonstandard port (1119), but many newsreaders don't allow you to change the connection port, so not all my users can take advantage of this. I'm also hesitant to change the port used for feeder connections, because I'm too lazy to coordinate it with all of my peers :) On a related note, is there anything new in INN1.5b that speeds up the initial connect for readers? (I didn't spot anything about it in the README, but who knows....) -- Dougal Campbell | "No animals or aliens were harmed in the making Systems Manager | of this film." interQuest: Hsv, AL | dougal@iquest.com | -- Disclaimer in the credits for ID4
Re: Redirect nnrpd connects
Author: Chrisy Luke
Date: Thu, 24 Oct 1996 00:00
Date: Thu, 24 Oct 1996 00:00
31 lines
1956 bytes
1956 bytes
On 23 Oct 1996 13:55:39 GMT, dougal@vespucci.iquest.com (Dougal Campbell) wrote: >Many moons ago, someone posted here a method which allowed him to >automagically redirect reader connections to a nonstandard port number >(where nnrpd lived), allowing for faster connections on a server that's >sometimes slow to respond to new connections. >Does anyone have more information on what tools are needed for that? I >think the process involved using tcp wrappers and inetd to direct >feeders to one program and readers to another.... Even easier - change INND's port number (nntp.h if I remember) and hang nnrpd directly off port 119. You only need inform your news peers of the port change (-P option to innxmit, for instance). If you have a setup much like peer-point and client-point then this is no hassle at all, but if you only have a few peers then no problem anyway. It then doesn't require any fancy gimmickery. Combined with some sort of article-queueing feature in nnrpd clients believe it's dead speedy. Chris. == chrisy@easynet.net, chrisy@flirble.org.uk, chrisy@etsiig.uniovi.es == Newsmaster and Senior Systems Developer for Easynet Group Plc. == To Flirble or not to Flirble? That is not a question, but a == statement of being, of life and of survival.
Re: Redirect nnrpd connects
Author: Alan Brown
Date: Wed, 30 Oct 1996 00:00
Date: Wed, 30 Oct 1996 00:00
83 lines
4177 bytes
4177 bytes
In article <54l84r$h8l@polo.iquest.com>, Dougal Campbell <dougal@vespucci.iquest.com> wrote: >Many moons ago, someone posted here a method which allowed him to >automagically redirect reader connections to a nonstandard port number >(where nnrpd lived), allowing for faster connections on a server that's >sometimes slow to respond to new connections. Here's what I use on my linux system. The ideas came from this group. Note that you need the following options in the kernel: IP aliasing Firewalling Transparent proxy You also need ipfwadm - the current version is 2.3.0 I decided to make the outgoing and incoming news connections appear on different IP addresses as it allowed things to be a little faster for incoming newsfeeds. The orginal server address is 202.36.148.70 (news.manawatu.gen.nz), the added address is 202.50.148.71 (newshost.manawatu.gen.nz) Add these lines to your rc.local (or create rc.multihome and rc,firewall, which is what I did - the server is/was also a multihomed web server) ------ ifconfig eth0:0 202.36.148.71 broadcast 202.36.148.255 netmask 255.255.255.0 route add -host 202.36.148.71 dev eth0:0 FW=/sbin/ipfwadm $FW -I -f ###INN newsfeeds on port 119 are switched to port 1119 ### Feeders have been told to send to newshost.manawatu.gen.nz (202.36.148.71) ### Instead of news.manawatu.gen.nz (202.36.148.70), so the ones which have ### switched are commented out. ##$FW -I -a accept -S 202.36.148.70/32 -D 202.36.148.70/32 119 -P tcp ##$FW -I -a accept -S 202.36.148.65/32 -D 202.36.148.70/32 119 -P tcp ##$FW -I -a accept -S 130.123.128.11/32 -D 202.36.148.70/32 119 -P tcp ##$FW -I -a accept -S 130.217.96.24/32 -D 202.36.148.70/32 119 -P tcp ##$FW -I -a accept -S 130.217.76.24/32 -D 202.36.148.70/32 119 -P tcp ##$FW -I -a accept -S 130.217.188.20/32 -D 202.36.148.70/32 119 -P tcp ##$FW -I -a accept -S 202.36.174.8/32 -D 202.36.148.70/32 119 -P tcp ##$FW -I -a accept -S 202.36.121.24/32 -D 202.36.148.70/32 119 -P tcp ## Everyone else gets shunted off to 1119 # # Uncomment this if we need to switch back to test the latest INN # startup performance patches or connect to newshost port 119 $FW -I -a accept -S 0.0.0.0/0 -D 202.36.148.68/32 119 -P tcp -r 1119 # ## This is another way of doing it, but access lists are better handled ## by nnrpd/innd IMO. :-) (29/5/96) ##$FW -I -a accept -S 202.36.110.0/24 -D 202.36.148.70/32 119 -P tcp -r 1119 ##$FW -I -a accept -S 202.36.147.0/24 -D 202.36.148.70/32 119 -P tcp -r 1119 ##$FW -I -a accept -S 202.36.148.0/24 -D 202.36.148.70/32 119 -P tcp -r 1119 ##$FW -I -a accept -S 202.50.64.0/19 -D 202.36.148.70/32 119 -P tcp -r 1119 ##$FW -I -a accept -S 203.97.16.0/24 -D 202.36.148.70/32 119 -P tcp -r 1119 ##$FW -I -a accept -S 203.49.49.0/24 -D 202.36.148.70/32 119 -P tcp -r 1119 -------- I've added the streaming patches related to innd startup performnce on connects, but I don't think my server starts quickly enough even with them added. (6-7 sec startup of nnrpd, compared with up to 45 seconds innd+nnrpd). Additionally, using this method allows people to read news even if innd has toasted itself - which has saved me a few late night calls when combined with the nnrpd spooling patches. How many OS's can this solution be applied to? AB -- If you go down to the woods today you're sure for a big surpise: Teddies in leather who bang heads together, with black liner round their eyes.
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