Commit Graph

76 Commits

Author SHA1 Message Date
tschettervictor
a190099450 deprecate parallel mode 2025-08-03 13:32:59 -06:00
tschettervictor
1b37b2577c update jail syntax on jail stop 2025-06-13 19:38:12 -06:00
tschettervictor
4b6a4c14ae Typo 2025-05-09 12:43:47 -06:00
tschettervictor
c222d602aa Support jailing datasets 2025-05-09 10:33:19 -06:00
tschettervictor
76cda4b53f fix & for subshell 2025-05-04 12:35:12 -06:00
tschettervictor
39ed1aaec6 Initial commit for subshell parallel mode 2025-05-04 12:11:16 -06:00
tschettervictor
a7c4695642 Update stop.sh 2025-05-02 09:15:13 -06:00
tschettervictor
5344eb9ba5 depend: Add support for dependant jails 2025-05-02 08:32:28 -06:00
tschettervictor
68f4aecddf finish refactor of line spacing 2025-05-01 17:39:50 -06:00
tschettervictor
824ffb2980 Add \n to info _jail 2025-04-30 18:49:14 -06:00
tschettervictor
2b5f239050 final run through 2025-04-30 13:39:05 -06:00
tschettervictor
bef2ece965 adjust blank line option 2025-04-30 08:19:50 -06:00
tschettervictor
b73639d8b6 rework blank lines again 2025-04-29 21:58:15 -06:00
tschettervictor
046cf87e79 rework blank line 2025-04-29 21:51:24 -06:00
tschettervictor
310258f4b4 set _LAST_JAIL in common 2025-04-29 21:08:08 -06:00
tschettervictor
7974eb7429 only set _last_jail once 2025-04-29 20:53:27 -06:00
tschettervictor
feaf8c792b print blank line after last jail 2025-04-29 20:48:11 -06:00
tschettervictor
f423446370 add blank line after each jail on multiple targets 2025-04-29 18:54:34 -06:00
tschettervictor
a168505223 restart: Pass only options that are allowed to stop 2025-04-26 20:36:17 -06:00
tschettervictor
6863e6e3b7 docs: Reorder boot and priority + minor fixes 2025-04-20 14:17:46 -06:00
tschettervictor
91e230156b Update stop.sh 2025-04-17 19:05:45 -06:00
tschettervictor
531b5d14bf stop: Small typo clarification 2025-04-17 19:01:00 -06:00
Barry McCormick
aa3baddf64 Merge pull request #910 from BastilleBSD/limits-clear-reset
limits: Add clear, reset, stats, show, add, remove  as commands
2025-04-02 07:46:49 -07:00
tschettervictor
e3dddd25e7 Merge branch 'master' into priority-add 2025-03-26 23:30:38 -06:00
tschettervictor
2024482725 stop: Use new limits clear command 2025-03-21 14:47:18 -06:00
tschettervictor
950cb0bc43 fix $ 2025-03-18 16:28:06 -06:00
tschettervictor
7ae59c8551 fix '' 2025-03-18 16:25:41 -06:00
tschettervictor
8d6f7c9e28 bastille: clean up rc script 2025-03-18 16:23:57 -06:00
tschettervictor
b843b2c100 priority: Use priority list for all comm 2025-03-17 19:54:34 -06:00
tschettervictor
aad1158146 Add -b|--boot for start/stop/restart 2025-03-15 21:35:03 -06:00
tschettervictor
49a4bed126 Merge branch 'BastilleBSD:master' into custom-config 2025-03-03 16:26:54 -07:00
tschettervictor
be6885eb3e stop: Do not attempt any pf actions if it has not been configured 2025-03-02 17:47:18 -07:00
tschettervictor
454288b2b1 bastille: Load config only from commons.sh
Since all files source common.sh anyway, we don't want to source the config twice.
2025-03-02 11:23:35 -07:00
tschettervictor
6ba11dc762 bastille: Support user based config
This PR will allow bastille to be configured based on the user you run as.

To load the config for a specifig user, you must be logged in as the specified user, and there must be a file called "bastille_user.conf" inside /usr/local/etc/bastille or else bastille will just load the default config file.
2025-03-01 18:48:14 -07:00
tschettervictor
d0d46c1f70 stop: Fix copyright year 2025-01-31 09:26:49 -07:00
tschettervictor
eb1ebff5d2 stop: Allow multiple IPs in jails 2025-01-28 17:53:13 -07:00
Juan David Hurtado G
8b0411c111 Add SPDX license identifiers and update copyright years
Added SPDX-License-Identifier to all scripts for better license clarity and compliance. Updated the copyright years from 2024 to 2025 in various files to reflect the current maintenance period.
2025-01-11 14:07:41 -05:00
tschettervictor
108227f72e remove padding 2024-12-10 15:07:29 -07:00
tschettervictor
2a8a070251 remove "which pfctl"
We assume that if the jail has an ip4.addr value, then pfctl is obviously installed.

It is also not invoked by start, so stop should not need it either.
2024-12-10 15:04:27 -07:00
tschettervictor
aa17f5c4f9 Fix pfctl being invoked when NAT is not used + change ip var to ip4 for future ip6 implementation 2024-12-10 14:51:29 -07:00
Juan David Hurtado G
7dbe1e761b rel: update copyright year and release version 2024-11-24 09:46:09 -05:00
Christer Edwards
4efcc5021c update copyright dates 2023-07-14 21:02:14 -06:00
Lars Engels
64c3b6045e Allow running bastille and subcomands with help flags as regular user 2023-03-16 20:58:11 +01:00
Chris Wells
dd7f195c1e Make pf table name and external interface configurable.
Closes #508
2022-11-26 23:24:33 -05:00
Eric A. Borisch
24eb03c2e6 Permit outgoing connections during stop action 2022-02-24 09:42:40 -06:00
Christer Edwards
aafc2b3323 0.9.20220216 release 2022-02-16 23:28:09 -07:00
Christer Edwards
faf3b2b691 use full path when calling jls binary 2021-12-17 19:09:49 -07:00
Jose
211a268c36 Use which since shell built-in and search for paths 2021-02-08 05:31:16 -04:00
Jose
75ed5b3ce4 Add quick check for pfctl command 2021-02-08 04:17:32 -04:00
Christer Edwards
6fa744bbda update 2021 copyright 2021-01-15 20:00:26 -07:00