Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias group - Strange update #3432

Closed
advcron opened this issue Apr 19, 2019 · 2 comments
Closed

Alias group - Strange update #3432

advcron opened this issue Apr 19, 2019 · 2 comments
Assignees
Labels
bug Production bug

Comments

@advcron
Copy link

advcron commented Apr 19, 2019

Describe the bug
ALL alias group file dosen't update when we click Apply. We have to delete or change md5 sum file in /var/db/aliastables.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Firewall -> Aliases -> Add alias
  • Name: IP_ALIAS1
  • Type: host
    -Content: 192.168.0.10
  1. Go to Firewall -> Aliases -> Add alias
  • Name: IP_ALIAS2
  • Type: host
    -Content: 192.168.0.20
  1. Go to Firewall -> Aliases -> Add alias
  • Name: IP_ALIAS_GOUP
  • Type: host
    -Content: IP_ALIAS1,IP_ALIAS2
    Click Apply
    1

File /var/db/aliastables/IP_ALIAS_GOUP.txt should contain two entries:
192.168.0.10
192.168.0.20

Now (remve IP_ALIAS2 from alias group):
Go to Firewall -> Aliases -> IP_ALIAS_GOUP -> Change alias

  • Content: IP_ALIAS1
  • Click save and Apply
    2

a) Go to Firewall -> Diagnostic -> pftable -> show -> IP_ALIAS_GOUP (should contain one entry)
b) File /var/db/aliastables/IP_ALIAS_GOUP.txt should contain one entry:
192.168.0.10
But still contains two (192.168.0.10,192.168.0.20)
To update IP_ALIAS_GOUP pftable we have to remove IP_ALIAS_GOUP.md5.txt or change md5 entries in this file (and then click aply) or after change IP_ALIAS_GOUP and clicking apply wait about 2-4 minutes.
The same happens when you add aliases to a exist group.

Expected behavior
Correct update of the aliases group and pftables

Environment
OPNsense Version:
OPNsense 19.1.6-amd64
Clean install from OPNsense-19.1.4-OpenSSL-dvd-amd64.iso

@advcron advcron changed the title Alias group - No update Alias group - Strange update Apr 19, 2019
@AdSchellevis AdSchellevis self-assigned this Apr 20, 2019
@AdSchellevis AdSchellevis added the bug Production bug label Apr 20, 2019
@AdSchellevis
Copy link
Member

@advcron thanks for the report, I've prepared a patch on master 3dc5f71. Since there are more changes stashed for the python 2->3 conversion, it probably won't fit the current stable version.

@advcron
Copy link
Author

advcron commented Apr 21, 2019

@AdSchellevis I run OPNsense 19.1.6-amd64 and this patch works.
After click Aplay alias gorup update immediately.

Thank you very much for the patch

EugenMayer pushed a commit to KontextWork/opnsense_core that referenced this issue Jul 22, 2019
…cleanup (this alias is always in _known_aliases). closes opnsense#3432
EugenMayer pushed a commit to KontextWork/opnsense_core that referenced this issue Jul 22, 2019
…cleanup (this alias is always in _known_aliases). closes opnsense#3432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Production bug
Development

No branches or pull requests

2 participants