Networking Forums

Networking Forums > Computer Networking > Linux Networking > Change local Address of ppp link

Reply
Thread Tools Display Modes

Change local Address of ppp link

 
 
Stephan
Guest
Posts: n/a

 
      06-30-2005, 07:44 AM
Hello, all!

We are using a ppp link to the internet over the gsm/gprs network. This
network assigns a IP Address from the 10.0.0.0/8 subnet and gives
access to the internet using NAT.

Over this link we build a VPN connection which assigns a address from
the same subnet to our device.

Since there is a certain risk to get the same address from the network
we want to assgn a fixed address to the local ppp-device in a way that
the peer still believes to talk to the address it assigned. As far as I
understand the ppp protocol this should be possible, but how?

Any help is very welcome!

With kind regards

Stephan Hoffmann

 
Reply With Quote
 
 
 
 
Dan
Guest
Posts: n/a

 
      06-30-2005, 08:53 AM
On 30 Jun 2005 00:44:32 -0700, "Stephan" <(E-Mail Removed)> wrote:

>Since there is a certain risk to get the same address from the network
>we want to assgn a fixed address to the local ppp-device in a way that
>the peer still believes to talk to the address it assigned. As far as I
>understand the ppp protocol this should be possible, but how?
>


man pppd

OPTIONS
<local_IP_address>:<remote_IP_address>
Set the local and/or remote interface IP addresses.
Either one may be omitted. The IP addresses can be
specified with a host name or in decimal dot nota-
tion (e.g. 150.234.56.78). The default local
address is the (first) IP address of the system
(unless the noipdefault option is given). The
remote address will be obtained from the peer if
not specified in any option. Thus, in simple
cases, this option is not required. If a local
and/or remote IP address is specified with this
option, pppd will not accept a different value from
the peer in the IPCP negotiation, unless the ipcp-
accept-local and/or ipcp-accept-remote options are
given, respectively.

Dan
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      06-30-2005, 08:06 PM
Stephan <(E-Mail Removed)> wrote:
> Hello, all!


> We are using a ppp link to the internet over the gsm/gprs network. This
> network assigns a IP Address from the 10.0.0.0/8 subnet and gives
> access to the internet using NAT.


> Over this link we build a VPN connection which assigns a address from
> the same subnet to our device.


> Since there is a certain risk to get the same address from the network
> we want to assgn a fixed address to the local ppp-device in a way that
> the peer still believes to talk to the address it assigned. As far as I
> understand the ppp protocol this should be possible, but how?


If you mean change the local IP address of the PPP link's interface then
the answer is no. The "gsm/gprs network" expects the local IP address
to be the one it provides, and changing it unilaterally just won't work.
I also rather doubt that any local IP address configured for use in IPCP
negotiation would be accepted by the provider.

OTOH, GSM/GPRS PPP can be rather strange...

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
 
Reply With Quote
 
Stephan
Guest
Posts: n/a

 
      07-01-2005, 06:55 AM
Hi, Dan and Clifford,

thanx for your reply. In fact, I read the man page and lots of other
documents ans googled for a answer, too.

Unfortunatelly, this option does only work if the peer accepts the
given local address. Our peer doesn't.

That's the reason that we need to translate the address somehow. Could
that possible be done with iptables?

Regards

Stephan

 
Reply With Quote
 
Dan
Guest
Posts: n/a

 
      07-01-2005, 07:50 AM
On 30 Jun 2005 23:55:58 -0700, "Stephan" <(E-Mail Removed)> wrote:

Are you forced to use the same subnet for the VPN? If not, then
create the VPN connection on a different subnet and set the associated
ip address as the default route using the ppp defaultroute option.

Dan

>Hi, Dan and Clifford,
>
>thanx for your reply. In fact, I read the man page and lots of other
>documents ans googled for a answer, too.
>
>Unfortunatelly, this option does only work if the peer accepts the
>given local address. Our peer doesn't.
>
>That's the reason that we need to translate the address somehow. Could
>that possible be done with iptables?
>
>Regards
>
>Stephan


 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      07-01-2005, 05:43 PM
Stephan <(E-Mail Removed)> wrote:
> Hi, Dan and Clifford,


> thanx for your reply. In fact, I read the man page and lots of other
> documents ans googled for a answer, too.


> Unfortunatelly, this option does only work if the peer accepts the
> given local address. Our peer doesn't.


> That's the reason that we need to translate the address somehow. Could
> that possible be done with iptables?


I only learned enough about iptables to modify a firewall for my needs
and don't have a good answer to that question. There may be a simple
way, a horrible way, or no way (suitable for your purpose) to "translate
the address." Perhaps someone else will volunteer...

Stephan's suggestion about using a different subnet for the VPN seems
reasonable.

The easiest thing would be to use a subnet of 168.192.0.0-168.192.255.0
or 172.16.0.0-172.31.0.0 for the VPN. Or if there is a compelling reason
to use a subnet of 10.0.0.0-255.255.255 for the VPN then try to find out
whether the provider uses a smaller, and fixed, subnet (i.e., not /8)
of that range to provide service for you and assign a different subnet
to the VPN.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      07-01-2005, 06:50 PM
Clifford Kite <(E-Mail Removed)> writes:

>Stephan <(E-Mail Removed)> wrote:
>> Hi, Dan and Clifford,


>> thanx for your reply. In fact, I read the man page and lots of other
>> documents ans googled for a answer, too.


>> Unfortunatelly, this option does only work if the peer accepts the
>> given local address. Our peer doesn't.


>> That's the reason that we need to translate the address somehow. Could
>> that possible be done with iptables?


>I only learned enough about iptables to modify a firewall for my needs
>and don't have a good answer to that question. There may be a simple
>way, a horrible way, or no way (suitable for your purpose) to "translate
>the address." Perhaps someone else will volunteer...


>Stephan's suggestion about using a different subnet for the VPN seems
>reasonable.


>The easiest thing would be to use a subnet of 168.192.0.0-168.192.255.0


Other way around 192.168.x.x Yours is a valid range of IP addresses owned
by Sprint.

>or 172.16.0.0-172.31.0.0 for the VPN. Or if there is a compelling reason
>to use a subnet of 10.0.0.0-255.255.255 for the VPN then try to find out
>whether the provider uses a smaller, and fixed, subnet (i.e., not /8)
>of that range to provide service for you and assign a different subnet
>to the VPN.


>--
>Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      07-01-2005, 08:37 PM
Unruh <unruh-(E-Mail Removed)> wrote:
> Clifford Kite <(E-Mail Removed)> writes:


>>The easiest thing would be to use a subnet of 168.192.0.0-168.192.255.0


> Other way around 192.168.x.x Yours is a valid range of IP addresses owned
> by Sprint.


Thanks for correcting my dsylexia. Just in case someone doesn't
understand yet, it should be 192.168.0.0-192.168.255.0, a private IP
address range, not 168.192.0.0-168.192.255.0.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
 
Reply With Quote
 
Stephan
Guest
Posts: n/a

 
      07-02-2005, 10:01 AM
Hi, All!

I already thought of assigning another subnet, but the System is not
fixed to a given GSM-network. So I must be aware that another network
will give other addresses.

I took the big 10.0.0.0/8 net because we probably will have to connect
lots of devices each with an own local subnet behind.

Another solution I thought of is to reconnect if the network gives the
already predefined address.

In fact, the address translation would be the cleanest aolution.

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
Link Local Address InuY4sha Linux Networking 1 09-13-2011 02:36 PM
Avoiding IPV6 link local address after boot ianbrn@gmail.com Linux Networking 2 03-20-2008 05:35 PM
change MAC address can change IP address of a machine? apngss@yahoo.com Linux Networking 7 01-05-2006 11:09 PM
change MAC address can change IP address of a machine? apngss@yahoo.com Wireless Internet 7 01-05-2006 11:09 PM
How to change local IP of wireless router Bill Wireless Internet 4 08-30-2004 02:32 PM



1 2 3 4 5 6 7 8 9 10 11