1 |
On 02/13/2015 09:50 PM, Joseph wrote: |
2 |
> I have a hard time finding any documentation on how to print over VPN. |
3 |
> |
4 |
> I have a network printer and I would like to setup my laptop to print to it over VPN. |
5 |
> The remote VPN IP address is: 192.168.151.1 |
6 |
> The printer IP is: socket://10.0.0.105 |
7 |
> and lpd://10.0.0.106/BINARY_P1 |
8 |
> |
9 |
> I think I need some entries in VPN config files isn't it? |
10 |
> |
11 |
|
12 |
Does the VPN server also have a 10.0.0.x address? If so, you just need |
13 |
to tell the VPN clients that they can reach the 10.0.0.x network via the |
14 |
VPN, i.e. by routing through your VPN server. |
15 |
|
16 |
We have pretty much the same setup, with our VPN server sitting on |
17 |
10.1.1.1 with some other private IP address. This is the client config |
18 |
for the OpenVPN server: |
19 |
|
20 |
# cat /etc/openvpn/client-config/DEFAULT |
21 |
push "route 10.1.1.0 255.255.255.0" |
22 |
|
23 |
Then you point to that in openvpn.conf (also on the server): |
24 |
|
25 |
# grep client-config /etc/openvpn/openvpn.conf |
26 |
client-config-dir client-config |
27 |
|
28 |
After that, any new client connections will just know that 10.1.1.x can |
29 |
be reached over the VPN. |