[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)

From: Mike Ayers
Subject: Re: (no subject)
Date: Wed, 31 Jul 2002 19:51:27 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721

Josh wrote:
>  As I am running the CVS server (v1.11.2 pserver) on a
>  (linux) machine with two network adapters I would very
>  much like to know if it is possible to bind the server
>  to a specific network interface?

Douglas Finkle wrote:
Check out  You can make your
server listen on _only_ the desired interface.

Absolutely incorrect. IP filters do not prevent the service from listening on other interfaces, they are used to block packets before they get to the service. The difference is that if you forget to filter an interface, the packets will reach the server, which is probably bad. What is desired is to have the server listen on only the desired interface instead of the usual

        Here's a snippet from my inetd manual entry (OpenBSD 2.9):

"For internet services, the first field of the line may also have a host address specifier prefixed to it, separated from the service name by a colon. If this is done, the string before the colon in the first field indicates what local address inetd should use when listening for that service. Multiple local addresses can be specified on the same line, separated by commas. Numeric IP addresses in dotted-quad notation can be used as well as symbolic hostnames. Symbolic hostnames are looked up using gethostbyname(). If a hostname has multiple address mappings, inetd creates a socket to listen on each address."

This would be the way that I would use on that machine. Josh, your Linux machine probably supports the same method. If so, this is what you want.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]