Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Upnp + firewall security

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 3 Posters 1.2k 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.
    • W Offline
      wra1th3
      last edited by

      I have a IP camera system segregated onto its own VLAN and would like to allow it access to the internet via UPNP and prevent it from accessing any other LAN subnets.  I have locked down the device's available port range w/ UPNP options, and when it comes to firewall the only way UPNP seems to work is if I have a default "allow any" rule in place.

      1. what would the correct protocol be for allowing UPNP function? it is opening UDP ports, but does the UPNP service require something else allowed?

      2. what is the correct destination to allow ONLY UPNP functionality outbound and no LAN access? "Lan Address" on the VLAN?

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        If you want security, UPnP is not an option. It isn't designed for that. It's designed to allow a local system to request inbound traffic from any source to a target device on a specified port.

        If it's an IP camera, you shouldn't expose that to the Internet anyhow. Setup a VPN as the only way into that network segment and access it that way.

        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
        • johnpozJ Offline
          johnpoz LAYER 8 Global Moderator
          last edited by

          UPnP doesn't do outbound, its used for allowing inbound, ie a port forward.

          As Jimp mentions - IP cameras should not be available from the internet.  Unless your wanting to be part of a botnet? ;)

          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 26.03.1 | Lab VMs 2.8.1, 26.03.1

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