Project

General

Profile

Actions

Bug #7209

closed

Something is seriously wrong with firewall aliases

Added by Dmitry Kernel about 7 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Start date:
02/04/2017
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3.2
Affected Architecture:
amd64

Description

pfS version is 2.3.2-p1.

Unbound host overrides used in FW aliases:
- server.home 192.168.201.1
-- nas.home alias
-- cloud.home alias
-- code.dev.home alias
irrelevant aliases omitted

Relevant firewall aliases
- NAS Host nas.home
- cloud Host cloud.home

1. Edited [cloud] alias previously pointed to "cloud.server.home" which not exists anymore, changed to cloud.home, applied. Later get denied access to cloud, checked my rules - correct, hovewer

pfctl -t cloud -T show
EMPTY

[NAS] alias was recently edited prior to this for the same reason with no issues.

2. Edited [cloud], changed to "nas.home"

pfctl -t cloud -T show
192.168.201.1

As expected

3. Changed back to "cloud.home", applied

No visible change in pfctl output, IP correct

4. Changed to 192.168.201.2 IP, applied

pfctl -t cloud -T show
192.168.201.1
192.168.201.2

Old IP still there? WTF?! Potential hole which could stay long-unnoticed
Ofc, alias still meant to be single-host, and in UI only 192.168.201.2 is listed

5. Changed to "code.dev.home"

pfctl -t cloud -T show
192.168.201.2

Should be 192.168.201.1

6. Changed to "server.home"

pfctl -t cloud -T show
192.168.201.1
192.168.201.2

Same crap as in 4

7. Changed to 192.168.201.1

pfctl -t cloud -T show
EMPTY

8. Added alias description

pfctl -t cloud -T show
192.168.201.1

Finally correct

9. Created [test] alias, set it to "cloud.home"

pfctl -t test -T show
192.168.201.1

As expected

10. Edited [test], changed to IP 192.168.201.3, applied

pfctl -t test -T show
pfctl: Table does not exist.

However in UI it does exist

11. Changed to "code.dev.home"

pfctl -t test -T show
192.168.201.1

As expected

12. Changed to IP (tried different addresses in the same subnet)

pfctl -t test -T show
pfctl: Table does not exist.

Something is definitely broken here

Additional info
I have in total 5 FW aliases (6 counting [test]) defined in UI, 2 of them are Networks, 1 multi-host, and 2 mentioned here are single-host.
Of course, every change I made was applied before checking results.

Please check and fix this ASAP as this is potential security hole


Related issues

Related to Bug #12708: Alias with non-resolving FQDN entry breaks underlying PF tableResolvedReid Linnemann

Actions
Actions

Also available in: Atom PDF