FreeNAS PPTP connection

Status
Not open for further replies.

Matej Jurkic

Dabbler
Joined
Jun 25, 2013
Messages
11
Hi all,

I'd need some (a lot) help, regarding setting PPTP connection on my FreeNAS computer.

System info is as follows:

System Information

Hostname freenas.local
Build FreeNAS-8.3.1-RELEASE-p2-x86 (r12686+b770da6)
Platform Intel(R) Celeron(R) CPU 2.66GHz
Memory 495MB
System Time Tue Jun 25 12:16:49 PDT 2013
Uptime 12:16PM up 5:11, 1 user
Load Average 0.29, 0.27, 0.16
Connected through 192.168.0.104


I need PPTP connection to connect to my ISP.

I've read here that mpd5 should be installed, but I can not make it happen.

I've downloaded last mpd5 version from here, copied it with WinSCP (using ssh, connecting as root) in "/tmp/pppt/ " folder, extracted the tarball and ran "make install all".

Which gives me this:
===> src (install)
install -s -o root -g wheel -m 555 mpd5 /usr/local/sbin
install: mpd5: No such file or directory
*** Error code 71

Stop in /var/tmp/pptptemp/mpd-5.7/src.
*** Error code 1

Stop in /var/tmp/pptptemp/mpd-5.7.


On the other hand "make all install" gives me this:
===> src (all)
Warning: Object directory not changed from original /var/tmp/pptptemp/mpd-5.7/src
cc -O2 -pipe -DPROTO_NAME_LIST -DUSE_WRAP -DUSE_PAM -DUSE_SYSTEM -DPATH_CONF_DIR=\"/usr/local/etc/mpd5\" -DSYSLOG_FACILITY=LOG_DAEMON -DMPD_VERSION='"5.7 (root@freenas.local 12:28 25-Jun-2013)"' -g -Wall -Wcast-align -Wchar-subscripts -Wformat -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wwrite-strings -pthread -I/usr/local/include -DNOLIBPDEL -I./contrib/libpdel -DPHYSTYPE_MODEM -DPHYSTYPE_UDP -DPHYSTYPE_TCP -DPHYSTYPE_NG_SOCKET -DPHYSTYPE_PPTP -DRANDOMIZE_CID -DPHYSTYPE_PPPOE -DPHYSTYPE_L2TP -DCCP_DEFLATE -DUSE_NG_DEFLATE -DCCP_MPPC -DUSE_NG_MPPC -DCCP_PRED1 -DUSE_NG_PRED1 -DECP_DES -DUSE_NG_BPF -DUSE_NG_CAR -DUSE_NG_IPACCT -DUSE_NG_NAT -DUSE_NG_NETFLOW -DUSE_NG_TCPMSS -DUSE_NG_VJC -DUSE_IPFW -DUSE_FETCH -std=gnu99 -fstack-protector -c modem.c
cc: not found
*** Error code 127

Stop in /var/tmp/pptptemp/mpd-5.7/src.
*** Error code 1

Stop in /var/tmp/pptptemp/mpd-5.7.
Please, point me in right direction.
Many thanks,
Matthew the noob
 

titan_rw

Guru
Joined
Sep 1, 2012
Messages
586
No additional software should be installed on freenas itself. Any additional software you wish to run should be installed in a jail utilizing the plugins system. You may be able to setup a pptp vpn server there.

Also, you're running 495 megs of ram? Even without using zfs, that's still way too low for a stable setup. With UFS, I wouldn't use anything less than 2 gig.
 

Matej Jurkic

Dabbler
Joined
Jun 25, 2013
Messages
11
Hi titan, thx for the input.

Regarding 0,5gb ram, I think it'll survive, it's not really a very busy machine :smile:

But, as I understood from all the googling, I can install software and not necessarily through jails see here.

Problem that I have is I can't fetch the PBI's from NAS machine, as it needs internet connection, and to make it working I need PPTP, kind of "catch 22" situation if you know what I mean :smile:
 

titan_rw

Guru
Joined
Sep 1, 2012
Messages
586
That link is referencing how to install software into jails.

Pbi's are packages designed for installation into a jail. If there's a pbi available for the software you want, you simply download it with your desktop, and install the pbi into the jail with the web gui in freenas. There's no need for pptp.

With some hacking, it is possible to get some software installed in the main freenas system, it is definately not recommded. Freenas is designed and built to be it's own distribution. Adding things along side it might have side effects that can't be predicted. That's why the plugin / jail system was developed. It lets users add whatever software they want to run 'the proper' way. Also, software installed in a jail will survive upgrades. Any changes you make to freenas itself will have to be completely redone every time you change freenas versions.
 

Matej Jurkic

Dabbler
Joined
Jun 25, 2013
Messages
11
Just saw that I was an idiot - all sw should be installed into jail - thx for clarification.

Well, I have a problem that PBI called "pptp" (used for vpn connections) does not exist, so I have to figure a way around it...
 

Matej Jurkic

Dabbler
Joined
Jun 25, 2013
Messages
11
Update: after figuring this out, here are my actions, still need help though

0) run freenas, create storages, CIFs, enabled anonymous user, installed Jail plugin etc....
1) ssh into jail (created user there, enabled sshd in rc.conf)
2) download "ports", unpack them into /usr/ports/
3) go to /usr/ports/net/pptpclient/ --> make install clean
4) received various messages on missing packages (even pptp-1.7.2.tar.gz, and perl) in folder /usr/ports/distfiles/, downloaded the and placed them in there
5) performed make install clean again, waited for a while until perl compiled, and ended up with this:

MasterJail# make install clean
===> Fetching all distfiles required by pptpclient-1.7.2_5 for building
===> Extracting for pptpclient-1.7.2_5
=> SHA256 Checksum OK for pptp-1.7.2.tar.gz.
===> pptpclient-1.7.2_5 depends on file: /usr/local/bin/perl5.14.4 - not found
===> Verifying install for /usr/local/bin/perl5.14.4 in /usr/ports/lang/perl5.14
===> Installing for perl-5.14.4
===> Generating temporary packing list
===> Checking if lang/perl5.14 already installed
===> An older version of lang/perl5.14 is already installed (perl-5.14.2_2)
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of lang/perl5.14
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/lang/perl5.14.
*** Error code 1

Stop in /usr/ports/lang/perl5.14.
*** Error code 1
-- I deinstalled older version of perl (perl-5.14.2_2), again started perl5.14.4 make install and this time it all went well
Next issue, configure and start pptpclient....
 

Matej Jurkic

Dabbler
Joined
Jun 25, 2013
Messages
11
Ok, I tried to start the pptp service, and received this:

pptp does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d)
Now I would need some serious help :smile:
 

Matej Jurkic

Dabbler
Joined
Jun 25, 2013
Messages
11
Update: so, pptp should not be started as a service :smile:

But still I can not start it!
even though it is installed /usr/local/sbin:

MasterJail# cd local
MasterJail# cd sbin
MasterJail# ls -al
total 5223
drwxr-xr-x 2 root wheel 23 Jun 26 05:53 .
drwxr-xr-x 13 root wheel 13 Jun 26 04:27 ..
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi-crashhandler
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_add
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_addrepo
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_autobuild
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_browser
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_create
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_delete
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_deleterepo
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_icon
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_indextool
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_info
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_listrepo
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_makepatch
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_makeport
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_makerepo
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_metatool
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_patch
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_update
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbi_update_hashdir
-rwxrwxrwx 20 root wheel 198254 Apr 10 13:32 pbid
-rwxrwxrwx 1 root wheel 50352 Jun 26 05:53 pptp

I'm doing smth wrong, but do not know what...
 
Status
Not open for further replies.
Top