D'oh, I finally realized I needed to go to /dev and MAKEDEV pppx1 8-/.

Now it's working fine. I had thought pppx was one of those magic
clonable devices that you didn't need to explicitly create, I guess I
was mistaken. When I was testing the vpn, there were pppx1 and pppx2
interfaces that showed up in ifconfig for the clients, which I guess led
me to believe I didn't have to do anything special to use pppx1 in the
npppd config.

Thanks, and sorry for the noise.


On Wed, Mar 19, 2014 at 02:29:35PM -0700, Paul B. Henson wrote:
> I set up an L2TP VPN with npppd recently using pppx, and other than some
> routing issues with ospfd it works great. I'm trying to add a second VPN
> connection, but that doesn't seem to work using pppx.
> 
> With this config:
> 
> interface pppx0 address 10.128.120.1 ipcp IPCP_admin
> interface pppx1 address 10.128.120.129 ipcp IPCP
> 
> bind tunnel from L2TP_ipv4 authenticated by LOCAL_admin to pppx0
> bind tunnel from L2TP_ipv4 authenticated by LOCAL to pppx1
> 
> npppd won't start:
> 
> # npppd -d
> 2014-03-19 14:08:27:NOTICE: Starting npppd pid=28792 version=5.0.0
> 2014-03-19 14:08:27:WARNING: pptpd GRE protocol not allowed
> 2014-03-19 14:08:27:NOTICE: Load configuration
> from='/etc/npppd/npppd.conf' successfully.
> 2014-03-19 14:08:27:INFO: pppx0 Started pppx
> 2014-03-19 14:08:27:ERR: pppx1 open(/dev/pppx1) failed: No such file or 
> directory
> 
> If I switch to tun instead of pppx:
> 
> interface tun0 address 10.128.120.1 ipcp IPCP_admin
> interface tun1 address 10.128.120.129 ipcp IPCP
> bind tunnel from L2TP_ipv4 authenticated by LOCAL_admin to tun0
> bind tunnel from L2TP_ipv4 authenticated by LOCAL to tun1
> 
> it works fine:
> 
> # npppd -d
> 2014-03-19 14:14:28:NOTICE: Starting npppd pid=3355 version=5.0.0
> 2014-03-19 14:14:28:WARNING: pptpd GRE protocol not allowed
> 2014-03-19 14:14:28:NOTICE: Load configuration
> from='/etc/npppd/npppd.conf' successfully.
> 2014-03-19 14:14:28:INFO: tun0 Started ip4addr=10.128.120.1
> 2014-03-19 14:14:28:INFO: tun1 Started ip4addr=10.128.120.129
> 
> Is there any way to make two VPN connections work with pppx, or are you
> stuck with tun for that scenario?
> 
> Thanks...

Reply via email to