problem with table directive in pf.conf

2005-08-30 Thread vladone
Hi!
I want to use table directive in pf.conf, but not work
My pf.conf is:

My pf.conf is: (and with attachament)
ext_if=rl0# replace with actual external interface name i.e., dc0
int_if=fxp0   # replace with actual internal interface name i.e., dc1

table list1 { 192.0.2.0/24 }

I try to load pf.conf:
#pfctl -e -f /etc/pf.conf
pf enabled
#pfctl -T show -t list1
pfctl: Table does not exist.

If i use pfctl to add entry in table, work.
#pfctl -t list1 -T add 192.168.2.0/24
1 table created.
1/1 addresses added.
#pfctl -T show -t list1
192.168.2.0/24

Another observation:
If i make an intentional mistake in pf.conf and then try to load file,
i receive an error. So file is loaded.

Where is the problem?



Re: problem with table directive in pf.conf

2005-08-30 Thread vladone
I use FreeBSD 5.4, not OpenBSD. But i dont think that this is the
problem!
pf.conf have same format.



Re: problem with table directive in pf.conf

2005-08-30 Thread vladone
I resolv this.
To view tables if no traffic, need to put option persist:
tables list1 persist file /etc/list_addresses