Term/Tredir errors from Ultrix/SunOS<<===>>Linux

Term/Tredir errors from Ultrix/SunOS<<===>>Linux

Post by Robert D. Warr » Tue, 22 Feb 1994 11:45:55



        I am having a problem using tredir under term 1.12 running from Linux to
both Ultrix and SunOS. I am trying to redirect my mail and news connections
from the local end, by typing (at the local end):

        tredir 25 25 119 119

and I get:

        Redirecting 25 to 25
        Port is already bound or some such error. s = -2
        Redirecting 119 to 119
        Port is already bound or some such error. s = -2

I have checked, and no other instances of tredir are running. Anybody got any
ideas? Thanks in advance.

B
--


 
 
 

Term/Tredir errors from Ultrix/SunOS<<===>>Linux

Post by Kevin A. Mockl » Tue, 22 Feb 1994 12:38:51



:=>  I am having a problem using tredir under term 1.12 running from Linux to
:=> both Ultrix and SunOS. I am trying to redirect my mail and news connections
:=> from the local end, by typing (at the local end):
:=>  
:=>  tredir 25 25 119 119

:=> and I get:

:=>  Redirecting 25 to 25
:=>  Port is already bound or some such error. s = -2
:=>  Redirecting 119 to 119
:=>  Port is already bound or some such error. s = -2

you are trying to redirect a port to itself.
Try tredir 25 remote.host:25 119 remote.news.server:119

:=> I have checked, and no other instances of tredir are running. Anybody got any
:=> ideas? Thanks in advance.

:=> B
:=> --


Kevin
--
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Kevin Mocklin                                    University of Massachusetts

              "Linux -- The choice of a GNU generation"
****************************************************************************

 
 
 

Term/Tredir errors from Ultrix/SunOS<<===>>Linux

Post by Bill Reynol » Wed, 23 Feb 1994 06:09:46




   :=> I am having a problem using tredir under term 1.12 running from Linux to
   :=> both Ultrix and SunOS. I am trying to redirect my mail and news connections
   :=> from the local end, by typing (at the local end):
   :=>      
   :=>   tredir 25 25 119 119

   :=> and I get:

   :=> Redirecting 25 to 25
   :=> Port is already bound or some such error. s = -2
   :=> Redirecting 119 to 119
   :=> Port is already bound or some such error. s = -2

   you are trying to redirect a port to itself.
   Try tredir 25 remote.host:25 119 remote.news.server:119

Not exactly, from /linux/net/inet/sock.h:

#define PROT_SOCK       1024    /* Sockets 0-1023 can't be bound too
unless you are superuser */

i.e., to redirect a port < 1024, you need to be root, or tredir suid
root. Nothing wrong with doing a tredir 25 25 - that means map the
local smtp port to the remote one - I do it every day (several times
in fact :-).

Been to any keggers lately at Brittany Manor? ;-) Greetings from the
Class (or lack thereof) of '85.
--
_____________________________________________________________________________

 
 
 

Term/Tredir errors from Ultrix/SunOS<<===>>Linux

Post by Michael Wi » Thu, 24 Feb 1994 08:08:13



Quote:>you are trying to redirect a port to itself.
>Try tredir 25 remote.host:25 119 remote.news.server:119

Another problem is that low portnumbers can only be redirected by root...

Cheers, Michael Will
--

Life is not there if you can't share it...        Hazel'O'Connor  Breaking Glass
Happily using Linux 0.99p15e with X11R5, \LaTeX, cnews/nn/uucp/TERM and:     PGP!
                         Analysis ist "kleiner Epsilon".

 
 
 

Term/Tredir errors from Ultrix/SunOS<<===>>Linux

Post by Mario Cam » Sun, 27 Feb 1994 03:25:07



Quote:>    I am having a problem using tredir under term 1.12 running from Linux to
>both Ultrix and SunOS. I am trying to redirect my mail and news connections
>from the local end, by typing (at the local end):

>    tredir 25 25 119 119

>and I get:

>    Redirecting 25 to 25
>    Port is already bound or some such error. s = -2
>    Redirecting 119 to 119
>    Port is already bound or some such error. s = -2

>I have checked, and no other instances of tredir are running. Anybody got any
>ideas? Thanks in advance.

1) Check your /etc/inetd.conf. smtp uses port 25, and nntp uses port
119. If they aren't already commented out, comment those lines. You
can't redirect a port that's being used by another service.

2) You can't redirect ports < 1024 without being root. What I did was
set the setuid bit on all of the term executables (I know, it isn't
safe, but I like living dangerously :).

BTW, when I tupload files, they have mode 600. I'd like to change that
to 666 or at least 660. Any way to do that?

Hope this helps and thanx in advance for the info,
--
Mario Camou / EDS Mexico Client-Server Integration Team
MS-DOS is a bug. MS-Windows is a bug with a Graphical User Interface.
------------------------------------------------------------------------------
My opinions are only mine, mine, MINE!