Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenVpn client printer

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 2 Posters 3.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      spillek
      last edited by

      Hi, I have a very small remote office with 2-3 client pc connect with OpenVpn to heartquarter via pfsense server, and it work fine;
      in the small office I want to place also a network printer, with local IP (Es. 192.168.1.10)
      Can my client print on the local ip printer when it's connect to hearthquarter with openvpn ?

      Thanks in advance,
      best regards

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        From your post, I guess that each client PC starts an OpenVPN client individually that makes the connection to headquarters (I like your typo also "heartquarter" - I guess you have a very loving management style in your company :) That should still be OK, even though each client is actually coming from the same remote office subnet.
        As long as the private IP subnets at HQ, remote office and the OpenVPN tunnel are all different there should not be a problem. I usually keep away from 192.168.0.0/24, 192.168.1.0/24 and similar, since one of your users might go home (home often has 192.168.[0|1].0/24) and VPN from there.
        10.n.n.0/24 are good.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • S
          spillek
          last edited by

          thanks phil,
          in HQ lan the subnet is 192.168.1.x
          each client PC starts an OpenVPN client individually..
          before start vpn, each pc client have IP with subnet similar at HQ  (192.168.1.x)
          when start vpn, client keep IP as 192.168.200.x
          it's wrong?

          vpn.jpg
          vpn.jpg_thumb

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            What is the remote office subnet?
            (It must be different from 192.168.1.x and 192.168.200.x)

            If it is possible to change HQ (I don't know how big it is), then make the HQ LAN some other subnet - 192.168.42.0/24 or 10.42.42.0/24 or whatever "random" private IP block you like. In future, when your remote users start to wander and come from other locations (their homes…), they will likely OpenVPN in from a home network that is already 192.168.1.0/24 - so if possible, I would renumber HQ now and get the pain over with. If most of your HQ devices get DHCP from pfSense, then not much problem changing - you might only have to manually change static IPs in a few file servers, print servers, APs...

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • S
              spillek
              last edited by

              remote are incorrectly set to the same HQ subnet (192.168.1.x)
              I would be more convenient to change the remote,
              I try,.. thanks!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.