Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] printing over VPN
Date: Sat, 14 Feb 2015 03:44:42
Message-Id: 20150214034459.GD26565@syscon7
In Reply to: Re: [gentoo-user] printing over VPN by Michael Orlitzky
1 On 02/13/15 22:17, Michael Orlitzky wrote:
2 >On 02/13/2015 09:50 PM, Joseph wrote:
3 >> I have a hard time finding any documentation on how to print over VPN.
4 >>
5 >> I have a network printer and I would like to setup my laptop to print to it over VPN.
6 >> The remote VPN IP address is: 192.168.151.1
7 >> The printer IP is: socket://10.0.0.105
8 >> and lpd://10.0.0.106/BINARY_P1
9 >>
10 >> I think I need some entries in VPN config files isn't it?
11 >>
12 >
13 >Does the VPN server also have a 10.0.0.x address? If so, you just need
14 >to tell the VPN clients that they can reach the 10.0.0.x network via the
15 >VPN, i.e. by routing through your VPN server.
16 >
17 >We have pretty much the same setup, with our VPN server sitting on
18 >10.1.1.1 with some other private IP address. This is the client config
19 >for the OpenVPN server:
20 >
21 > # cat /etc/openvpn/client-config/DEFAULT
22 > push "route 10.1.1.0 255.255.255.0"
23 >
24 >Then you point to that in openvpn.conf (also on the server):
25 >
26 > # grep client-config /etc/openvpn/openvpn.conf
27 > client-config-dir client-config
28 >
29 >After that, any new client connections will just know that 10.1.1.x can
30 >be reached over the VPN.
31
32 Thank for replying.
33
34 My eeepc VPN IP: 192.168.151.9 is the client connected over VPN to server VPN IP 192.168.151.1
35
36 So I inserted on eeepc (client) to /etc/openvpn/eeepc.conf
37 ...
38 push "route 192.168.151.0 255.255.255.0"
39
40 On a server 192.168.151.1 I have file:
41 /etc/openvpn/server.conf
42 /etc/openvpn/ccd/eeepc
43
44 in /etc/openvpn/ccd/eeepc is:
45 ifconfig-push 192.168.151.9 255.255.255.0
46
47 Do I add to "eeepc"
48 client-config-dir ???
49
50 Which file on a server do I modify?
51
52 Thanks
53 --
54 Joseph

Replies

Subject Author
Re: [gentoo-user] printing over VPN Joseph <syscon780@×××××.com>
Re: [gentoo-user] printing over VPN Michael Orlitzky <mjo@g.o>