Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
How to create pf Tables?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to create pf Tables? (Read 3663 times)
guest15512
Guest
How to create pf Tables?
«
on:
March 22, 2017, 08:58:38 am »
Sorry for the stupid question, but how can I create a pf table in the web front-end using several aliases?
Logged
guest15512
Guest
Re: How to create pf Tables?
«
Reply #1 on:
March 23, 2017, 08:29:22 am »
Nothing? Is not possible to define pf tables?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to create pf Tables?
«
Reply #2 on:
March 24, 2017, 08:11:56 am »
What do you want to do exactly? You did not describe your high level requirement. We do not provide direct access to pf tables, but the aliases may be able to do what you intended to do.
Thanks,
Franco
Logged
guest15512
Guest
Re: How to create pf Tables?
«
Reply #3 on:
March 24, 2017, 03:09:50 pm »
Ok, I will try to explain. What I want to do is this:
table <internal_networks> const { $dmzpri_network $enc_network $mgmt_network $prod_network $vpn_network }
like you do in pf.conf on OpenBSD and FreeBSD/HardenedBSD.
In theory, with aliases options it could be do. But my surprise (doing a pfctl -sa in opensese's shell):
TABLES:
__automatic_917c11cf_0
bogons
inverness
mgmt_network
perth
scotland
sshlockout
tonatsubnets
virusprot
webConfiguratorlockout
inverness is defined as a single host and mgmt_network is defined as a single network. Why are treated as a tables? And why can't I define a real table that contains another aliases?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to create pf Tables?
«
Reply #4 on:
March 24, 2017, 03:31:12 pm »
I don't know your config.xml so I don't know why they are tables.
But for aliases you can nest them with no problem. Just use alias name when adding an entry to another alias (of the same type).
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
How to create pf Tables?