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?
sudo iptables-save | grep -i -e input -e skip.*policy.*input
– EchoMike444 Jun 15 '20 at 04:46iptables-save
command can be found at https://femto.pw/e8zd.txt – Alexander Craggs Jun 17 '20 at 18:15sudo iptables-save -c |
.... – EchoMike444 Jun 18 '20 at 02:48-c
argument provided: https://femto.pw/rtc9.txt – Alexander Craggs Jun 18 '20 at 21:10