openl2tp.org
http://forums.openl2tp.org/

many networks
http://forums.openl2tp.org/viewtopic.php?f=3&t=12
Page 1 of 1

Author:  jchapman [ Wed Feb 18, 2009 11:02 pm ]
Post subject:  Re: many networks

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.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/