Re: TCP Server Question

2001-06-06 Thread Peter van Dijk

On Wed, Jun 06, 2001 at 03:27:49PM +0200, Duncan MacMillan wrote:
> I'm sorry if this is off topic for this list, but I'm assuming that there
> will be people here that can answer this question.
> 
> I have a box that runs QMail & TCPServer. The box has multiple external
> addresses that are used to route various port connections to internal
> network addresses using redir. My problem is that I now find that I need to
> route a port 25 connection into the network. The problem I am having is that
> TCPServer is binding to all the interface addresses and as such redir can
> not bind to the address and port I need.
> 
> My question is how do I limit TCPServer to a specific address when it starts
> listening on ports 25 and 110.

Somewhere in the tcpserver line, there is a '0'. Change that to the IP
you want it to bind to.

Greetz, Peter.



Re: TCP Server Question

2001-06-06 Thread Karsten W. Rohrbach

Duncan MacMillan([EMAIL PROTECTED])@2001.06.06 15:27:49 +:
> I'm sorry if this is off topic for this list, but I'm assuming that there
> will be people here that can answer this question.
> 
> I have a box that runs QMail & TCPServer. The box has multiple external
> addresses that are used to route various port connections to internal
> network addresses using redir. My problem is that I now find that I need to
> route a port 25 connection into the network. The problem I am having is that
> TCPServer is binding to all the interface addresses and as such redir can
> not bind to the address and port I need.
> 
> My question is how do I limit TCPServer to a specific address when it starts
> listening on ports 25 and 110.

yes, read the docs to tcpserver
replace the 0 witht he ip and everything will be fine.
of course you will have to start a supervise with tcpserver for every
single address you are binding to on every prot you are binding to.
/k

> 
> Thanks
> Duncan

-- 
> Things can only really be scientifically true if they could also be false
> with different data. --Karl Popper 
KR433/KR11-RIPE -- WebMonster Community Founder -- nGENn GmbH Senior Techie
http://www.webmonster.de/ -- ftp://ftp.webmonster.de/ -- http://www.ngenn.net/
karsten&rohrbach.de -- alpha&ngenn.net -- alpha&scene.org -- [EMAIL PROTECTED]
GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE  DF22 3340 4F4E 2964 BF46

 PGP signature


RE: TCP Server Question

2001-06-06 Thread Travis L. Leuthauser

I'm assuming you're calling tcpserver in a similar manner:

/usr/local/bin/tcpserver -u  -g  0 smtp /var/qmail/bin/qmail-smtpd &
 ^
change the 0 to the address that you want tcpserver to bind to.

Hope this helps,

Travis L. Leuthauser
Network Administrator
Broadband IP, Inc.

-Original Message-
From: Duncan MacMillan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 8:28 AM
To: [EMAIL PROTECTED]
Subject: TCP Server Question


I'm sorry if this is off topic for this list, but I'm assuming that there
will be people here that can answer this question.

I have a box that runs QMail & TCPServer. The box has multiple external
addresses that are used to route various port connections to internal
network addresses using redir. My problem is that I now find that I need to
route a port 25 connection into the network. The problem I am having is that
TCPServer is binding to all the interface addresses and as such redir can
not bind to the address and port I need.

My question is how do I limit TCPServer to a specific address when it starts
listening on ports 25 and 110.

Thanks
Duncan





Re: TCP Server Question

2001-06-06 Thread Russell Nelson

Peter van Dijk writes:
 > On Wed, Jun 06, 2001 at 03:27:49PM +0200, Duncan MacMillan wrote:
 > > I'm sorry if this is off topic for this list, but I'm assuming that there
 > > will be people here that can answer this question.
 > > 
 > > I have a box that runs QMail & TCPServer. The box has multiple external
 > > addresses that are used to route various port connections to internal
 > > network addresses using redir. My problem is that I now find that I need to
 > > route a port 25 connection into the network. The problem I am having is that
 > > TCPServer is binding to all the interface addresses and as such redir can
 > > not bind to the address and port I need.
 > > 
 > > My question is how do I limit TCPServer to a specific address when it starts
 > > listening on ports 25 and 110.
 > 
 > Somewhere in the tcpserver line, there is a '0'. Change that to the IP
 > you want it to bind to.

Yep.  In fact, I strongly recommend that an ISP always run two
instances of qmail-smtpd.  One should be bound to the IP address whose 
hostname is published in MX records.  The other should be bound to an
IP address bound to a name like "smtp.example.com", which users
configure into their email clients for outgoing relaying.

This is not to solve the problem of open relays, but instead to solve
the problem of external denial of service attacks.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | 
521 Pleasant Valley Rd. | +1 315 268 1925 voice | John Hartford, RIP
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   |