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

NGINX Available from OpenVPN remote server

Scheduled Pinned Locked Moved OpenVPN
6 Posts 2 Posters 606 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.
  • 4
    4o4rh
    last edited by Jan 23, 2020, 8:42 AM

    I have a 2nd instance of NGINX running to serve wpad.
    I am also running OpenVPN as a client to ExpressVPN.

    It seems the NGINX instance is available from the ExpressVPN remote address and returns a 403 on attempts to connect i have limited the IP address ranges. But i don't even want NGINX available to the WAN or VPN interfaces at all.

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jan 23, 2020, 7:06 PM

      If you can access it remotely, your rules on the VPN and/or WAN are far too permissive.

      But really, you should not be using the firewall as a web server anyhow. Find something else on the local network to serve content like that (such as a Pi) where it can be properly isolated.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      4 1 Reply Last reply Jan 23, 2020, 7:16 PM Reply Quote 0
      • 4
        4o4rh @jimp
        last edited by Jan 23, 2020, 7:16 PM

        @jimp far to permissive? i have block all ip4/6 on all interfaces and only allow out / in for what i need.
        i disabled the 2nd instance, so only the webconfigurator is running and i am still getting a 403 forbidden on port 80 (have not enabled port 80 redirector). it is not available via the wan interface, only the openvpn ones.
        (I have two up in fall back mode, but can get the 403 forbidden from both)

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Jan 23, 2020, 7:17 PM

          Either your rules are wrong or your test methodology is wrong.

          If you are connecting to your interface IP address on the VPN from the LAN, then that's the LAN rules passing you through, and you have nothing to worry about.

          If you can actually connect from the Internet/remote side of the VPN, then your rules are wrong.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          4 1 Reply Last reply Jan 23, 2020, 7:32 PM Reply Quote 0
          • 4
            4o4rh @jimp
            last edited by 4o4rh Jan 23, 2020, 7:33 PM Jan 23, 2020, 7:32 PM

            @jimp

            • i set the webconfig redirector back on
            • the only rule on the WAN, VPN1 and VPN2 interfaces is Block All Ipv4/6
            • OpenVPN remote host address is 37.48.x.x:1195 and 94.242.x.x:1195
            • i use my mobile phone browser from vodafone network and go http://37.48.x.x or http://94.242.x.x and get
              NGINX 403 Forbidden

            i should not be getting any NGINX response i would have thought let alone a response on port 80

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Jan 23, 2020, 7:40 PM

              Check your floating rules, and check Status > Filter Reload to make sure your ruleset is loading properly.

              And are you certain you are hitting your own nginx? Is the logged by nginx on the firewall? Does it show in a packet capture?

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              1 out of 6
              • First post
                1/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received