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

    Block all external traffic except for LAN and Wireguard VPN?

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 442 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.
    • D
      dkshaw
      last edited by

      I'm working to set up a situation in pfsense and HAProxy where I can access internal services with a FQDN ONLY when on my network. I have everything set up thus far and working well, but now I want to see if I can also view those internal services when I am on VPN (Wireguard) outside of my network.

      For my shared front end my ACL is looking for source IP's that are an alias of my internal network IP's (192.168.1.x). For Wireguard I have a different subnet (10.10.10.x). I thought that if I were to add the Wireguard IP's to the alias that it would work, but it doesn't. I'm guessing that HAProxy doesn't see a Wireguard peer (my phone) source IP as being the 10.10.10.x, but instead it is my Verizon public IP?

      Is there a way that I can identify Wireguard peers connected to the network somehow and allow that traffic to access the backends that I have? Interface assignment? MAC address?

      alt text

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