Upcoming Maintenance Alert:

The UBNT Community will be upgraded at 5pm MDT on April 25th. During this time the community forums will be set to read-only status.

Learn more

×
Reply
New Member
Posts: 13
Registered: ‎02-16-2016
Kudos: 11
Solutions: 2

Block ports to docker container?

Hi folks,

I'm having difficulty trying to block ports from the outside world to the container for UNMS, using nginx as a proxy (that part works).  I've followed the instructions here to no avail.  Any recommendations?

New Member
Posts: 6
Registered: ‎06-12-2016
Kudos: 1
Solutions: 1

Re: Block ports to docker container?

I had the same question but now it is resolved.

 

https://community.ubnt.com/t5/UNMS-Ubiquiti-Network-Management/limit-external-access-to-docker/m-p/2...

 

just need to add the iptable rules to suit, and then use reverse proxy to control external IP access for your docker(s)

New Member
Posts: 13
Registered: ‎02-16-2016
Kudos: 11
Solutions: 2

Re: Block ports to docker container?

Yeah I see what you're saying.  More specifically though, is there a way to make this work with UFW?

Member
Posts: 141
Registered: ‎10-26-2015
Kudos: 39
Solutions: 5

Re: Block ports to docker container?

It works with any firewall.

New Member
Posts: 6
Registered: ‎06-12-2016
Kudos: 1
Solutions: 1

Re: Block ports to docker container?

i dont use ufw also i got a feeling that docker already setup rules with iptables

to list rules please do :-

iptabels -nL

the idea is to create a rule for dockers internal ips . so might be easier just to follow the rules

Reply