OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • [Solved] Alias Group Problem
« previous next »
  • Print
Pages: [1]

Author Topic: [Solved] Alias Group Problem  (Read 7794 times)

advcron

  • Newbie
  • *
  • Posts: 19
  • Karma: 2
    • View Profile
[Solved] Alias Group Problem
« on: April 17, 2019, 02:58:58 pm »
OPNsense ver: 19.1.6

I can't add more then 4 exist alias to new alias (alias group). The file /var/db/aliastables/IP_Serwery_ALL.txt shows only content of first 4 alias ip.

 /var/db/aliastables/IP_Serwery_ALL.txt
192.168.1.10 -> Serwer_IPXE
192.168.0.11 -> Serwer_Nagios
192.168.0.12 -> Serwer_NAS
192.168.0.13 -> Serwer_AV

Should be :

 /var/db/aliastables/IP_Serwery_ALL.txt
192.168.1.10 -> Serwer_IPXE
192.168.0.11 -> Serwer_Nagios
192.168.0.12 -> Serwer_NAS
192.168.0.13 -> Serwer_AV
192.168.0.14 -> Serwer_AD


Also After click Apply button this kind of alias not update.
Update only when I remove  /var/db/aliastables/IP_Serwery_ALL.md5.txt or change md5 sum



« Last Edit: April 21, 2019, 10:54:08 pm by advcron »
Logged

cguilford

  • Full Member
  • ***
  • Posts: 130
  • Karma: 15
    • View Profile
Re: Alias Group Problem
« Reply #1 on: April 17, 2019, 09:29:34 pm »
Try:
opnsense-patch 50c25ea

Per - https://forum.opnsense.org/index.php?topic=12407.15

If that doesn't work try the other patch on the discussion

opnsense-patch ea2f217cf

Logged

advcron

  • Newbie
  • *
  • Posts: 19
  • Karma: 2
    • View Profile
Re: Alias Group Problem
« Reply #2 on: April 17, 2019, 10:04:41 pm »
I have apply those patch:
opnsense-patch 50c25ea
opnsense-patch ea2f217cf

still doesn't work   :-[
Logged

advcron

  • Newbie
  • *
  • Posts: 19
  • Karma: 2
    • View Profile
Re: Alias Group Problem
« Reply #3 on: April 18, 2019, 11:24:03 am »
More detail:
1. Opnense was installed from OPNsense-19.1.4-OpenSSL-dvd-amd64.iso
2. Host Alias with content of ip/net working/update well. Except situation in point 4.
3. Host Alias with content of anather alias (alias group). Not working.
a) Max entries of exist alias in alias group is five.
With max 5 entires files contains correct list of addresses. :
/var/db/aliastables/self.txt
/var/db/aliastables/md5.txt
/var/db/aliastables/*.txt
4. More then 5 entries couse that the anather host aliases (not group alias)  stop working well. Not update.
5. ALL alias group files (even witch three entries) dosen't update when we click Apply. We have to delete or change md5 sum file in /var/db/aliastables.
6. Delete alias not erase files in /var/db/aliastables and still exist in pftable.


Update:
Removing all three "|encode_idna" in file
Code: [Select]
/usr/local/opnsense/service/templates/OPNsense/Filter/filter_tables.conf fix Problem in point 3,4

Error in point 5,6 still exist.
« Last Edit: April 19, 2019, 11:25:29 am by advcron »
Logged

Steven

  • Newbie
  • *
  • Posts: 46
  • Karma: 4
    • View Profile
Re: Alias Group Problem
« Reply #4 on: April 19, 2019, 01:40:05 pm »
Quote
6. Delete alias not erase files in /var/db/aliastables and still exist in pftable.

If you reboot firewall this will clear out deleted alias from pfTable.
Logged

advcron

  • Newbie
  • *
  • Posts: 19
  • Karma: 2
    • View Profile
Re: Alias Group Problem
« Reply #5 on: April 19, 2019, 03:49:11 pm »
Quote from: Steven on April 19, 2019, 01:40:05 pm
Quote
6. Delete alias not erase files in /var/db/aliastables and still exist in pftable.

If you reboot firewall this will clear out deleted alias from pfTable.
But it is not normal. I can not alwayes reboot firewall after delete aliases.

Wysłane z mojego Mi-4c przy użyciu Tapatalka

Logged

advcron

  • Newbie
  • *
  • Posts: 19
  • Karma: 2
    • View Profile
Re: Alias Group Problem
« Reply #6 on: April 21, 2019, 10:53:45 pm »
Problem solved!

1. Empty pftables
Removing all three "|encode_idna" in file
Code: [Select]
/usr/local/opnsense/service/templates/OPNsense/Filter/filter_tables.conf2. After delete alias entry in pftables still exist
Code: [Select]
opnsense-patch e7840273. Alias group not update immediately after click apply
Code: [Select]
opnsense-patch 3dc5f71
https://github.com/opnsense/core/issues/3431
https://github.com/opnsense/core/issues/3432
« Last Edit: April 21, 2019, 10:55:36 pm by advcron »
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • [Solved] Alias Group Problem
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2