Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OpenVPN setup
Date: Tue, 12 Feb 2008 00:00:55
Message-Id: 49bf44f10802111600q1113eda5m1f58892a4663e78b@mail.gmail.com
In Reply to: Re: [gentoo-user] OpenVPN setup by Mike Mazur
1 > > > > I'm hoping to use the vpn in three few ways:
2 > > > >
3 > > > > 1. imap and smtp between my laptop and the mail server
4 > > > > 2. ssh from my laptop to the remote server
5 > > > > 3. cups printing from the remote server to the print server
6 > > >
7 > > > I don't think you need a VPN to SSH from your laptop to the remote
8 > > > server -- SSH is already encrypted.
9 > >
10 > > For sure, but it seems like running SSH inside a VPN is better for
11 > > security than running SSH on a non-standard port or even port
12 > > knocking. If I need to set up a VPN for printing, shouldn't I use it
13 > > for other stuff too? Maybe not, I have yet to actually use a VPN so
14 > > please correct me if I'm wrong.
15 >
16 > There are other ways to make SSH more "secure". For example, you could
17
18 But what's wrong with this one? :) Honestly though, why would any of
19 those methods be preferred to openvpn?
20
21 > only enable PubkeyAuthentication while disabling all other methods of
22 > Authentication, then use a large (4096-bit?) key pair with a strong
23 > passphrase[1] and use keychain[2] so you don't have to type in the
24 > passphrase all the time. OK, I'm exaggerating a bit with those
25 > passwords from GRC, but you get the idea.
26 >
27 > [1] https://www.grc.com/passwords.htm
28 > [2] http://www.gentoo.org/proj/en/keychain/
29 >
30 > Also keep in mind the added overhead with OpenVPN -- your encrypted
31 > SSH traffic is again encrypted by the VPN.
32
33 Is this significant? Would my SSH latency be increased, the system
34 slowed down, or both?
35
36 > > > If your laptop is always behind your local firewall, then it should be
37 > > > sufficient to have an OpenVPN tunnel established between your local
38 > > > firewall/print server and your remote server. This should allow you to
39 > > > print.
40 > > >
41 > > > Configuring the routes on your laptop to go through your local
42 > > > firewall and VPN to the remote server should allow you to grab your
43 > > > mail.
44 > > >
45 > > > If you move around with your laptop then you'll need to establish the
46 > > > VPN tunnel to your remote server anytime you need to grab your mail
47 > > > from anywhere else but home (behind your local firewall).
48 > >
49 > > Ah, tunnels, OK. I need to think in terms of tunnels. I'll
50 > > definitely be moving around and won't be behind my local firewall too
51 > > much of the time. Can I set up the openvpn server on my remote system
52 > > and keep a tunnel open between it and the firewall/print server for
53 > > printing, and also initiate a tunnel between the laptop and the remote
54 > > system whenever I need to mail or SSH? Does that sound like a good
55 > > plan?
56 >
57 > Yep, that should work. With a 'permanent' tunnel established between
58 > your remote server and your local firewall/print server, you'll always
59 > have access to those too simply by connecting via VPN to your remote
60 > server. You can print from your laptop to your printer at home while
61 > overseas, for example.
62
63 Nice, thanks Mike.
64
65 - Grant
66 --
67 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] OpenVPN setup Dan Farrell <dan@×××××××××.cx>