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

    Accessing electronic resources from outside the corporate network using pfSense VPN

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 460 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.
    • M
      mauro.tridici
      last edited by

      Dear Users,

      my boss asked me to implemented a proxy service in order to allow corporate users to access electronic resources, subscribed by our company, also from outside the corporate network (you know, users can work both from office and from home).
      At this moment, only users from office can reach the electronic resources since the corporate public IP has been authorised by the provider.

      Since I read that proxy server (EZproxy in my case) is not so secure, I would like to follow NetGate users suggestion: "use the VPN".

      So, in order to test this solution, I would like to use an existing VPN that we daily use to connect to some specific corporate servers from home.
      Currently, the VPN client installed on my PC is routing only traffic to a specific corporate LAN (let's say 192.168.10.0/24). All other traffic is not router through the VPN tunnel.

      Now, for testing purpose, I would like to reach the electronic resources provider site using the same VPN.
      In other words, I would like to route through the VPN tunnel the following traffic:

      • all the traffic from my PC to 192.168.10.0/24 network (current working settings);
      • all the traffic from my PC to a.example.com;
      • all the traffic from my PC to b.example.com;
      • all the traffic from my PC to link.example.com;

      where a.example.com, b.example.com and link.example.com are the electronic resources sites.

      All the other traffic should be routed through my WiFi router without impacting the VPN tunnel/server.

      Could you please help me to understand if I'm on the right way and if I can accomplish this task using pfSense v.2.6

      Thank you in advance,
      Mauro

      johnpozJ NollipfSenseN 2 Replies Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @mauro.tridici
        last edited by

        @mauro-tridici What is the vpn you use in corp? That is where you really need to make adjustments on what comes down the vpn from a client and if they are allowed to go there.

        Lets say you routed that stuff down the corp vpn connection you have - doesn't mean the vpn server your connecting to is going to allow it, or even if knows how to route to where you want to go, etc.

        But yes pfsense could be setup to provide vpn into a corp network - and allow clients to go anywhere in the corp network that the pfsense is able to get to.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 1
        • NollipfSenseN
          NollipfSense @mauro.tridici
          last edited by

          @mauro-tridici said in Accessing electronic resources from outside the corporate network using pfSense VPN:

          also from outside the corporate network (you know, users can work both from office and from home).

          Your corporate office must approve as well as configured that for you...however, as John said, it's possible.

          pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
          pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

          M 1 Reply Last reply Reply Quote 1
          • M
            mauro.tridici @NollipfSense
            last edited by

            Thank you for your reply, guys.

            Just a question about this step:

            *"I would like to route through the VPN tunnel the following traffic:

            all the traffic from my PC to 192.168.10.0/24 network (current working settings);
            all the traffic from my PC to a.example.com;"*

            How can I route specific HTTP/S URL through the VPN tunnel?
            I know that I can translate the DNS name in a IP address, but I would like to know if there is an alternative way to do it.

            Many thanks again,
            Mauro

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @mauro.tridici
              last edited by

              @mauro-tridici you can not route a fqdn, you would route the IP or network that IP resides on.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

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