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

    UPnP behind private IP- working with a "hack"

    Scheduled Pinned Locked Moved NAT
    4 Posts 2 Posters 608 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.
    • Bob.DigB
      Bob.Dig LAYER 8
      last edited by Bob.Dig

      ...or trick. But what are the consequences?

      For a long time, UPnP is not working behind a private IP, like if pfSense is (the exposed host) behind another router. And while other projects fixed it, here it is not.

      But you can define an alternate WAN-address and I did this with a virtual IP...


      2.PNG
      Capture33.PNG

      And it looks like it is working! 😄


      Capture.PNG
      Capturexy.PNG

      But what is the consequence of this? Is this more dangerous or problematic then UPnP in general?

      Bob.DigB 1 Reply Last reply Reply Quote 1
      • Bob.DigB
        Bob.Dig LAYER 8 @Bob.Dig
        last edited by Bob.Dig

        Maybe @JeGr has some thoughts? ☺

        1 Reply Last reply Reply Quote 0
        • viktor_gV
          viktor_g Netgate
          last edited by

          @bob-dig said in UPnP behind private IP- working with a "hack":

          For a long time, UPnP is not working behind a private IP, like if pfSense is (the exposed host) behind another router. And while other projects fixed it, here it is not.

          In progress: https://redmine.pfsense.org/issues/10587

          Bob.DigB 1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8 @viktor_g
            last edited by Bob.Dig

            @viktor_g Thank you for letting me know.

            Regarding my "hack", today I noticed that the dyndns.update cron-job failed for IPv4 with my cloudflare "clients", the RFC 2136 "client" had no problem with IPv4.
            I then removed the virtual-IP, only had 6.6.6.6 in the UPnP & NAT-PMP Settings and dyndns.update is working again and UPnP is still working!

            So the only thing someone has to do is to put in some random public IP in Override WAN address in the UPnP & NAT-PMP Settings, to get it working behind a private IP?!
            Is it so easy?
            No need for a STUN Server and all this nonsense??
            I really don't know, why (mini-)UPnP needs to know the public IP in the first place.

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