Omar Polo
|
5ac1e2631b
|
Don't need to copy strings around and hardcode the max table len from pf
internals, just assign a pointer (eventually from argv.)
while here also add a usage() function and error if more than one
argument are passed.
|
9 months ago |
prx
|
b95e736dc7
|
add fork check for error and reformat
|
9 months ago |
Solene Rapenne
|
1f21555152
|
iblock: kill established connections after the ban
|
9 months ago |
prx
|
3cadbbe7df
|
no need to look in PATH
|
10 months ago |
prx
|
9b755ab627
|
typo
|
10 months ago |
prx
|
28eb2bfbeb
|
if and switch aren't functions
|
10 months ago |
prx
|
7c1edb0feb
|
remove useless {}
|
10 months ago |
prx
|
2b226c9a02
|
initialize variables, use strlcpy return value
|
10 months ago |
prx
|
f9d12c9ef5
|
avoid colision with common table names
|
10 months ago |
prx
|
7f474df2ee
|
set TABLE_LEN according to pf source
|
10 months ago |
prx
|
461451d717
|
Make use of doas mandatory to avoid running iblock as root.
|
2 years ago |
Solene Rapenne
|
8d03bbd483
|
Add IPv6 support + many others improvements. Patch from prx@ybad.name
|
2 years ago |
Solene Rapenne
|
da5ea6f65c
|
use smaller char array for storing host and port
|
2 years ago |
Solene Rapenne
|
517c24f322
|
Fix a check issue, from Quentin Rameau
|
2 years ago |
Solene Rapenne
|
629d57262a
|
Enable blocking as root, ipv4 only
|
2 years ago |
Solene Rapenne
|
a6e23e761b
|
Add a pfctl call + syslog
|
2 years ago |
Solene Rapenne
|
40f8a39e3d
|
skeleton
|
2 years ago |