#StackBounty: #ufw UFW not denying traffic on specific ports

Bounty: 100

I have setup a UFW to allow all incoming and outgoing traffic by default. I wish to limit a few ports (in this case, 9200 and 5601). When I have the following configuration:

> sudo ufw status verbose
Status: active
Logging: on (low)
Default: allow (incoming), allow (outgoing), deny (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW IN    Anywhere
9200                       DENY IN     Anywhere
5601                       DENY IN     Anywhere
22/tcp (v6)                ALLOW IN    Anywhere (v6)
9200 (v6)                  DENY IN     Anywhere (v6)
5601 (v6)                  DENY IN     Anywhere (v6)

I still seem to be able to access ports 9200 and 5601 from the outside world. What’s going on?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.