| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Remove the remaining unused source files. These were never used.
This is the last of a three commit series to move ipfilter.
Discussed with: glebius
Reviewed by: glebius, kp (for #network)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D33510
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Through fixes and improvements our ipfilter sources have diverged
enough to warrant move from contrib into sbin/ipf. Now that I'm
planning on implementing MSS clamping as in iptables it makes more
sense to move ipfilter to sbin.
This is the second of three commits of the ipfilter move.
Suggested by glebius on two occaions.
Suggested by and discussed with: glebius
Reviewed by: glebius, kp (for #network)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D33510
|
| |
|
|
| |
MFC after: 1 week
|
| |
|
|
|
|
|
| |
Display of stats from a kernel core dump was never fully implemented.
Remove the dangling vars and remove the documentation.
MFC after: 3 days
|
| |
|
|
| |
MFC after: 3 days
|
| |
|
|
|
|
| |
All FreeBSD and NetBSD are BSD >= 199306 and have been for a long time.
MFC after: 1 week
|
| |
|
|
|
|
|
| |
MENTAT and SOLARIS are synonymous. Remove the extraneous duplicate
macro.
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
| |
In the old days when K&R C and STD C were each in use a workaround
(read hack) was required to allow the same code to work on each
without modification. All C compilers support STD C. We can finally
put the __P prototype to rest.
MFC after: 1 week
|
| |
|
|
|
|
|
|
| |
PR: 247952
MFC after: 1 week
Notes:
svn path=/head/; revision=363283
|
| |
|
|
|
|
|
|
|
|
| |
is not compiled in.
PR: 247952
MFC after: 1 week
Notes:
svn path=/head/; revision=363282
|
| |
|
|
|
|
|
|
|
|
| |
displayed in the same display.
PR: 247952
MFC after: 1 week
Notes:
svn path=/head/; revision=363281
|
| |
|
|
|
|
|
|
|
|
|
| |
and ipfstat -o where without an argument IPv4 and IPv6 states are
shown. Use -4 and -6 to limit the display to IPv4 or IPv6 respectively.
PR: 247952
MFC after: 1 week
Notes:
svn path=/head/; revision=363280
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ipfstat would list IPv4 outputs by default while -6 would produce IPv6
outputs. This commit combines the ipfstat -i and -o outputs into one
listing of IPv4 and IPv6 rules. The -4 option lists only IPv4 rules
(as the default before) while -6 continues to list only rules that affect
IPv6.
PR: 247952
Reported by: joeb1@a1poweruser.com
MFC after: 1 week
Notes:
svn path=/head/; revision=363279
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
the kernel, not an arbitrary 4 or 6.
This only affected printing ipfilter stats and rules from a kernel
dump. (This is currently undocumented.)
PR: 247952
MFC after: 1 week
Notes:
svn path=/head/; revision=363278
|
| |
|
|
|
|
|
|
|
|
|
| |
This is a prerequisite to upcoming argument processing cleanups which
will resolve consistency as was done with ippool previously.
PR: 247952
MFC after: 1 week
Notes:
svn path=/head/; revision=363277
|
| |
|
|
|
|
|
|
|
|
|
|
| |
thishost is already defined in lib/initparse.c; no need for this one. This
fixes the ipfilter build with -fno-common.
-fno-common will become the default in GCC10/LLVM11.
MFC after: 3 days
Notes:
svn path=/head/; revision=359413
|
| |
|
|
|
|
|
|
|
|
|
| |
files. This allows for loading, during the same invocation of ippool, of
multiple sources of input using multiple tools to concurrently maintain the
files such as fail2ban, macro preprocessors, and manually.
MFC after: 1 week
Notes:
svn path=/head/; revision=358064
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
from the command line. Prior to this the functionality was mostly there
however since the pool type (-t) was not recognized by the -A and -R
command options -- not recognized by getopt(). Additionally the code to
implement the dynamic add and removal of pools didn't work.
When dynamically adding (-A) a pool a type (-t) to specify if the pool
is a tree or hash pool must be specified. When dynamically removing (-R)
a pool, omitting -t will cause a search-and-destroy which will remove
both types of pools matching the name given (-m).
PR: 218433
MFC after: 1 week
Notes:
svn path=/head/; revision=352786
|
| |
|
|
|
|
|
|
|
|
|
| |
conflicts with the command option of the same name (also -R).
Remove the superfluous and confusing non-global non-command -R option.
PR: 218433
MFC after: 1 week
Notes:
svn path=/head/; revision=352785
|
| |
|
|
|
|
|
|
|
|
| |
to implementing IPv6 support within ippool which requires reworking
radix_ipf.c.
MFC after: 1 month
Notes:
svn path=/head/; revision=352738
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
reviewing and rewriting a patch in PR/238816.
PR: 238816
Reported by: rgrimes@
Pointy hat to: cy@
MFC after: 1 week
X-MFC with: r349450
Notes:
svn path=/head/; revision=349451
|
| |
|
|
|
|
|
|
| |
PR: 238816
MFC after: 1 week
Notes:
svn path=/head/; revision=349450
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove #ifdefs for ancient and irrelevant operating systems from
ipfilter.
When ipfilter was written the UNIX and UNIX-like systems in use
were diverse and plentiful. IRIX, Tru64 (OSF/1) don't exist any
more. OpenBSD removed ipfilter shortly after the first time the
ipfilter license terms changed in the early 2000's. ipfilter on AIX,
HP/UX, and Linux never really caught on. Removal of code for operating
systems that ipfilter will never run on again will simplify the code
making it easier to fix bugs, complete partially implemented features,
and extend ipfilter.
Unsupported previous version FreeBSD code and some older NetBSD code
has also been removed.
What remains is supported FreeBSD, NetBSD, and illumos. FreeBSD and
NetBSD have collaborated exchanging patches, while illumos has expressed
willingness to have their ipfilter updated to 5.1.2, provided their
zone-specific updates to their ipfilter are merged (which are of interest
to FreeBSD to allow control of ipfilters in jails from the global zone).
Reviewed by: glebius@
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D19006
Notes:
svn path=/head/; revision=343701
|
| |
|
|
|
|
|
| |
in usage(). This commit trues up usage() with loadpoolfile().
Notes:
svn path=/head/; revision=322075
|
| |
|
|
|
|
|
| |
ippool.8 man page.
Notes:
svn path=/head/; revision=320664
|
| |
|
|
|
|
|
| |
optional.
Notes:
svn path=/head/; revision=320428
|
| |
|
|
|
|
|
| |
of the ipfilter souce tree.
Notes:
svn path=/head/; revision=320395
|
| |
|
|
|
|
|
|
|
|
| |
and guaranteed to build everywhere in ipfilter.
Not all of this commit can be MFCed. Some is original code while others
are not.
Notes:
svn path=/head/; revision=320257
|
| |
|
|
|
|
|
|
| |
pool (ippool -a) not when removing a node from a pool (ippool -r).
Flag -T as an error in ippool -r.
Notes:
svn path=/head/; revision=320232
|
| |
|
|
| |
Notes:
svn path=/head/; revision=320221
|
| |
|
|
|
|
|
|
|
| |
valid when adding a pool (ippool -A), not when removing a pool
(ippool -R). It is a command line syntax error if specifying a seed (-S)
is specified when emoving a pool (-R).
Notes:
svn path=/head/; revision=320187
|
| |
|
|
|
|
|
| |
errors.
Notes:
svn path=/head/; revision=320143
|
| |
|
|
| |
Notes:
svn path=/head/; revision=320120
|
| |
|
|
| |
Notes:
svn path=/head/; revision=320095
|
| |
|
|
| |
Notes:
svn path=/head/; revision=319930
|
| |
|
|
| |
Notes:
svn path=/head/; revision=319929
|
| |
|
|
|
|
|
| |
of command options).
Notes:
svn path=/head/; revision=319848
|
| |
|
|
| |
Notes:
svn path=/head/; revision=319822
|
| |
|
|
| |
Notes:
svn path=/head/; revision=319821
|
| |
|
|
| |
Notes:
svn path=/head/; revision=319820
|
| |
|
|
|
|
|
|
| |
which was previously assigned from optarg in the argument list from
main().
Notes:
svn path=/head/; revision=319810
|
| |
|
|
|
|
|
|
|
|
|
| |
now. The option does not presently work. However, similar functions in
ipfstat (for state) and ipnat (for nat) do work and provide outputs that
can be easily parsed by shell scripts or subsequently loaded into CSV
files. The intention here is to return to this option to make it work.
I suspect the problem is in printpoolfields.c.
Notes:
svn path=/head/; revision=319795
|
| |
|
|
| |
Notes:
svn path=/head/; revision=319794
|
| |
|
|
|
|
|
| |
used in poollist().
Notes:
svn path=/head/; revision=319273
|
| |
|
|
|
|
|
|
|
| |
option).
PR: 218433
Notes:
svn path=/head/; revision=318333
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=317830
|
| |
|
|
|
|
|
|
|
| |
Reported by: cem
MFC after: 1 week
X-MFC with: r316993, r316994
Notes:
svn path=/head/; revision=316997
|
| |
|
|
|
|
|
|
|
|
| |
reallocarray() fail.
Reported by: Coverity CID 1372600
MFC after: 1 week
Notes:
svn path=/head/; revision=316994
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit replaces calloc calls, which called calloc() as if it were
malloc() by allocating a multiple of objects as a sizeof multiplied by
the number of objects. The patch rectifies this by calling calloc() as
it was meant to be called.
This commit also replaces realloc() with reallocarray() in a similar
fashion as above. Instead of calculating the memory to reallocated
(changed) by multiplying sizeof by the number of objects, the sizeof
and number are passed as separate arguments to reallocarray(), letting
reallocarray() do the multiplication instead. Like the calloc()
adjustment above, this is approach is cleaner and more elegant than
than the previous code.
This has been tested on my production firewall and a laptop (also
running ipfilter).
Submitted by: pfg
MFC after: 6 weeks
Notes:
svn path=/head/; revision=315368
|
| |
|
|
|
|
|
|
|
| |
Reported by: bde
MFC after: 2 weeks
X-MFC with: r312777
Notes:
svn path=/head/; revision=312791
|