| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Most pfctl table commands (excluding 'show' and 'flush') support the "-a"
modifier.
ok dhartmei@
|
|
|
|
|
|
| |
Prepare for anchors, improve robustness.
WARNING: need to sync kernel/userland.
ok dhartmei@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix two problems with pfr_update_stats().
Filtering was done properly, only stats were wrong.
People should upgrade their kernel if:
- They use bidirectional rules (without "in" or "out") with tables.
- They use tables in negated statements, like "block from !<foo>"
Thanks to David Krause for discovering the problem.
Ok dhartmei@ henning@
|
|
|
|
|
|
|
|
| |
a match. Before that patch, an IP packet with source or dest address of
0.0.0.0 could corrupt the kernel. People filtering DHCP packets on their
firewall using tables should upgrade their kernel now.
Thanks to Chris Cappuccio for the good bug report.
Ok dhartmei@ henning@
|
|
|
|
|
| |
tested on i386 by me and Daniel on macppc.
ok dhartmei@ henning@
|
|
|
|
| |
ok dhartmei@ henning@ pb@
|
|
|
|
| |
ok dhartmei@ henning@
|
|
|
|
| |
ok dhartmei@ henning@
|
|
|
|
| |
ok cedric, jason, theo
|
|
|
|
|
|
| |
table <foo> { 1.2.3.4 1.2.3.4 1.2.3.4 }
Was causing the kernel to become noisy.
Now duplicates are silently rejected.
|
|
|
|
|
| |
referenced or inactive set. Flags were not updated correctly.
Tested on i386, sparc64. More regression tests coming.
|
|
|
|
| |
Makes code more readable.
|
|
|
|
|
| |
Removes "_" from pool names.
Regression tests for memory allocation coming soon....
|
|
|
|
|
|
|
|
|
| |
- Reject invalid CIDR networks (1.2.3.4/16 & friends).
- Only allow values 0 or 1 for the "neg" flag.
- Require all unused data to be set to 0 in pfr_addr and pfr_table.
- Always check the return value of pfr_route_entry().
- Remove redundant kernel messages.
Tested on i386, sparc64. Pass my (uncommited) regression tests.
|
|
|
|
|
|
|
| |
the "negated" attribute of an address. The previous behaviour was incorrect
in both cases (too strict for the add command and too permissive for the
delete command).
ok dhartmei@
|
| |
|
| |
|
|
|
|
|
|
|
| |
Add table definition/initialisation construct in pfctl parser.
Add and fix documentation for pf.4 and pf.conf.5.
Tested on i386 and sparc64 by myself, macppc by Daniel.
ok dhartmei@
|
|
|
|
|
|
| |
introduce reference counting for tables, they are now automatically
created and deleted through referencing rules. Diff partly from cedric@.
ok mcbride@, henning@, cedric@
|
|
|
|
| |
ok dhartmei@
|
| |
|
|
|
|
| |
name. ok henning@, mcbride@, cedric@
|
| |
|
|
|
|
|
|
| |
2) add new PFR_FLAG_REPLACE for use by pfr_tst_addrs().
3) add new pfrio_nmatch alias to pfioc_table, set by pfr_tst_addrs().
Tested on i386, sparc64
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(i.e: pfradix -a test 1.2.3.4 1.2.3.4). The ioctl can also report theses
duplicate to the caller using the new PFR_FB_DUPLICATE feedback tag.
|
|
|
|
|
|
| |
multiple time in the same ioctl (i.e. pfradix -A/D test test test).
This is not a very efficient implementation, and I'll change it if someone
really add/delete more than hundred of tables in the same ioctl.
|
| |
|
| |
|
| |
|
|
ok dhartmei@, mcbride@, henning@
|