New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

SSL FTP and VPN help pleeeeease!

Got problems with your B2 or B3? Share and get helped!
Post Reply
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

SSL FTP and VPN help pleeeeease!

Post by Hammer »

Hi guys,

Since I am a Linux nab, I always google for instructions, but in these two cases I just can't get it working.

1, I want to SFTP to my brother's server, but can't get the darned thing to connect. I use

Code: Select all

SFTP brother.no-ip.org -P 60021
But this doesn't result in anything but the help text for sftp.
He is using SSL as security on his FTP server.

2. I have VyprVPN and would like to set up a permanent tunnel to them for all my traffic.
They have an instruction page, but it is for Ubuntu and requires a graphical interface.
https://www.goldenfrog.com/DE/en/suppor ... ux/openvpn

Any help in this would be GREATLY appreciated. :o

Thanks.

PS
Seems all I do is fail nowadays, couldn't install OpenCloud either :-(
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: SSL FTP and VPN help pleeeeease!

Post by Ubi »

Maybe you should read that help text that was presented to you.

Code: Select all

sftp -P 60021 brother.no-ip.org 
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Re: SSL FTP and VPN help pleeeeease!

Post by Hammer »

LOL. thanks Ubi.

I did read it, but couldn't make heads or tails of it.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: SSL FTP and VPN help pleeeeease!

Post by Ubi »

rule of thumb is that the optional sitches (-P, --port etc) always come before the obligatory parameters
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: SSL FTP and VPN help pleeeeease!

Post by Cheeseboy »

Hi Hammer,

Regarding the VPN part of your question:
Do you really want a permanent connection through OpenVPN for all your traffic through the B3?

I used my old B2 for such a setup for a while. The toll on the CPU because of encryption/decryption made it useless (100/100 Mbps reduced to something like 1.2).
http://forum.excito.net/viewtopic.php?f=9&t=3470#p19501

It was unreliable. It was horribly slow.
To make it start automatically was tricky - dependencies in the startup scripts only checked that the OpenVPN service was running and the TAP/TUN interface was available - not if it was actually working. A lot of "sleep", "ping", and other things went into customized scripts, and many hours was spent on this. Even when I got it working reasonably well, it was not good enough - I scrapped the whole project.
When it didn't work as planned (often because of timing (did sshd start before or after a VPN connection was established?)), the B2 became unreachable from the local network. Not a big deal, I could restart it - it was a spare machine not used for anything else. I would never set something like this up on my B3, which is the "production" machine. It is essential that it starts even if some dodgy company on the "internets" has their service up or not.

You can of course do what you want to do. Just install OpenVPN, and translate the instructions on the webpage into a config file that works.
When you install the openvpn package, you will get a bunch of examples for both client and server setups. The OpenVPN documentation on the web is one of the best I have seen - even if the extreme amount of information makes it confusing at times - every single configuration option is covered, and often with examples. There are tonnes of guides out there. The instructions in the link you posted would be enough to set it up on a headless Debian machine without the NetworkManager, plugins or applets installed without a problem.
The problem is: By setting this up you are adding another network interface to your B3. If you have the WiFi model, you've already got 4 (eth0, eth1, wlan0, br0) by default.
You have to be very careful introducing another one, and making it work with the others in a safe way.

My recommendation:
Install the VPN client on the machine(s) who are actually going to use it. They will have the processing power to handle the encryption without too much hurt, the B3 will just pass along the already encrypted traffic.
Or install OpenVPN on the B3, configure it carefully - but don't use it as the default interface. Start it when needed, not automatically (in other words: never rely on it working during startup - it is a single point of failure for your server, and in my experience it fails often). Configure services that should only communicate through your VPN solution so that they do exactly that.

Cheers,

/Cheeseboy
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Re: SSL FTP and VPN help pleeeeease!

Post by Hammer »

Cheeseboy, gee thanks for the information!

You have discouraged me from setting up a permanent VPN for sure.

My real intention was to use it only for Transmission torrent downloads, but if the bandwidth will be decreased so much it will be virtually useless.

Thanks again, and happy Christmas!

Best,
Hammer
Gordon
Posts: 1462
Joined: 10 Aug 2011, 03:18

Re: SSL FTP and VPN help pleeeeease!

Post by Gordon »

I don't think the B3 will suffer as much as Cheeseboys B2. This is because on the B3 you can offload encryption to hardware routines. Also, I have used IPsec on my B3 (Openswan - can't use that any more because of conflicting modules being compiled into the current kernel) and successfully ran an RDP connection while simultaneously copying a bunch of files through that same tunnel.
Post Reply