Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Alias "port group"
« previous
next »
Print
Pages: [
1
]
Author
Topic: Alias "port group" (Read 4175 times)
atom
Full Member
Posts: 207
Karma: 4
Alias "port group"
«
on:
May 04, 2022, 05:21:22 pm »
Hello,
Would it be possible to get an alias "port group" analogous to "network group" ?
It would make creating firewall rules easier because you could combine "network group" with "port group".
Thanks a lot,
atom
Logged
zerwes
Full Member
Posts: 125
Karma: 8
Re: Alias "port group"
«
Reply #1 on:
May 04, 2022, 09:02:54 pm »
you can use lists or ranges in ports aliasesranges use the
Code:
[Select]
start:end
syntaxor do I understand your request wrong?
Logged
zerwes
Full Member
Posts: 125
Karma: 8
Re: Alias "port group"
«
Reply #2 on:
May 04, 2022, 09:05:24 pm »
and you can use already defined port aliases in another alias as member too
Code:
[Select]
80,443,SERVICES_SMB,...
Logged
atom
Full Member
Posts: 207
Karma: 4
Re: Alias "port group"
«
Reply #3 on:
May 05, 2022, 08:56:58 am »
Hello zerwes,
I am not able to build new port aliases from existing port aliases, because in the drop down box I am only offered a few hosts instead of ports.
It doesn't matter if I select hosts, ports or mac addresses, the drop down box always shows only ( a few) hosts.
Regards,
atom
Logged
zerwes
Full Member
Posts: 125
Karma: 8
Re: Alias "port group"
«
Reply #4 on:
May 05, 2022, 09:14:35 am »
... can not reproduce this.I can add aliases as expected via the GUI (and
ansibel
too ...)
can you give some hints about the version etc ... some hints in the log?
Logged
atom
Full Member
Posts: 207
Karma: 4
Re: Alias "port group"
«
Reply #5 on:
May 05, 2022, 09:40:08 am »
I'm using the latest version 22.1.6.
I can create new aliases without any problems, but I cannot create aliases with the content of existing aliases, because the drop down box always shows the same entries.
Alias type hosts -> content of drop down box with 11 entries
Alias type networks -> ontent of drop down box with 11 entries
alias type ports -> ontent of drop down box with 11 entries
alias type URL -> ontent of drop down box with 11 entries
alias type URL Table -> ontent of drop down box with 10 entries
alias type MAC adresss -> ontent of drop down box with 11 entries
alias type Dynamic IPv6 Hosts -> ontent of drop down box with 11 entries
only for GeoIP and Network group is the content of the drop down box correct.
The content of the drop down box always contains the following entries:
1 x GeoIP
8 x Network
2 x Host
At the moment 161 aliases are defined.
Logged
zerwes
Full Member
Posts: 125
Karma: 8
Re: Alias "port group"
«
Reply #6 on:
May 05, 2022, 09:52:48 am »
the count should not matter, on some boxes I have ~ 400 aliases...
Are you aware of the fact that the Content field is not really a select box? The entries shown will be filtered while you type ... ?
Logged
atom
Full Member
Posts: 207
Karma: 4
Re: Alias "port group"
«
Reply #7 on:
May 05, 2022, 10:03:40 am »
No, I did not notice, but now ...
Logged
zerwes
Full Member
Posts: 125
Karma: 8
Re: Alias "port group"
«
Reply #8 on:
May 05, 2022, 10:27:21 am »
... it's never to late to ... sometimes solutions are as simple ...
Logged
atom
Full Member
Posts: 207
Karma: 4
Re: Alias "port group"
«
Reply #9 on:
May 05, 2022, 01:32:32 pm »
Yes, quite obviously.
Thanks
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Alias "port group"