You are not logged in.

#1 2013-01-20 16:10:20

bcarnazzi
Member
From: Ile de la Réunion
Registered: 2012-01-28
Posts: 14
Website

[SOLVED] Network trouble with openvpn and hplip

Hi everyone,

I use openvpn to protect my network traffic. But when my PC is connected to the remote openvpn server, my local printer (HP Officejet 4500) is unreachable (for printing and scanning). If I disconnect my openvpn client, all is ok : I can print and scan. Is there a way to have openvpn activated and be able to use hplip devices ?

I use an up-to-date arch x64 install under gnome 3, and printing with cups/hplip. Openvpn is managed thru NetworkManager.

Thank you,

Bruno.

Last edited by bcarnazzi (2013-05-07 06:53:37)

Offline

#2 2013-01-20 16:16:23

roentgen
Member
Registered: 2011-03-15
Posts: 91

Re: [SOLVED] Network trouble with openvpn and hplip

Is that a network printer? What is the ip address of it?

Also please post the output of ip route show before and after connecting to the vpn.

Last edited by roentgen (2013-01-20 16:16:46)

Offline

#3 2013-01-20 16:34:08

bcarnazzi
Member
From: Ile de la Réunion
Registered: 2012-01-28
Posts: 14
Website

Re: [SOLVED] Network trouble with openvpn and hplip

It's a network printer, IP address is : 192.168.1.117 (via DHCP)

ip route show before openvpn connection :

default via 192.168.1.1 dev eth0  proto static
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.2


ip route show after openvpn connection :

default via 10.8.0.137 dev tun0  proto static
10.8.0.1 via 10.8.0.137 dev tun0  proto static
10.8.0.137 dev tun0  proto kernel  scope link  src 10.8.0.138
93.115.84.198 via 192.168.1.1 dev eth0  proto static
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.2

Bruno.

Offline

#4 2013-01-20 16:42:50

roentgen
Member
Registered: 2011-03-15
Posts: 91

Re: [SOLVED] Network trouble with openvpn and hplip

I guess you can reach the printer (e.g by pinging its IP) but something else fails.

Offline

#5 2013-01-20 16:54:17

bcarnazzi
Member
From: Ile de la Réunion
Registered: 2012-01-28
Posts: 14
Website

Re: [SOLVED] Network trouble with openvpn and hplip

Yes, I can ping the printer. I'm not sure but I guess cups (or hplip) use some sort of multicast protocol with avahi.

I try to add the following lines to /etc/avahi/avahi-daemon.conf without success :

allow-interfaces=eth0
deny-interfaces=tun0

Maybe the problem is more hplip-related.

Bruno.

Offline

#6 2013-05-07 06:52:14

bcarnazzi
Member
From: Ile de la Réunion
Registered: 2012-01-28
Posts: 14
Website

Re: [SOLVED] Network trouble with openvpn and hplip

I found a solution : configure your printer with static IP, run hp-setup as root but don't use automatic discovery, enter the printer IP and you're done. smile
No conflict with openvpn !

Bruno.

Offline

Board footer

Powered by FluxBB