It is currently Tue Nov 21, 2017 11:19 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Re: many networks
PostPosted: Wed Feb 18, 2009 11:02 pm 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
whotut wrote:
Hi,I have one physical server (Ubuntu).
I have installed Openl2tp successfully.
And now I want configure it.
I want to get this scheme is worked -
2 peers in one logical network, and 3 peers in different one logical network.
For example, 2 peers from 10.10.10.0/24 and server IP 10.10.10.1
and 3 peer from 192.168.0.0/16 and server IP 192.168.0.1
Now I have only first part of it. How I can assign to server another IP ?
I'm trying to do it in config file:
ppp profile modify profile_name=default \
local_ipaddr=192.168.0.1 \
use_radius=yes

ppp profile create profile_name=psk \
local_ipaddr=10.10.10.1 \
use_radius=yes

Radius assign IP for peers, and it's working correctly.
I something miss ?

Use peer profiles to distinguish the different peers, and have those profiles reference ppp profiles which use the IP addresses that you want.

For example, if your first group of public IP is 10.10.10.0/24, configure a peer profile as follows

peer profile create profile_name=group1 peer_ipaddr=10.10.10.0 netmask=255.255.255.0 ppp_profile_name=ppp1

Then create the ppp profile ppp1 to use the desired IP addresses for the PPP connection from peers in the subnet

ppp profile create profile_name=ppp1 local_ipaddr=10.10.10.1 use_radius=yes

When incoming L2TP tunnel setup requests arrive from 10.10.10.0/24, they will match peer profile "group1", which will cause the ppp profile "ppp1" to be used, unless overridden by other settings. Create as many peer profiles for different subnets as required.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group