Operating System - Linux
1820485 Members
2195 Online
109624 Solutions
New Discussion юеВ

Samba and Printers via VPN and masquerade

 
steven Burgess_2
Honored Contributor

Samba and Printers via VPN and masquerade

Hi Everyone

I have setup a VPN to connection to a remote server. On the remote VPN server I am masquerading the samba tcp/udp ports 137,138 and 139 to a samba server on the remote lan. I have setup a printer via cups which i am then publishing through the samba server. Locally I can see the printer when browsing with the unc path to the printers and faxes folder. The drivers have been loaded onto the server to allow the user to right click --> connect to install the printer onto the pc. When accessing over the VPN I am able to browse all the network shares apart from the printers and faxes folder, so therefore unable to print remotely (my understanding is that access to the printer is via smb!)

I am looking at the firewall logs whilst doing this and see no dropped packets

Can anyone help ?

TIA

Steve
take your time and think things through
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Samba and Printers via VPN and masquerade

Shalom,

cups uses port 631, your VPN may have a problem with that.

If thats not the issue then check the properties of the shares locally and look for inconsistenecies as far as user/group permissions.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
steven Burgess_2
Honored Contributor

Re: Samba and Printers via VPN and masquerade

Hi,

Whilst cups uses port 631, the printer is shared via samba.

I could not find a resolution so have therefore set the printer up as a local device to the PC and masqueraded port 631 to the printer. This has worked

Thanks for the pointer

Steve
take your time and think things through