🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
13 messages
13 total messages Started by drwho Wed, 11 Dec 1996 00:00
INN - port other than 119?
#13203
Author: drwho
Date: Wed, 11 Dec 1996 00:00
16 lines
1319 bytes
I want to run an NNTP server that is not a part of UseNet. Rather than
trying to use passwords, I figure it would be easier to just run it on a
different port, rather than the standard 119. How do I do this in INN?
Do I have to get and modify the source, or is there an easier way?

I am running Linux, and know I could do it with either term's tredir or
the ipfwadm command's -r option, but I think it would be better to just
get it on a different port.

Thanks for any help you can give.
--Dr. Who
-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet

Re: INN - port other than 119?
#13181
Author: Karl Kleinpaste
Date: Wed, 11 Dec 1996 00:00
11 lines
986 bytes
drwho@l0pht.com writes:
> I figure it would be easier to just run it on a
> different port, rather than the standard 119. How do I do this in INN?
> Do I have to get and modify the source, or is there an easier way?

You'll have to modify the source.  In 1.5b2 (I haven't pulled in the
released 1.5 yet, and 1.5.1 is apparently coming out Real Soon Now),
see $inn/include/configdata.h, line 365.

Re: INN - port other than 119?
#13182
Author: Chrisy Luke
Date: Wed, 11 Dec 1996 00:00
18 lines
1445 bytes
On 11 Dec 1996 11:08:41 -0500, Karl Kleinpaste <karl@jprc.com> wrote:

>You'll have to modify the source.  In 1.5b2 (I haven't pulled in the
>released 1.5 yet, and 1.5.1 is apparently coming out Real Soon Now),
>see $inn/include/configdata.h, line 365.

Other versions of inn define NNTP_PORT, IMSM, in nntp.h. You can
override the port number innxmit uses with the -p option, also.
Rebuilding makes everything default to NNTP_PORT's value however.

Chris.
== chrisy@easynet.net, chrisy@flirble.org.uk, chrisy@etsiig.uniovi.es
== Newsmaster and Senior Systems Developer for Easynet Group Plc.
== Someone once said A Flirble is like Christmas. Only more so. With
== less of the fuzzy bits and more of the haze.      They were wrong.

Re: INN - port other than 119?
#13247
Author: David C Lawrence
Date: Fri, 13 Dec 1996 00:00
31 lines
1922 bytes
drwho@l0pht.com writes:
> different port, rather than the standard 119. How do I do this in INN?

jerry@rigel.whowhere.com (Jerry Aguirre) writes:
> Funny, according to the man page for innd:
> 
>      innd [ -a ] [ -c days ] [ -d ] [ -f ] [  -i  count  ]  [  -o
>      count ] [ -l size ] [ -m mode ] [ -n flag ] [ -p port ] [ -r ]

The -p option here should probably have a different word after it to
clarify what it is really about.  This is the option passed to innd by
inndstart after inndstart has bound the Internet port it wants to
use.  It represents a file descriptor, the one which RCsetup() can
immediately start listening on without having to bind its own IP socket.

Regardless of whether inndstart or innd does the initial binding, the
socket is set up on the port defined by the symbolic constant
NNTP_PORT defined by include/configdata.h.  Changing that will cause
all relevant binding/opening of the nntp port to use the new value,
because getservbyname is not used to figure it out.

Be especially careful of this affecting remopen.c, which is used by
inews, rnews, innxmit, &c.  For some of them, it makes sense to use
the new port you defined because you will be talking to your local
server.  For others, like innxmit, you usually will need to use the
119 value to talk to the servers of most of the rest of the world.
innxmit has a -P option to let you set the port.


Re: INN - port other than 119?
#13256
Author: Jerry Aguirre
Date: Fri, 13 Dec 1996 00:00
20 lines
1350 bytes
In article <vxku3ptaws6.fsf@pocari-sweat.jprc.com>,
Karl Kleinpaste  <karl@jprc.com> wrote:
>drwho@l0pht.com writes:
>> different port, rather than the standard 119. How do I do this in INN?
>> Do I have to get and modify the source, or is there an easier way?
>
>You'll have to modify the source.  In 1.5b2 (I haven't pulled in the

Funny, according to the man page for innd:

SYNOPSIS
     innd [ -a ] [ -c days ] [ -d ] [ -f ] [  -i  count  ]  [  -o
     count ] [ -l size ] [ -m mode ] [ -n flag ] [ -p port ] [ -r
     ] [ -s ] [ -S host ] [ -t timeout ] [ -u ] [ -x ] [ -L ]

Sure looks like there is a "-p port" option on the command line.
Does editing the rc.news shell script count as modifying the source?

Re: INN - port other than 119?
#13265
Author: Steve Jones
Date: Fri, 13 Dec 1996 00:00
38 lines
2330 bytes
In article <58qkl2$pck@news0-alterdial.uu.net>,
Jerry Aguirre <jerry@rigel.whowhere.com> wrote:
>In article <vxku3ptaws6.fsf@pocari-sweat.jprc.com>,
>Karl Kleinpaste  <karl@jprc.com> wrote:
>>drwho@l0pht.com writes:
>>> different port, rather than the standard 119. How do I do this in INN?
>>> Do I have to get and modify the source, or is there an easier way?
>>
>>You'll have to modify the source.  In 1.5b2 (I haven't pulled in the
>
>Funny, according to the man page for innd:
>
>SYNOPSIS
>     innd [ -a ] [ -c days ] [ -d ] [ -f ] [  -i  count  ]  [  -o
>     count ] [ -l size ] [ -m mode ] [ -n flag ] [ -p port ] [ -r
>     ] [ -s ] [ -S host ] [ -t timeout ] [ -u ] [ -x ] [ -L ]
>
>Sure looks like there is a "-p port" option on the command line.
>Does editing the rc.news shell script count as modifying the source?

Speaking only for INN 1.4sec, selecting the "-p port" option doesn't
get you exactly the same effect as modifying the "configdata.h"
include file NNTP_PORT definition (done after std configuration).
The "-p port" option I suspect was implimented by the author for 
for debugging only, and so has other implications you may
not want. (See usage of "AmRoot" in innd.c).  If you do choose to
build innd with a different port number, you may also inadvertantly
build the nnrpd with the different port number.  The nnrpd needs
the port number for the "post" operation, so you should be 
careful to avoid breaking one while futzing with the other.
-- 
--
  Steven Jones
  Computing & Communications 354843,  University of Washington
  E-mail:  noyd@u.washington.edu    Phone:  (206) 543-5852

Re: INN - port other than 119?
#13273
Author: Chrisy Luke
Date: Fri, 13 Dec 1996 00:00
18 lines
1379 bytes
On 13 Dec 1996 04:04:50 GMT, jerry@rigel.whowhere.com (Jerry Aguirre)
wrote:

>Funny, according to the man page for innd:
>Sure looks like there is a "-p port" option on the command line.
>Does editing the rc.news shell script count as modifying the source?

I never saw that option! Where were you hiding it!? ;)  What version
of inn was that?

Chris.
== chrisy@easynet.net, chrisy@flirble.org.uk, chrisy@etsiig.uniovi.es
== Newsmaster and Senior Systems Developer for Easynet Group Plc.
== Someone once said A Flirble is like Christmas. Only more so. With
== less of the fuzzy bits and more of the haze.      They were wrong.

Re: INN - port other than 119?
#13325
Author: Heiko W.Rupp
Date: Mon, 16 Dec 1996 00:00
23 lines
1627 bytes
In <8engu5jnu.fsf@rodan.UU.NET>, David C Lawrence wrote:

:|server.  For others, like innxmit, you usually will need to use the
:|119 value to talk to the servers of most of the rest of the world.
:|innxmit has a -P option to let you set the port.

On the other hand (I think this was discussed here a dozen times) it woould
make sense to have the server-server connection on another port and on
the standard nntp reader connections. IMHO beginning at inn1.6 this should
just happen. This way some admins have to change a few parameters on their
system and the step, inn started with separating nnrpd and innd, would be
complete.
It is much easier to change the server connections, as port 119 is often
hardcoded in reader software, so users can't change it easily.

-- 
Heiko W.Rupp hwr@pilhuhn.de
INN FAQ can be found in ftp://ftp.xlink.net/pub/news/docs/
                   Stoppt den Kinderwahnsinn !! -- Esst nur deutsche Kinder !!


Re: INN - port other than 119?
#13545
Author: Jesper Skriver
Date: Wed, 25 Dec 1996 00:00
41 lines
2250 bytes
On Wed, 25 Dec 96 00:34:20 GMT, sommar@algonet.se (Erland Sommarskog)
wrote:

[cut]

>I'll agree that it would be a good thing to have the server using
>another port than 119, altough for a slightly different reason than
>you give.
>
>Namely, many readers do support using a different port: News Xpress, (Free)
>Agent, Netscape, trn 4.0 and I believe several others. The problem is only
>to get the users to make use of this feature. At this place, there are
>two servers. One for external feeds, and one for reading. The reader
>server is sometime slow to connect to at times, so as to alleviate the
>problem, the news admin added nnrpd to port 118 in inetd.conf. But this 
>is an ISP, so there are new users coming along all the time. Certainly, 
>it would be easier, if the server was using some other port.

We've just moved innd to port 120, and runs nnrpd out of inetd at port
119, this ment a great improvement for our readers connect time.

This means our custemers won't have to change anything, and our feeds
(~25) had to change to port 120, this wasn't a big problem, except for
one that is running a multihacked inn1.4sec where innxmit doesn't
support a different port than 119. (Does anybody know if he can
compile a innxmit from inn1.4unoff4 and just plug in instead ?)

I can recommend this to all that is using the same box for readers and
feeds, it meant a great improvement for our readers.

[cut]

best regards
Jesper Skriver
News Admin
Tele Danmark Internet

BTW: merry Xmas

Re: INN - port other than 119?
#13546
Author: Erland Sommarskog
Date: Wed, 25 Dec 1996 00:00
30 lines
2201 bytes
Heiko W.Rupp (hwr@pilhuhn.de) skriver:
>On the other hand (I think this was discussed here a dozen times) it woould
>make sense to have the server-server connection on another port and on
>the standard nntp reader connections. IMHO beginning at inn1.6 this should
>just happen. This way some admins have to change a few parameters on their
>system and the step, inn started with separating nnrpd and innd, would be
>complete.
>It is much easier to change the server connections, as port 119 is often
>hardcoded in reader software, so users can't change it easily.

I'll agree that it would be a good thing to have the server using
another port than 119, altough for a slightly different reason than
you give.

Namely, many readers do support using a different port: News Xpress, (Free)
Agent, Netscape, trn 4.0 and I believe several others. The problem is only
to get the users to make use of this feature. At this place, there are
two servers. One for external feeds, and one for reading. The reader
server is sometime slow to connect to at times, so as to alleviate the
problem, the news admin added nnrpd to port 118 in inetd.conf. But this 
is an ISP, so there are new users coming along all the time. Certainly, 
it would be easier, if the server was using some other port.

--
Erland Sommarskog, Stockholm, sommar@algonet.se
F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
B=65sid=65s, I think QP should b=65 d=65stroy=65d.

Re: INN - port other than 119?
#13562
Author: Odd Einar Aurbakken
Date: Fri, 27 Dec 1996 00:00
17 lines
1385 bytes
In article <32c11cc1.1279771393@news.inet.tele.dk>, jesper@tdk.net (Jesper Skriver) writes:
[...]
> We've just moved innd to port 120, and runs nnrpd out of inetd at port
> 119, this ment a great improvement for our readers connect time.

This has the disadvantage that clients that connect and close/drop and
reconnect over and over get much faster, making it harder to convince
the lusers to change to a real news reader. Otherwise it's a good idea.

Now, which port? Will all the world agree on 120?

Time for SOF-977 with only the NNTP part (no reader commands)?

-oea

Re: INN - port other than 119?
#13578
Author: Mark Delany
Date: Sat, 28 Dec 1996 00:00
18 lines
1190 bytes
oea@usit.uio.no (Odd Einar Aurbakken) writes:

>> We've just moved innd to port 120, and runs nnrpd out of inetd at port
>> 119, this ment a great improvement for our readers connect time.

>Now, which port? Will all the world agree on 120?

I hope not since:

nnsp            433/tcp         usenet          # Network News Transfer

has already been allocated for this purpose.

Regards.


Re: INN - port other than 119?
#13580
Author: Cracker Buster
Date: Sat, 28 Dec 1996 00:00
82 lines
3942 bytes
On 27 Dec 1996, Odd Einar Aurbakken wrote:

> > We've just moved innd to port 120, and runs nnrpd out of inetd at port
> > 119, this ment a great improvement for our readers connect time.
> 
> This has the disadvantage that clients that connect and close/drop and
> reconnect over and over get much faster, making it harder to convince
> the lusers to change to a real news reader. Otherwise it's a good idea.

With some flavor of INN 1.5 (line numbers may vary):

> diff -c /usr/local/etc/rc.news /usr/local/etc/rc.news-orig 
*** /usr/local/etc/rc.news      Fri Dec 13 20:37:39 1996
--- /usr/local/etc/rc.news-orig Sun Nov 17 01:13:32 1996
***************
*** 16,22 ****
  
  ##  RFLAG is set below; set FLAGS as appropriate.
  RFLAG=""
! FLAGS="-i100 -H1 -X60"
  
  ##  Clean shutdown?
  if [ -f ${SERVERPID} ] ; then
--- 16,22 ----
  
  ##  RFLAG is set below; set FLAGS as appropriate.
  RFLAG=""
! FLAGS="-i0"
  
  ##  Clean shutdown?
  if [ -f ${SERVERPID} ] ; then

[If you want to be polite to certain newsreaders, you could use -H2 and
-X30, for example.]


ln -s /usr/local/news/hosts.nntp.nolimit /usr/local/news/hosts.nntp

[Your path probably will vary.  If you want local flexibility, copy the
second file above to the first and add to the latter the hosts you read
from or your boss reads from or which otherwise deserve special
treatment.  Be sure to update the nolimit file anytime you add a peer.]


> diff -c include/nntp.h include/nntp.h-orig
*** include/nntp.h      Wed Dec 18 14:52:07 1996
--- include/nntp.h-orig Mon Nov 11 15:51:26 1996
***************
*** 82,88 ****
  #define NNTP_CANTPOST_VAL             440
  #define NNTP_SERVER_TOOBUSY           "504 Server overloaded, try later"
  #define NNTP_SERVER_TOOBUSY_VAL               504
! #define NNTP_TOO_MANY_CONNECTS                "505 Get a real newsreader, you Netscrape lamer."
  #define NNTP_TOO_MANY_CONNECTS_VAL    505
  
  /* new entries for the "streaming" protocol */
--- 82,88 ----
  #define NNTP_CANTPOST_VAL             440
  #define NNTP_SERVER_TOOBUSY           "504 Server overloaded, try later"
  #define NNTP_SERVER_TOOBUSY_VAL               504
! #define NNTP_TOO_MANY_CONNECTS                "505 Connection rejected, you're making too many connects per minute"
  #define NNTP_TOO_MANY_CONNECTS_VAL    505
  
  /* new entries for the "streaming" protocol */


Then you can watch your news.daily report fill up with 505's.  (It looks
like the innreport.pl supplied with 1.5 takes these into consideration,
but I'm using Fabien Tassin's innreport.pl which, as of 2.1b6, treats
these as unknown messages, filling numerous lines in the report as
frustrated readers nearby repeatedly try to get the latest fetish pictures.)
Or, for more fun, tail -f news.notice and watch, relishing the frustration
of the clueless lusers as they agonizingly connect in vain every two or
three seconds.


Barry Bouwsma
Radio Praha BNAFH


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