Page 1 of 1

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

Posted: 27 Jul 2022, 10:08
by digger
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

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

Posted: 12 Aug 2022, 16:13
by dimka88
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.