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

    Access to Webpages while on VPN

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 328 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.
    • O
      Overcon
      last edited by Overcon

      Hi All,

      I have a NAT rule that allows traffic from anywhere that comes in on port TCP 8080 and forwards that traffic to a server on my local network.

      alt text

      I just added OpenVPN to the pFsense, but I don't know how to create a rule (or NAT) to make it so that rule above can only be accessed if you are connected to the VPN. Could someone tell me how to set up a rule or NAT statement to get it so that when a USER is connected to the VPN, then they can access the server/port.

      Thanks!

      R 1 Reply Last reply Reply Quote 0
      • R
        rcoleman-netgate Netgate @Overcon
        last edited by

        @overcon The outside NAT rule will not apply to the inside OVPN connection.
        Just load :8080 while on the VPN

        Ryan
        Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
        Requesting firmware for your Netgate device? https://go.netgate.com
        Switching: Mikrotik, Netgear, Extreme
        Wireless: Aruba, Ubiquiti

        O 1 Reply Last reply Reply Quote 0
        • O
          Overcon @rcoleman-netgate
          last edited by

          @rcoleman-netgate said in Access to Webpages while on VPN:

          @overcon The outside NAT rule will not apply to the inside OVPN connection.
          Just load :8080 while on the VPN

          Ah, ok. I didn't even think of that. I was thinking that with the VPN connection, I still wanted to go out and back in instead of just going directly to the resource.

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