Commit Graph

37 Commits

Author SHA1 Message Date
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.
2022-09-24 19:40:39 +02:00
solene 550cfca6d1 Merge pull request 'fix_readme_path' (#4) from prx/iblock:fix_readme_path into main
Reviewed-on: #4
2022-09-18 13:19:04 +00:00
Solene Rapenne f6e72657a5 Makefile: allow override of PREFIX 2022-09-18 15:15:24 +02:00
prx b95e736dc7 add fork check for error and reformat 2022-09-18 14:43:53 +02:00
prx a2702bad84 fix PREFIX in readme 2022-09-18 14:31:03 +02:00
solene 747a833df3 Merge pull request 'iblock: kill established connections after the ban' (#3) from fork into main
Reviewed-on: #3
2022-09-17 15:25:57 +00:00
Solene Rapenne 1f21555152 iblock: kill established connections after the ban 2022-09-17 16:52:03 +02:00
solene f272f53c0c Merge pull request 'actually use cflags' (#2) from prx/iblock:main into main
Reviewed-on: #2
2022-08-30 07:26:22 +00:00
prx 7910b7ea11 actually use cflags 2022-08-25 10:04:53 +02:00
solene 1a60f738f2 Merge pull request 'main' (#1) from prx/iblock:main into main
Reviewed-on: #1
2022-08-22 14:02:23 +00:00
prx ff5ff21ca5 make install is set 2022-08-22 15:05:26 +02:00
prx 8fe70f68e8 make sure PREFIX is set 2022-08-22 15:04:26 +02:00
prx 3cadbbe7df no need to look in PATH 2022-08-22 15:02:17 +02:00
prx 9b755ab627 typo 2022-08-22 14:56:35 +02:00
prx 28eb2bfbeb if and switch aren't functions 2022-08-22 14:56:21 +02:00
prx 7c1edb0feb remove useless {} 2022-08-22 14:55:45 +02:00
prx 2b226c9a02 initialize variables, use strlcpy return value 2022-08-22 14:55:25 +02:00
prx f9d12c9ef5 avoid colision with common table names 2022-08-22 14:50:40 +02:00
prx 7f474df2ee set TABLE_LEN according to pf source 2022-08-22 14:50:27 +02:00
Solene Rapenne ee7a713fc9 add installation target to makefile 2022-08-18 10:57:50 +02:00
Solene Rapenne b2219c036f README: enhancement 2022-04-09 21:27:32 +02:00
prx 461451d717 Make use of doas mandatory to avoid running iblock as root. 2021-03-20 11:42:00 +01:00
Solene Rapenne ddcacd328f Documentation enhancement 2021-03-10 22:37:11 +01:00
Solene Rapenne 8d03bbd483 Add IPv6 support + many others improvements. Patch from prx@ybad.name 2021-03-10 22:34:50 +01:00
Solene Rapenne da5ea6f65c use smaller char array for storing host and port 2021-03-01 23:12:11 +01:00
Solene Rapenne 09e16ad795 Block then pass, and not pass then block, this allowed people to be blocked multiple time 2021-02-28 18:30:52 +01:00
Solene Rapenne 517c24f322 Fix a check issue, from Quentin Rameau 2021-02-28 17:31:08 +01:00
Solene Rapenne b88a0f9c82 Add label in example and how to use it 2021-02-28 17:03:59 +01:00
Solene Rapenne c6bcf903a3 Add more ports in the example 2021-02-28 17:01:05 +01:00
Solene Rapenne b9469c2392 Enhance README 2021-02-28 16:58:50 +01:00
Solene Rapenne 629d57262a Enable blocking as root, ipv4 only 2021-02-28 14:07:01 +01:00
Solene Rapenne a6e23e761b Add a pfctl call + syslog 2021-02-28 10:54:36 +01:00
Solene Rapenne 23fa24541c Add simple Makefile with test suite 2021-02-26 00:10:27 +01:00
Solene Rapenne 40f8a39e3d skeleton 2021-02-26 00:10:12 +01:00
Solene Rapenne d9333cff11 Remove garbage chars 2021-02-25 20:43:58 +01:00
Solene Rapenne 71f7f0909a Update license file 2021-02-25 20:43:52 +01:00
solene 51c6f73915 Initial commit 2021-02-25 18:16:02 +00:00