Thread View: news.software.nntp
6 messages
6 total messages
Started by Paul Rolfe
Sat, 25 Jan 1997 00:00
INN on nonstandard port.
Author: Paul Rolfe
Date: Sat, 25 Jan 1997 00:00
Date: Sat, 25 Jan 1997 00:00
24 lines
1282 bytes
1282 bytes
Hi, I am running Linux 2.0.0 and INND 1.5.1, everything works fine if I start INND with the default port of 119, however I want to run INND on port 120, and when doing this, the following occurs: Jan 25 10:18:37 tomcat innd: SERVER descriptors 256 Jan 25 10:18:37 tomcat innd: SERVER outgoing 243 Jan 25 10:18:37 tomcat innd: SERVER ccsetup control:10 Jan 25 10:18:37 tomcat innd: SERVER lcsetup localconn:12 Jan 25 10:18:37 tomcat innd: SERVER cant listen RCreader Bad filenumber It wont start with either "innd -p120", "innd -p 120", "inndstart -p120', or "inndstart -p 120" despite the manpages saying it will. What am I missing? Replies via email preferred.
Re: INN on nonstandard port.
Author: Jesper Skriver
Date: Sat, 25 Jan 1997 00:00
Date: Sat, 25 Jan 1997 00:00
40 lines
1804 bytes
1804 bytes
prolfe@southwest.com.au (Paul Rolfe) writes: >Hi, >I am running Linux 2.0.0 and INND 1.5.1, everything works fine if I >start INND with the default port of 119, however I want to run INND on >port 120, and when doing this, the following occurs: >Jan 25 10:18:37 tomcat innd: SERVER descriptors 256 >Jan 25 10:18:37 tomcat innd: SERVER outgoing 243 >Jan 25 10:18:37 tomcat innd: SERVER ccsetup control:10 >Jan 25 10:18:37 tomcat innd: SERVER lcsetup localconn:12 >Jan 25 10:18:37 tomcat innd: SERVER cant listen RCreader Bad >filenumber >It wont start with either "innd -p120", "innd -p 120", "inndstart >-p120', or "inndstart -p 120" despite the manpages saying it will. This is to my best knowledge a debugging parameter, if you want to change it to port 120, change (in include/configdata.h) #define NNTP_PORT 119 to #define NNTP_PORT 120 works fine here /Jesper 20 /* soren@tdk.net */ -- --------------------------------------------- Jesper Skriver E-mail: jesper@tdk.net BOFH / System manager Voice: +45 86783300 Tele Danmark Internet Fax: +45 86783800 --------------------------------------------- One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone bind them.
Re: INN on nonstandard port.
Author: Ben Polk
Date: Sun, 26 Jan 1997 00:00
Date: Sun, 26 Jan 1997 00:00
16 lines
1158 bytes
1158 bytes
>I am running Linux 2.0.0 and INND 1.5.1, everything works fine if I >start INND with the default port of 119, however I want to run INND on >port 120, and when doing this, the following occurs: [snip] In general, this is not a good idea. If you want to run on another port pick one up above 1024. Port 120 is reserved by the IANA for: cfdptkt 120/tcp CFDPTKT cfdptkt 120/udp CFDPTKT Whatever that is.
Re: INN on nonstandard port.
Author: Odd Einar Aurbakken
Date: Wed, 12 Feb 1997 00:00
Date: Wed, 12 Feb 1997 00:00
28 lines
1571 bytes
1571 bytes
In article <32EBED95.41DF@netscape.com>, Ben Polk <bpolk@netscape.com> writes: > >I am running Linux 2.0.0 and INND 1.5.1, everything works fine if I > >start INND with the default port of 119, however I want to run INND on > >port 120, and when doing this, the following occurs: > [snip] > > In general, this is not a good idea. If you want to run on > another port pick one up above 1024. Port 120 is reserved > by the IANA for: > > cfdptkt 120/tcp CFDPTKT > cfdptkt 120/udp CFDPTKT > > Whatever that is. Then perhaps one should do as Mark Delany <markd@werple.net.au> suggestes in <5a1toq$lhq@melb.werple.net.au>: > nnsp 433/tcp usenet # Network News Transfer > > has already been allocated for this purpose. It's not above 1024, but I guess it's blessd by IANA. -- [-oea]Pq "Here's a nickel kid, buy yourself a real computer" -- CUUFH
Re: INN on nonstandard port.
Author: Joshua Goodall
Date: Tue, 18 Feb 1997 00:00
Date: Tue, 18 Feb 1997 00:00
44 lines
2435 bytes
2435 bytes
Odd Einar Aurbakken <oea@a.sol.no> wrote in news.software.nntp:
> Then perhaps one should do as Mark Delany <markd@werple.net.au> suggestes in
> <5a1toq$lhq@melb.werple.net.au>:
> > nnsp 433/tcp usenet # Network News Transfer
> >
> > has already been allocated for this purpose.
I've been using 433 for internal news transports. I've found that running
nnrpd from inetd is significantly faster, especially for newsreaders
with broken implementations of the NNTP protocol (like netscrape). I guess
it's just because inetd forks quicker. However you'll have slightly less
control over nnrpd's response to high load periods. I haven't (yet)
found this to be a problem.
However if you change the constant NNTP_PORT in include/configdata.h
then be sure to fix the port number when you call nntpsend, innxmit &
friends to sites outside your transport control, e.g. nntpsend -P 119
AFAIK the affected parts are those that use lib/remopen.c and these are:
actsync
innxbatch
innxmit
nntpget
getlist
rnews
...and any script that makes use of these e.g. nntpsend, sendxbatches,
actmerge. At least this is my understanding. Certainly this setup works
for me. However several of my internal transports are a little homebrew
(rnews-in-perl running under NT to unbatch a satellite feed, anyone?)
NB I'm posting from ed.ac.uk here but I'm actually referring
to the site where I am the news admin.
--
Joshua Goodall NNTP/Linux/RISCOS/ISDN/Flute/Saxophones/Tea
#include <disclaimer.h> mailto:jjg@dcs.ed.ac.uk
...I am not a number, I am a free(3) man(1)!
Re: INN on nonstandard port.
Author: Steinar Haug
Date: Thu, 20 Feb 1997 00:00
Date: Thu, 20 Feb 1997 00:00
84 lines
3560 bytes
3560 bytes
[Joshua Goodall]
| I've been using 433 for internal news transports. I've found that running
| nnrpd from inetd is significantly faster, especially for newsreaders
| with broken implementations of the NNTP protocol (like netscrape). I guess
| it's just because inetd forks quicker. However you'll have slightly less
| control over nnrpd's response to high load periods. I haven't (yet)
| found this to be a problem.
|
| However if you change the constant NNTP_PORT in include/configdata.h
| then be sure to fix the port number when you call nntpsend, innxmit &
| friends to sites outside your transport control, e.g. nntpsend -P 119
I did it differently: Keep NNTP_PORT at 119, and introduce a '-P' option
to inndstart. Patch included 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