Thread View: news.software.nntp
6 messages
6 total messages
Started by tsg
Wed, 04 Jun 1997 00:00
INN - Changing the NNTP_PORT
Author: tsg
Date: Wed, 04 Jun 1997 00:00
Date: Wed, 04 Jun 1997 00:00
32 lines
1513 bytes
1513 bytes
I know this comes up every once in a while but I checked the FAQ and couldn't find specific answers to my questions. We get our newsfeed from an ISP that is planning to switch the feed to port 120. As I understand it this means the following for me (inn 1.5.1): 1) I need to rebuild the inn sources (really inndstart) with NNTP_PORT set to 120. As I understand it there isn't really a command line option to change the port. 2) There is only one port that INN listens on. 3) There is no way to use multiple ports for different feeders. 4) All my readers will have to change the port they use to read news (or could I have inetd spawn nnrpd from port 119?) 5) If I had multiple feeds with port 119 and 120 I would have to have a separate server for each. The ISP believes they are doing this to offset server load and to improve feeder/reader traffic. I believe they would be better served using a master/slave setup (I know I would be). What do you think? Thanks for any help or comments. Todd Goodman
Re: INN - Changing the NNTP_PORT
Author: Frank Elsner
Date: Thu, 05 Jun 1997 00:00
Date: Thu, 05 Jun 1997 00:00
46 lines
1874 bytes
1874 bytes
tsg@stout.netlink.com wrote: > > I know this comes up every once in a while but I checked the FAQ and > couldn't find specific answers to my questions. > > We get our newsfeed from an ISP that is planning to switch the feed to port > 120. As I understand it this means the following for me (inn 1.5.1): > > 1) I need to rebuild the inn sources (really inndstart) with NNTP_PORT set > to 120. As I understand it there isn't really a command line option to > change the port. Change the FLAGS in "rc.news" to include "-p 120", that's all. > 2) There is only one port that INN listens on. Right. > 3) There is no way to use multiple ports for different feeders. Right. > 4) All my readers will have to change the port they use to read news (or > could I have inetd spawn nnrpd from port 119?) Yes, you can do that. > 5) If I had multiple feeds with port 119 and 120 I would have to have a > separate server for each. Right, I guess. > The ISP believes they are doing this to offset server load and to improve > feeder/reader traffic. I believe they would be better served using a > master/slave setup (I know I would be). > > What do you think? > > Thanks for any help or comments. > > Todd Goodman Frank Elsner (TUBerlin/ZRZ Newsmaster)
Re: INN - Changing the NNTP_PORT
Author: Forrest J. Cavalier III
Date: Thu, 05 Jun 1997 00:00
Date: Thu, 05 Jun 1997 00:00
62 lines
2459 bytes
2459 bytes
In article <5n411l$j2r$1@news>, tsg@stout.netlink.com wrote... > >I know this comes up every once in a while but I checked the FAQ and >couldn't find specific answers to my questions. > >We get our newsfeed from an ISP that is planning to switch the feed to port >120. As I understand it this means the following for me (inn 1.5.1): > >1) I need to rebuild the inn sources (really inndstart) with NNTP_PORT set >to 120. As I understand it there isn't really a command line option to >change the port. > True. >2) There is only one port that INN listens on. > True, unless you count the control socket. >3) There is no way to use multiple ports for different feeders. > Not out of the box. It is possible in theory. >4) All my readers will have to change the port they use to read news (or >could I have inetd spawn nnrpd from port 119?) > nnrpd can be spawned from inetd. >5) If I had multiple feeds with port 119 and 120 I would have to have a >separate server for each. > There can only be ONE program running which writes to the history file and database. There can only be ONE program which numbers articles for the spool. >The ISP believes they are doing this to offset server load and to improve >feeder/reader traffic. I believe they would be better served using a >master/slave setup (I know I would be). > Huh?! Well I suppose anyone can believe whatever they want. The only reasons I have ever heard for moving away from port 119 is to permit reader connections to startup faster. >What do you think? They haven't told you, (or you haven't told us) the whole story... or someone is very confused, or all of the above. :-) Maybe this is some way of "locking themselves in" and making it harder for you to get other feeds? > >Thanks for any help or comments. > >Todd Goodman Forrest Cavalier, Mib Software, INN customization and consulting
Re: INN - Changing the NNTP_PORT
Author: Richard Kettlewell
Date: Thu, 05 Jun 1997 00:00
Date: Thu, 05 Jun 1997 00:00
24 lines
1330 bytes
1330 bytes
mibsoft@epix.net (Forrest J. Cavalier III) writes: >In article <5n411l$j2r$1@news>, tsg@stout.netlink.com wrote... >>We get our newsfeed from an ISP that is planning to switch the feed >>to port 120. >> >>3) There is no way to use multiple ports for different feeders. > >Not out of the box. It is possible in theory. If you didn't want to touch innd, you could write a small program that accepts connections on port 120, then makes a connection to port 119 and forwards all the data received in either direction. It could run out of inetd or as a standalone daemon. You'd have to do your own access control. -- Richard Kettlewell http://www.elmail.co.uk/~richard/ Would it be so terrible, to be a photino bird?
Re: INN - Changing the NNTP_PORT
Author: Forrest J. Cavalier III
Date: Thu, 05 Jun 1997 00:00
Date: Thu, 05 Jun 1997 00:00
30 lines
1561 bytes
1561 bytes
In article <3396CE30.41C67EA6@zrz.TU-Berlin.DE>, Elsner@zrz.TU-Berlin.DE wrote... > >tsg@stout.netlink.com wrote: >> >> I know this comes up every once in a while but I checked the FAQ and >> couldn't find specific answers to my questions. >> >> We get our newsfeed from an ISP that is planning to switch the feed to port >> 120. As I understand it this means the following for me (inn 1.5.1): >> >> 1) I need to rebuild the inn sources (really inndstart) with NNTP_PORT set >> to 120. As I understand it there isn't really a command line option to >> change the port. > >Change the FLAGS in "rc.news" to include "-p 120", that's all. The docs (and the code) say that -p to innd gives the number of an open file descriptor for a listening socket, not a port number. There is a big difference. Do you have some modifications to inndstart which permit a -p argument? [snip] Forrest Cavalier, Mib Software, INN customization and consulting
Re: INN - Changing the NNTP_PORT
Author: Steinar Haug
Date: Thu, 05 Jun 1997 00:00
Date: Thu, 05 Jun 1997 00:00
74 lines
2932 bytes
2932 bytes
[Forrest J. Cavalier III]
| Do you have some modifications to inndstart which permit a -p argument?
Sure. See below.
Steinar Haug, Nethelp consulting, sthaug@nethelp.no
----------------------------------------------------------------------
*** inndstart.c.orig Tue Dec 17 15:40:40 1996
--- inndstart.c Thu Feb 13 12:36:45 1997
***************
*** 60,65 ****
--- 60,67 ----
struct sockaddr_in server;
register int i;
register int j;
+ int argnext = 1;
+ u_short nntp_port = NNTP_PORT;
#if defined(SO_REUSEADDR)
int on;
#endif /* defined(SO_REUSEADDR) */
***************
*** 72,77 ****
--- 74,86 ----
(void)openlog("inndstart", L_OPENLOG_FLAGS, LOG_INN_PROG);
+ /* Any other options than -P <port> are passed to innd */
+ if (ac >= 3 && strncmp(av[1], "-P", 2) == 0) {
+ nntp_port = atoi(av[2]);
+ argnext += 2;
+ ac -= 2;
+ }
+
/* Make sure INND directory exists. */
if (stat(INNDDIR, &Sb) < 0 || !S_ISDIR(Sb.st_mode)) {
syslog(L_FATAL, "inndstart cant stat %s %m", INNDDIR);
***************
*** 98,104 ****
syslog(L_ERROR, "inndstart cant setsockopt %m");
#endif /* defined(SO_REUSEADDR) */
(void)memset((POINTER)&server, 0, sizeof server);
! server.sin_port = htons(NNTP_PORT);
server.sin_family = AF_INET;
server.sin_addr.s_addr = htonl(INADDR_ANY);
if (bind(i, (struct sockaddr *)&server, sizeof server) < 0) {
--- 107,113 ----
syslog(L_ERROR, "inndstart cant setsockopt %m");
#endif /* defined(SO_REUSEADDR) */
(void)memset((POINTER)&server, 0, sizeof server);
! server.sin_port = htons(nntp_port);
server.sin_family = AF_INET;
server.sin_addr.s_addr = htonl(INADDR_ANY);
if (bind(i, (struct sockaddr *)&server, sizeof server) < 0) {
***************
*** 118,124 ****
#else
argv[j++] = _PATH_INND;
argv[j++] = pflag;
! for (i = 1; av[i]; ) {
if (strncmp(av[i], "-p", 2) != 0)
argv[j++] = av[i++];
else
--- 127,133 ----
#else
argv[j++] = _PATH_INND;
argv[j++] = pflag;
! for (i = argnext; av[i]; ) {
if (strncmp(av[i], "-p", 2) != 0)
argv[j++] = av[i++];
else
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