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

Re: New ip-up (Was: Re: REQ ip-up: run-parts /etc/ppp/up )



> Date: Mon, 3 Nov 1997 02:00:18 +0100
> From: Bernd Eckenfels <lists@lina.inka.de>
> 
> On Nov 1, Jeff Sheinberg wrote
> > I would like to know what else doesn't work besides the `talk' program?
> > 
> > I would venture a guess that what else doesn't work is the BSD rlogin,
> > rsh, rexec, etc. programs.  I would also guess that when these programs
> > were designed, there was no such thing as dynamic ip addresses.
> 
> I think the r-tools work very well with changing adresses, since they dont
> build a second connection. 
> 
> The Problem with using hostname is, that a hostname has nothing to do with
> interface addresses (especially not for multi-homed hosts). Therefore the
> right solution if a application needs the address of the connection is to to
> a getsockname(2) for a connect(2)ed socket instead of the hostname.
> 

Bernd, hi.  Have you actually tried the r-tools from a dynamic ppp
connection?  I don't have anyone to try it with.

> > 1) If your X-server is using authentication (true for xdm, and those
> > that specify the `-auth' option in .xserverrc with xinit), when the
> > hostname is changed, if you try to launch any X client it will fail, due
> > to authentication.
> 
> Of course this is only true for a remote display, snce local displays are
> always named ":0" with the UNIX Domain Socket.
> 

Of course, host based security must be disabled (xhost -) for X-server
based auth to be enabled.  It has nothing to do with local/remote
$DISPLAY.  Try it - just change your hostname, launch an X client on
your local display, and it will be bounced.  Just make sure you are
using xdm, or if you use xinit, the X-server -auth <filename> must have
first been primed with a magic cookie using the xauth program.

> Instead of changing the hostname it is better to change the ip which is
> assigned to the hostname. In any case this should only be done if it is
> switched on in a configuration file.
> 
> Anyway.. if no configuration will be checked, changing the name should only
> happen for PPP connections which have assigned the default-route...
> 

The _remote_ ppp ip address is assigned to the default route, not the
local one.  This discussion is about setting the hostname to the DNS
entry associated with the local ip address.  Anyway, I like your idea to
use a configuration file.

-- 
Jeff Sheinberg  <jeffsh@erols.com>


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: