how can i set the pptp and pppoe use different network segments

PPTP related questions
Post Reply
digger
Posts: 1
Joined: 27 Jul 2022, 09:36

how can i set the pptp and pppoe use different network segments

Post by digger » 27 Jul 2022, 10:08

how can i set the pptp and pppoe use different network segments

my configure is

################
[pppoe]
verbose=1
called-sid=mac
#tr101=1
#padi-limit=0
ip-pool=pppoe
ipv6-pool=pppoev6
ipv6-pool-delegate=pppoedele
interface=eth1

[ip-pool]
gw-ip-address=192.168.1.1
#vendor=Cisco
#attr=Cisco-AVPair
attr=Framed-Pool
#192.168.0.2-255
192.168.1.2-255,name=pppoe
192.168.1.2-255,name=pptp
192.168.1.2-255,name=l2tp
################
If I set pptp l2tp and pppoe to different network segments, how should the gateway be set?

[ip-pool]
gw-ip-address=192.168.1.1??
#vendor=Cisco
#attr=Cisco-AVPair
attr=Framed-Pool
#192.168.0.2-255
192.168.1.2-255,name=pppoe
192.168.10.2-255,name=pptp
192.168.20.2-255,name=l2tp

dimka88
Posts: 827
Joined: 13 Oct 2014, 05:51
Contact:

Re: how can i set the pptp and pppoe use different network segments

Post by dimka88 » 12 Aug 2022, 16:13

As you know, pptp, l2tp and pppoe are ppp protocols, so it is p2p and clients have /32. GW can be not from the same IP segment. If you want different GW for different protocols, you can run multiple daemons with configured protocol pr daemon.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest