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

    Routing to internal gateway

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 2 Posters 2.3k 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
      sadoki
      last edited by

      Hi to all,

      I have problem configuring pfsense : I have installed pfsense and configured users to use it to access Internet.
      For a specific destination (a specific host : X.X.X.X),  user must pass through a vpn device which is in the same local network as users and pfsense
      I have tried to make a static route in order to tell to pfsense to route all trafic in destination to HOST X.X.X.X to the vpn device, but when I make traceroute all trafic passes through pfsense to internet.
      The only solution is to add manual route in all users PCs in order to send directly trafic to vpn and do not user pfsense.

      Can pfsense do it?

      Thank you

      1 Reply Last reply Reply Quote 0
      • G
        Gob
        last edited by

        does the vpn route work if you do add a static route to a PC?
        what ports are you trying to use on this specific host? are you using Squid?

        If I fix one more thing than I break in a day, it's a good day!

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

          Thank you for your reply
          Yes, if I add static route on each PC, the vpn route work correctly
          I'm not using squid, I have a basic installation
          This is what I'm trying to do :
          Internet –------- PfSense --------- LAN (PC + VPN gateway)
          I'm trying to tell PfSense to re-route every request from LAN in destination to a specific IP to the VPN Gateway (to use a VPN tunnel)
          Is it possible with pfsense without making static route on each host?

          1 Reply Last reply Reply Quote 0
          • G
            Gob
            last edited by

            Certainly that should work.
            On your static route, ensure you have the LAN interface selected and are using a /32 if your destination network is just a single host.

            Are there any restrictions on your VPN Gateway for which internal hosts it will accept connections from? Is the pfSense blocked?

            If I fix one more thing than I break in a day, it's a good day!

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

              It works!
              I have to check 'Bypass firewall rules for traffic on the same interface' on System->Advanced
              That means that some rules are missing in the firewall. Using this option they're not needed.

              Thank you!

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