PPTP (MPD5) not creating Ng0 interface

Status
Not open for further replies.

vitek

Dabbler
Joined
Feb 16, 2012
Messages
18
I am trying to setup an PPTP connection from my freenas box to a VPN provider.
I have installed the mpd5 via the pkg_add -r command. And i have configured an mpd.conf(its in the correct location, double checked this) file see below:

Code:
startup:

default:
load pptp_client


pptp_client:
#
# PPTP client: only outgoing calls, auto reconnect,
# ipcp-negotiated address, one-sided authentication,
# default route points on ISP's end
#
create bundle static B1
#set iface route default
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
create link static L1 pptp
set link action bundle B1
set auth authname ********
set auth password ********
set link max-redial 0
set link mtu 1500
set link keep-alive 20 75
set pptp peer vpn.anonine.net
set pptp disable windowing
open


But i cant seem to even get the Ng0 interface up. When i start the mpd5 daemon with the "/etc/local/rc.d/mpd5 start" command i get the output

Code:
/etc/local/rc.d/mpd5 start
Starting mpd5.


Then nothing else and when i check my interfaces there is no Ng0 interface up.

Code:
ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
        ether xx:xx:xx:xx:xx:xx
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
        ether xx:xx:xx:xx:xx:xx
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
        ether xx:xx:xx:xx:xx:xx
        inet xx.xx.xx.xx netmask 0xffffff00 broadcast xx.xx.xx.xx
        media: Ethernet autoselect
        status: active
        laggproto lacp
        laggport: em1 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
        laggport: em0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>




I dont seem to get what is causing this. If anyone can help i would appriciate it.
 

vitek

Dabbler
Joined
Feb 16, 2012
Messages
18
Jun 6 21:05:11 nas mpd: Multi-link PPP daemon for FreeBSD
Jun 6 21:05:11 nas mpd:
Jun 6 21:05:11 nas mpd: process 16620 started, version 5.5 (root@freebsd.org 03:11 28-May-2010)
Jun 6 21:05:11 nas mpd: MppcTestCap: can't create socket node: No such file or directory
Jun 6 21:05:11 nas mpd: LinksInit(): can't create socket node: No such file or directory
Jun 6 21:05:11 nas mpd: CcpsInit(): can't create socket node: No such file or directory
Jun 6 21:05:11 nas mpd: EcpsInit(): can't create socket node: No such file or directory


I get this in the log when starting mpd5. Seems that some modules are missing from the kernel. Anyone know if its possible to enable these in Freenas? I think its the ng modules (netgraph) not sure though.
 

vitek

Dabbler
Joined
Feb 16, 2012
Messages
18
I have solved it and have everything working. After loading the netgraph modules MPD5 is now starting correctly and everything is working fine. Just wanted ppl to know if they are in the same situation.
 
Joined
Jun 23, 2013
Messages
26
Hi Vitek

I have a similar problem to you but can't find how to load the netgraph modules. Could you please tell me how you did it?

Thanks
 

vitek

Dabbler
Joined
Feb 16, 2012
Messages
18
I dont remember exactly how I did it but what I do remember is that i took the modules from the Freebsd iso and put them along with the default freenas modules.
 
Joined
Jun 23, 2013
Messages
26
Thanks. I'm a Windows man who is new to Linux/Unix. When you say you put the modules from the iso and put them with the freenas modules, what exactly do you mean? Your post was the only one I could find that even started to help me get to the bottom of my issue.
 

vitek

Dabbler
Joined
Feb 16, 2012
Messages
18
Well basically I took the FreeBSD iso and mounted it with deamontools took and copied the modules to the folder with freenas modules. I think i used filezilla ftp to transfer the files.
 
Joined
Jun 23, 2013
Messages
26
Well basically I took the FreeBSD iso and mounted it with deamontools took and copied the modules to the folder with freenas modules. I think i used filezilla ftp to transfer the files.


Sorry to be a pain. I've downloaded the FreeBSD ISO and mounted it but I've no idea how to find the modules. Can you please give me some pointers?
 

vitek

Dabbler
Joined
Feb 16, 2012
Messages
18
Its probably in the kernel folder. I think it was /boot/kernel , you are looking for .ko files
 
Status
Not open for further replies.
Top