Enable uPNP on the Unifi USG PRO

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
Hello, meh I thought this option would be in the GUI, but I cannot seem to find it.

Does anyone here use the Unify Security Gateway PRO?

I need to enable uPNP, I need some guidance please.
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
It's an enterprise product.

uPNP is for Home use.

So it's not something that really needs to be there in the first place.

Until you need remote desktop abilities into office machines.
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
I guess I can setup the firewall rules manually, but uPNP is nice for quick testing. (Note this is not deployed in production yet)
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,847
Until you need remote desktop abilities into office machines.

Erm, no.

Never ever do you want to use uPNP for that.

It’s designed to dynamically punch holes in the firewall from the inside for people who have no idea how firewalls work.
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,847
I guess I can setup the firewall rules manually, but uPNP is nice for quick testing. (Note this is not deployed in production yet)

And that’s how horribly insecure situations come about... because of “quick testing”.

It should have taken you less time to setup a manual firewall rule than typing the first post in this thread.

So there’s nothing “quick” about it. And a whole lot of potential pain down the road If you operate like this regularly.
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
Erm, no.

Never ever do you want to use uPNP for that.

It’s designed to dynamically punch holes in the firewall from the inside for people who have no idea how firewalls work.
Correct, see post above.
This won't be for production I can reassure you.
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,847
Correct, see post above.
This won't be for production I can reassure you.

Doesn’t matter if it’s for testing.

Do it properly from the start.

How do you limit it to a particular test case if you are making global changes on your edge router?

Ever single device behind it can open ports on the firewall now.
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
Doesn’t matter if it’s for testing.

Do it properly from the start.

How do you limit it to a particular test case if you are making global changes on your edge router?

Ever single device behind it can open ports on the firewall now.

Test lap is literally my Telkom LTE modem for WAN -> USG Pro -> Ubiquiti 48 Port Gigabit 2 SFP 2SFP+ 750W PoE -> Dummy PC (blank windows testing various remote desktop apps)

Then I have my main workstation on VDSL on a completely separate network. I use the work station to connect into the "test lab" and test it out.

So far I could not manage to let this particular remote desktop app connect in tweaking the firewall on the controller/USG so I wanted to make sure this shiat actually works thus override the USG by enabling uPNP and see if it works. I then monitored the traffic and know what to open now on the firewall.

It worked perfectly for me.
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,847
Test lap is literally my Telkom LTE modem for WAN -> USG Pro -> Ubiquiti 48 Port Gigabit 2 SFP 2SFP+ 750W PoE -> Dummy PC (blank windows testing various remote desktop apps)

Then I have my main workstation on VDSL on a completely separate network. I use the work station to connect into the "test lab" and test it out.

So far I could not manage to let this particular remote desktop app connect in tweaking the firewall on the controller/USG so I wanted to make sure this shiat actually works thus override the USG by enabling uPNP and see if it works. I then monitored the traffic and know what to open now on the firewall.

It worked perfectly for me.

Surely it has logging capability where you could have just viewed the denied ports?
 

Genisys

Honorary Master
Joined
Jan 12, 2016
Messages
11,217
uPNP? May I offer you a normal ADSL modem with all traffic going to your PC?

What is the point of a Firewall if you are anyway just opening all the ports? Why not just put your Modem into DMZ in this instance? Will probably offer similar levels of security.
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,847
uPNP? May I offer you a normal ADSL modem with all traffic going to your PC?

What is the point of a Firewall if you are anyway just opening all the ports? Why not just put your Modem into DMZ in this instance? Will probably offer similar levels of security.

It doesn't work like that.

Incoming connections are only opened from Outgoing uPNP-enabled devices/applications that request it.

A hell of a lot better than turning your firewall off or allowing all traffic in.

It's not as secure as manually configuring the firewall, but it's nothing like leaving it wide open either.
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
Surely it has logging capability where you could have just viewed the denied ports?
In hindsight I could have done that. Either way this worked fine for me, guess I also subconsciously wanted to mess with the thing's configuration files to see what happens in the background so just needed an excuse
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,847
In hindsight I could have done that. Either way this worked fine for me, guess I also subconsciously wanted to mess with the thing's configuration files to see what happens in the background so just needed an excuse

This post says otherwise...

"They should really add it to the GUI ffs."

But yes in future monitoring the logs for Block/Deny and change accordingly.
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
This post says otherwise...

"They should really add it to the GUI ffs."

But yes in future monitoring the logs for Block/Deny and change accordingly.

I still feel it should be in the GUI, I want more control whether that is good or bad should not be their choice, but my own.

----
I must say this Ubiquity ecosystem is life! Imagine how long it would take if you had to setup a separate server to manage all this, Vlans, subnets etc.

----------
With that said, I am still very new to all this, one question I have is what does Unify (with the USG) offer and what does it not offer.

In otherwords with this setup, is there still a need for something like PFsense?
 

Sinbad

Honorary Master
Joined
Jun 5, 2006
Messages
81,151
I still feel it should be in the GUI, I want more control whether that is good or bad should not be their choice, but my own.

----
I must say this Ubiquity ecosystem is life! Imagine how long it would take if you had to setup a separate server to manage all this, Vlans, subnets etc.

----------
With that said, I am still very new to all this, one question I have is what does Unify (with the USG) offer and what does it not offer.

In otherwords with this setup, is there still a need for something like PFsense?

No.

the USG and pFsense are not all that different, actually. Just a linux (or bsd) based minimalist OS, with some IP firewalling and routing modules enabled, plus some management stuff.
 
Top