Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Re: HOWTO: PPtP VPN
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-04-07
07:20 AM
2011-04-07
07:20 AM
Re: HOWTO: PPtP VPN
No, that's fine. As you can see from the uname output, you have an SMP kernel, so defconfig.smp should be the right one for you. So something else must have gone wrong while building the kernel and the modules. I suggest you do a "make mrproper" and start from scratch.
-Stefan
-Stefan
Message 26 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-04-07
08:18 AM
2011-04-07
08:18 AM
Re: HOWTO: PPtP VPN
Don't forget 'make clean'. And don't extract/compile in your home dir. Do everything in a folder under /c/!!!
Message 27 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-04-09
04:19 AM
2011-04-09
04:19 AM
Re: HOWTO: PPtP VPN
Thank you guys! I did it all over again and this time it worked, the only thing i changed was that i did a "make all" before make menuconfig.
Everything seems to be working 🙂
Everything seems to be working 🙂
Message 28 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-04-14
03:52 AM
2011-04-14
03:52 AM
Re: HOWTO: PPtP VPN
indomiti wrote: Thank you guys! I did it all over again and this time it worked, the only thing i changed was that i did a "make all" before make menuconfig.
Everything seems to be working 🙂
Why you didnt take the compiled modules? Didnt work the compiled moduls?
edit:
ah okay i see you use a readynas ultra 4.
Message 29 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-05-26
02:45 PM
2011-05-26
02:45 PM
Re: HOWTO: PPtP VPN
An update: WhoCares? helped me modify my init.d script. For some reason, on my readynas, the ppp device isn't created automatically. You'll know you have this problem if this appears in your /var/log/syslog when you try to connect:
So, you can either type
every time you reboot, or you can edit /etc/init.d/pptpd to look like this:
And don't forget to also build "PPP support for async serial ports" module when you're selecting the others.
May 26 14:15:24 bigboy pppd[3387]: pppd is unable to open the /dev/ppp device. You need to create the /dev/ppp device node by executing the following command as root: ^Imknod /dev/ppp c 108 0
So, you can either type
mknod /dev/ppp c 108 0
every time you reboot, or you can edit /etc/init.d/pptpd to look like this:
case "$1" in
start)
echo -n "Starting PPTP Daemon: "
if [ ! -c /dev/ppp ]; then mknod /dev/ppp c 108 0; fi
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
-- < /dev/null > /dev/null
echo "pptpd."
;;
And don't forget to also build "PPP support for async serial ports" module when you're selecting the others.
Message 30 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-06-13
06:54 AM
2011-06-13
06:54 AM
Re: HOWTO: PPtP VPN
Is it possible that the vpn clients can use DLNA services from nas? I think the pptpd have to forward the upnp ports? Hase anyone a idea how to solves this problem?
Message 31 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-06-16
07:22 PM
2011-06-16
07:22 PM
Re: HOWTO: PPtP VPN
I do this on my iphone and ipad. Just check the box "send all traffic". Works great. No ports need to be forwarded. A PpTP connection works as an additional network connection. It's not like OpenSSL or SSH that needs ports mapped/forwarded.
Message 32 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-06-17
08:49 AM
2011-06-17
08:49 AM
Re: HOWTO: PPtP VPN
efalsken wrote: ...Just check the box "send all traffic". Works great. No ports need to be forwarded. A PpTP connection works as an additional network connection. It's not like OpenSSL or SSH that needs ports mapped/forwarded.
Where can i check this box "send all traffic"?
greetings
Message 33 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-06-17
10:03 PM
2011-06-17
10:03 PM
Re: HOWTO: PPtP VPN
"send all traffic" is on the iphone/ipad, when configuring the VPN server. (Settings, General, Network, VPN)
On Windows, it's called "Use default gateway" and is in the network, TCP/IP settings.
On Windows, it's called "Use default gateway" and is in the network, TCP/IP settings.
Message 34 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-06-22
03:28 AM
2011-06-22
03:28 AM
Re: HOWTO: PPtP VPN
efalsken wrote:
On Windows, it's called "Use default gateway" and is in the network, TCP/IP settings.
Hi, thanks for your reply. I unchecked "Use default gateway" in the TCP/IP settings, because i will lose the internet connection when I'm connected to the vpn.
Have i to add a route on the nas that i can use the internet when im using the vpn connection?
greetings
Message 35 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-06-22
05:51 PM
2011-06-22
05:51 PM
Re: HOWTO: PPtP VPN
On the NAS, when setting up the VPN, you will need to enable bcrelay. See the first few postings for how to enable bcrelay. I found it myself by just looking through a few of the config files mentioned here too.
Message 36 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-07-28
06:50 AM
2011-07-28
06:50 AM
Re: HOWTO: PPtP VPN
See below. I'm trying this on a Duo with 4.1.8-T5 beta firmware. " Package ppp is not configured yet." is the error. Suggestions please.
Thanks.
london:~# apt-get update
Get:1 http://www.readynas.com readynas/ Packages [19.9kB]
Ign http://www.readynas.com readynas/ Release
Get:2 http://archive.debian.org sarge/main Packages [4405kB]
Get:3 http://archive.debian.org sarge/main Release [99B]
Get:4 http://archive.debian.org sarge/contrib Packages [62.7kB]
Get:5 http://archive.debian.org sarge/contrib Release [102B]
Get:6 http://archive.debian.org sarge/non-free Packages [53.2kB]
Get:7 http://archive.debian.org sarge/non-free Release [103B]
Get:8 http://archive.debian.org sarge/main Sources [1323kB]
Get:9 http://archive.debian.org sarge/main Release [100B]
Get:10 http://archive.debian.org sarge/contrib Sources [24.7kB]
Get:11 http://archive.debian.org sarge/contrib Release [103B]
Get:12 http://archive.debian.org sarge/non-free Sources [23.5kB]
Get:13 http://archive.debian.org sarge/non-free Release [104B]
Fetched 5912kB in 40s (147kB/s)
Reading Package Lists... Done
london:~# apt-get install pptp
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package pptp
london:~# apt-get install pptpd
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libpcap0.7 ppp
Suggested packages:
libatm1
The following NEW packages will be installed:
libpcap0.7 ppp pptpd
0 upgraded, 3 newly installed, 0 to remove and 71 not upgraded.
Need to get 460kB of archives.
After unpacking 1528kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.debian.org sarge/main libpcap0.7 0.7.2-7 [70.7kB]
Get:2 http://archive.debian.org sarge/main ppp 2.4.3-20050321+2sarge1 [330kB]
Get:3 http://archive.debian.org sarge/main pptpd 1.2.1-4 [59.3kB]
Fetched 460kB in 5s (82.6kB/s)
Selecting previously deselected package libpcap0.7.
(Reading database ... 12668 files and directories currently installed.)
Unpacking libpcap0.7 (from .../libpcap0.7_0.7.2-7_sparc.deb) ...
Selecting previously deselected package ppp.
Unpacking ppp (from .../ppp_2.4.3-20050321+2sarge1_sparc.deb) ...
Selecting previously deselected package pptpd.
Unpacking pptpd (from .../pptpd_1.2.1-4_sparc.deb) ...
Setting up libpcap0.7 (0.7.2-7) ...
Setting up ppp (2.4.3-20050321+2sarge1) ...
install: invalid group `dip'
dpkg: error processing ppp (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pptpd:
pptpd depends on ppp (>= 2.4.3-20041231); however:
Package ppp is not configured yet.
dpkg: error processing pptpd (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ppp
pptpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
london:~# apt-get install ppp
Reading Package Lists... Done
Building Dependency Tree... Done
ppp is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 71 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up ppp (2.4.3-20050321+2sarge1) ...
install: invalid group `dip'
dpkg: error processing ppp (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pptpd:
pptpd depends on ppp (>= 2.4.3-20041231); however:
Package ppp is not configured yet.
dpkg: error processing pptpd (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ppp
pptpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks.
london:~# apt-get update
Get:1 http://www.readynas.com readynas/ Packages [19.9kB]
Ign http://www.readynas.com readynas/ Release
Get:2 http://archive.debian.org sarge/main Packages [4405kB]
Get:3 http://archive.debian.org sarge/main Release [99B]
Get:4 http://archive.debian.org sarge/contrib Packages [62.7kB]
Get:5 http://archive.debian.org sarge/contrib Release [102B]
Get:6 http://archive.debian.org sarge/non-free Packages [53.2kB]
Get:7 http://archive.debian.org sarge/non-free Release [103B]
Get:8 http://archive.debian.org sarge/main Sources [1323kB]
Get:9 http://archive.debian.org sarge/main Release [100B]
Get:10 http://archive.debian.org sarge/contrib Sources [24.7kB]
Get:11 http://archive.debian.org sarge/contrib Release [103B]
Get:12 http://archive.debian.org sarge/non-free Sources [23.5kB]
Get:13 http://archive.debian.org sarge/non-free Release [104B]
Fetched 5912kB in 40s (147kB/s)
Reading Package Lists... Done
london:~# apt-get install pptp
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package pptp
london:~# apt-get install pptpd
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libpcap0.7 ppp
Suggested packages:
libatm1
The following NEW packages will be installed:
libpcap0.7 ppp pptpd
0 upgraded, 3 newly installed, 0 to remove and 71 not upgraded.
Need to get 460kB of archives.
After unpacking 1528kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.debian.org sarge/main libpcap0.7 0.7.2-7 [70.7kB]
Get:2 http://archive.debian.org sarge/main ppp 2.4.3-20050321+2sarge1 [330kB]
Get:3 http://archive.debian.org sarge/main pptpd 1.2.1-4 [59.3kB]
Fetched 460kB in 5s (82.6kB/s)
Selecting previously deselected package libpcap0.7.
(Reading database ... 12668 files and directories currently installed.)
Unpacking libpcap0.7 (from .../libpcap0.7_0.7.2-7_sparc.deb) ...
Selecting previously deselected package ppp.
Unpacking ppp (from .../ppp_2.4.3-20050321+2sarge1_sparc.deb) ...
Selecting previously deselected package pptpd.
Unpacking pptpd (from .../pptpd_1.2.1-4_sparc.deb) ...
Setting up libpcap0.7 (0.7.2-7) ...
Setting up ppp (2.4.3-20050321+2sarge1) ...
install: invalid group `dip'
dpkg: error processing ppp (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pptpd:
pptpd depends on ppp (>= 2.4.3-20041231); however:
Package ppp is not configured yet.
dpkg: error processing pptpd (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ppp
pptpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
london:~# apt-get install ppp
Reading Package Lists... Done
Building Dependency Tree... Done
ppp is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 71 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up ppp (2.4.3-20050321+2sarge1) ...
install: invalid group `dip'
dpkg: error processing ppp (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pptpd:
pptpd depends on ppp (>= 2.4.3-20041231); however:
Package ppp is not configured yet.
dpkg: error processing pptpd (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ppp
pptpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Message 37 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-07-28
07:09 AM
2011-07-28
07:09 AM
Re: HOWTO: PPtP VPN
It looks like you skipped the step of creating a 'dip' group:
As a result, the ppp package is not configured yet.
You'll need to create the group named 'dip', and then try installing pptpd again.
install: invalid group `dip'
As a result, the ppp package is not configured yet.
You'll need to create the group named 'dip', and then try installing pptpd again.
Message 38 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-07-29
11:43 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-02-02
01:57 AM
2012-02-02
01:57 AM
Re: HOWTO: PPtP VPN
I cant run
I just get
and when i try to upgrade ncurses it wont allow me.
make menuconfig
I just get
ReadyNAS:/c/devel/linux-2.6.37.6# make menuconfig
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
and when i try to upgrade ncurses it wont allow me.
Message 40 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-02-02
07:20 AM
2012-02-02
07:20 AM
Re: HOWTO: PPtP VPN
You will definitely need curses to run menuconfig. The error you get when installing curses would be more useful for diagnosing what's going on.
You could potentially use "make config" rather than menuconfig to avoid the need for curses, but I recommend against it because it does the job as a long, tedious series of questions that's easy to screw up.
apt-get install libncurses5-dev
You could potentially use "make config" rather than menuconfig to avoid the need for curses, but I recommend against it because it does the job as a long, tedious series of questions that's easy to screw up.
Message 41 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-02-02
07:32 AM
2012-02-02
07:32 AM
Re: HOWTO: PPtP VPN
Ok so now ive got the make menuconfig to work.
But it still wont work for me, When i try to run the PPP modules it just sais :
please help.
But it still wont work for me, When i try to run the PPP modules it just sais :
# modprobe ppp_generic
WARNING: Error inserting slhc (/lib/modules/2.6.37.6.RNx86_64.2.1/kernel/drivers/net/slhc.ko): Invalid module format
FATAL: Error inserting ppp_generic (/lib/modules/2.6.37.6.RNx86_64.2.1/kernel/drivers/net/ppp_generic.ko): Invalid module format
please help.
Message 42 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-02-02
08:46 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-02-02
09:29 AM
2012-02-02
09:29 AM
Re: HOWTO: PPtP VPN
This is all the steps I took
But i get
#apt-get update
#apt-get install build-essential
#apt-get install libncurses5-dev
#wget http://www.readynas.com/download/GPL/RNDP6xxx_4.2.1_WW_src.zip
#unzip RNDP6xxx_4.2.1_WW_src.zip d=source/
#cd source/linux-x86-2.6/
#cp arch/x86/configs/defconfig.smp .config (then i edited the config with PPP=y)
#make oldconfig
#make all
#make menuconfig
#cp drivers/net/*.ko /lib/modules/2.6.37.6.RNx86_64.2.1/kernel/drivers/net/
#depmod -a
#modprobe ppp_generic
But i get
# modprobe ppp_generic
WARNING: Error inserting slhc (/lib/modules/2.6.37.6.RNx86_64.2.1/kernel/drivers/net/slhc.ko): Invalid module format
FATAL: Error inserting ppp_generic (/lib/modules/2.6.37.6.RNx86_64.2.1/kernel/drivers/net/ppp_generic.ko): Invalid module format
Message 44 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-02-02
10:11 AM
2012-02-02
10:11 AM
Re: HOWTO: PPtP VPN
1) Doublecheck that the GPL you downloaded matches the firmware version exactly.
2) I normally don't edit the config directly. And there's a half-dozen modules you need to add. here are the ones I add:
When you copy, also make sure you get the file "slhc.ko" and "crc-ccitt.ko". I forget what their names are in the menuconfig. In all, I had to copy 12 ".ko" files into 3 different folders.
After running "modprobe" try these 2 commands to get extra error output:
2) I normally don't edit the config directly. And there's a half-dozen modules you need to add. here are the ones I add:
Device Drivers
- Network Device Support
- - PPP Support
- - PPP Filtering
- - PPP Support for async serial ports
- - PPP Support for sync tty ports
- - PPP Deflate compression
- - PPP BSD-Compress compression
- - PPP MPPE compression
- - PPP over Ethernet
Cryptographic API
- Deflate compression algorithm
- Zlib compression algorithm
- LZO compression algorigm
When you copy, also make sure you get the file "slhc.ko" and "crc-ccitt.ko". I forget what their names are in the menuconfig. In all, I had to copy 12 ".ko" files into 3 different folders.
After running "modprobe" try these 2 commands to get extra error output:
tail -n30 /var/log/syslog
dmesg
Message 45 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-02-03
10:29 AM
2012-02-03
10:29 AM
Re: HOWTO: PPtP VPN
Thanks alot for the help, I got it to work now. 🙂
Message 46 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-03-29
02:01 PM
2012-03-29
02:01 PM
Re: HOWTO: PPtP VPN
Wow, thank you guys for all the different tips in all kinds of different posts in this thread. I've got it working on a Ultra 4 with RAIDiator 4.2.19
uname -a
Linux NAS 2.6.37.6.RNx86_64.2.1 #1 SMP Mon Aug 15 16:19:41 PDT 2011 x86_64 GNU/LinuxPro 4 with
If anyone needs compliled modules, or tips; let me know! I would love to give something back to this community!
uname -a
Linux NAS 2.6.37.6.RNx86_64.2.1 #1 SMP Mon Aug 15 16:19:41 PDT 2011 x86_64 GNU/LinuxPro 4 with
If anyone needs compliled modules, or tips; let me know! I would love to give something back to this community!
Message 47 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-05-09
07:10 AM
2012-05-09
07:10 AM
Re: HOWTO: PPtP VPN
Hi Guys, has anyone who has got DLNA working give me some advice?
I have all VPN communcation working apart from UPnP discovery. It seems that the multicast UDP packets from my DLNA client for SSDP discovery arrive on the ppp interface but are never received by the miniDlna service (it replies on the LAN but not over VPN).
I have tried assigning non-DHCP addresses in the same subnet as the LAN /in a different subnet/ enabling bcrelay / ip forwarding etc.
It doesn't seem that this should be necessary as miniDlna is listening on all addresses and a route is defined via the tunnel back to the client, am i doing something wrong?
Thanks
I have all VPN communcation working apart from UPnP discovery. It seems that the multicast UDP packets from my DLNA client for SSDP discovery arrive on the ppp interface but are never received by the miniDlna service (it replies on the LAN but not over VPN).
I have tried assigning non-DHCP addresses in the same subnet as the LAN /in a different subnet/ enabling bcrelay / ip forwarding etc.
It doesn't seem that this should be necessary as miniDlna is listening on all addresses and a route is defined via the tunnel back to the client, am i doing something wrong?
Thanks
Message 48 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-05-13
01:51 AM
2012-05-13
01:51 AM
Re: HOWTO: PPtP VPN
Also trying to achieve the same thing on a custom lacie machine. Have got everything working except uPNP discovery.
Annoying, the Android music apps I use don't allow you to manually specify the server string so I also have to rely on discovery working.
Have tried with bcrelay, in the same subnet etc. Just cannot make it work.
Next step is to try openVpn as I heard this solves the problem.
Annoying, the Android music apps I use don't allow you to manually specify the server string so I also have to rely on discovery working.
Have tried with bcrelay, in the same subnet etc. Just cannot make it work.
Next step is to try openVpn as I heard this solves the problem.
Message 49 of 61
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-05-29
10:27 AM
2012-05-29
10:27 AM
Re: HOWTO: PPtP VPN
Anybody have experience about http://www.bestvpn.co.uk/android-vpn-service/ android vpn installation!
Thank you for helping me for making settings.
Thank you for helping me for making settings.
Message 50 of 61