cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
508
Views
0
Helpful
12
Replies

How to access to a printer both by VPN and by local access ?

fabrice boutry
Level 1
Level 1

We have a shop with a printer, a router A for internet, a router B for VPN. Our saler print directly by router A from his mobile.

The VPN connect to the enterprise network. How to connect printer with router B and let the saler printing directly from his mobile ?

12 Replies 12

ghostinthenet
Level 7
Level 7

Assuming that both routers are on the same IP segment and the printer is using router A as its default gateway, you should be able to add a static route to this router for the VPN destination network via router B. Traffic to the printer from the VPN will be delivered via router B and traffic from the printer to the VPN will be redirected from router A to router B via the static route.

I think it's the best solution. Now i try to developp a tool for the spooler of the printer to reinitialize the spooler : i'll give my results as soon as possible.

well, it's not a success. Router A and Router B have a dynamic IP. I can't fill a static route with this dynamic IP. It's out discussion, but my tool for the spooler is good but it's not correcting a problem with a virtual printer driver. 

Router A and router B don't have static LAN addresses?

Router A has the default static adress 192.168.1.1 and router B has his static adress as gateway from our network defined with the mask 255.255.255.0 and the range of adresses

Okay... so if router A uses 192.168.1.1 and router B uses (for example) 192.168.1.2, adding a static route on router A for the VPN destination with router B's static address as the next hop should work.

I'm not quite understanding how dynamic addresses are coming into play here.

Shematicly (it's not true adresses for router B et router N)

router A : 192.168.1.1 (for internet and wifi of the shop)

router B : 11.111.12.1 Local Network -> Phone IP : 11.111.12.2 ...

 

router C : 192.168.0.1 (for internet)

router N : 11.111.11.1  Enterprise Network -> PC : 11.111.11.2 ...

 

router B and router N are linked by VPN

From the looks of your configuration, there's no IP connection between router A and router B at all, so that's going to keep your printer from being accessed by both routers no matter what you do.

I think too in a such configuration. Router is behind Router A but Router B has his own local network and his own access to the web by PPoE.  By WAN, I'll hope, it's was possible but I've got dynamic adress.

Can you post a diagram of how all of these routers are physically connected? Also, what models are these?

Maybe I've got a conflict with the different internet router, they have all the original configuration with 192.168.1.1 or 192.168.0.1.

it's not necessary to send you the diagram , you're right : there is no solution in this configuration. But maybe with a second VLAN in router B and connect the printer on this VLAN, that is easier to isolate the printer for having the both access : by a local Wifi of Router B and by the enterprise network via VPN on Router B. The solution is perhaps : On router B, 1 Wifi for the salers, 1 VLAN in static with only the printer, 1 VLAN for the equipement in VPN.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: