Networking Forums

Networking Forums > Computer Networking > Linux Networking > Changing local address on ppp connection

Reply
Thread Tools Display Modes

Changing local address on ppp connection

 
 
Stephan
Guest
Posts: n/a

 
      05-30-2005, 03:39 PM
Hello, World;-)

I've got a ppp connection to a GPRS-network. The provider dynamically
assigns a not routable address and does NAT for the internet.

Over this connection I have to build a VPN with a predefined local
address. If now sometimes this VPN-Address and the one for the
ppp-connection were the same I'd be in trouble.

The only solution seems to be changing the local address of the ppp
connection to a fixed value, but any trial to do so in ppp's config
file makes the network provider refuse the connection. I thought of
using NAT locally, but I don't think that would be a solution for the
problem having two network devices with the same IP address.

The easiest way would be some build-in NAT in the pppd that builds the
local network device with a given address but lets the remote server
see it's idea of the client's address. Unfortunatelly, but i did not
find such a thing.

Any idea?

Many thanks in advance

Stephan

 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      05-30-2005, 11:00 PM
On 30 May 2005 08:39:47 -0700, Stephan <(E-Mail Removed)> wrote:
> Hello, World;-)
>
> I've got a ppp connection to a GPRS-network. The provider dynamically
> assigns a not routable address and does NAT for the internet.
>
> Over this connection I have to build a VPN with a predefined local
> address. If now sometimes this VPN-Address and the one for the
> ppp-connection were the same I'd be in trouble.
>
> The only solution seems to be changing the local address of the ppp
> connection to a fixed value, but any trial to do so in ppp's config
> file makes the network provider refuse the connection. I thought of
> using NAT locally, but I don't think that would be a solution for the
> problem having two network devices with the same IP address.
>
> The easiest way would be some build-in NAT in the pppd that builds the
> local network device with a given address but lets the remote server
> see it's idea of the client's address. Unfortunatelly, but i did not
> find such a thing.
>
> Any idea?


The only IP the other side is going to see or be be able to verify from
its end is the public IP that leads back to you, and if you get a PPP IP
in a private range, apparently you do not even see that from your end.

I only dabbled with freeswan when I did not know what kind of VPN our
factory was going to implement. But I was able to connect to that from a
dynamic PPP IP ipsec client without even having to know its IP (using a
defaultroute option). However, I could not connected the client from
behind NAT (Linux masquerade) because I did not have root access to the
Linux firewall/router to direct incoming protocol 50 to my private IP.
Fortunately I could still get into our factory network via ssh.

The most important thing you forgot to mention was, what VPN protocol or
programs. It would not do any good to set a static PPP IP because your
ISP would not route that (even if you set it as an alias). But at least
if you said which VPN, someone might have suggestions.
 
Reply With Quote
 
Stephan
Guest
Posts: n/a

 
      05-31-2005, 07:24 AM
Hello, David,

thank you for your reply! I'm using OpenVPN, but the problem is
independant from that.

Imagine the following example:
My device shall have the local VPN address 10.35.66.77 for the VPN
device (tun0).
When connecting to the internet, it gets a ip assigned from the network
(ppp0).
What if once in a while ppp0 gets the address 10.35.66.77?

O.K., that's quite unlikely, but Murphy sais...

Kind regards

Stephan

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing XP login from Local to Domain While Maintaining Local User. TomTech Windows Networking 13 10-03-2007 01:28 AM
CHANGING TO NEW IP ADDRESS FROM SETUP ADDRESS Jeff Windows Networking 6 01-24-2007 08:46 PM
Changing local Admin password across the network Jimmy K Windows Networking 2 09-02-2005 12:03 AM
WRT54GS Local IP not changing WJ Wireless Internet 3 08-29-2004 09:03 PM
changing the local harddrive shiv19782@yahoo.com Windows Networking 0 05-15-2004 06:32 PM



1 2 3 4 5 6 7 8 9 10 11