Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

Re: My address

Keith Owens (kaos@ocs.com.au)
Thu, 16 Jan 1997 18:59:29 +1100

On Wed, 15 Jan 1997 22:58:36 -0800 (PST),
George Cserenyi <zsolt@direct.ca> wrote:
>My linux box at home (local host) connects to the internet using
>dialup ppp via my ISP. The box's IP address is 204.174.251.69 but
>if I telnet or rlogin to a remote host, 'who' shows a dynamically
>allocated IP address from my ISP instead of mine.
>Can I make my local host's IP to show up at the remote host?

Only if it is a valid address that has been assigned to you and the ISP
is willing to route packets to that address and publish the route to
the rest of the world. Only if all three are true, in ppp/ip-up do

#!/bin/sh
# override the supplied IP address so outgoing connections from this
# host have my IP address instead of the provider's.
/sbin/ifconfig $1 my.assigned.ip.address
/sbin/route add $5 $1
/sbin/route add default gw $5

>Are there many ways to do this?

Only one that came out of several mails when I asked the same question.
It takes advantage of the fact that once the PPP link is established,
the ISP could not care less what your end calls itself as long as the
ISP knows how to route to the new address down the same link.