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
Bike Dude
ca8819d7b6
stop.sh: clear rdr
2020-12-15 10:21:11 +01:00
Chris Wells
8b4d18f8f3
Create info() and warn() for cleaner print statements.
2020-11-25 21:19:08 -05:00
Chris Wells
c6aded8d0a
Ensure target is specified and exists in 1 place instead of many.
...
Require target to be running for commands that need it.
Closes #239 .
2020-08-30 20:15:22 -04:00
Chris Wells
aaffc882f9
Create and leverage global error functions
2020-08-30 10:57:14 -04:00
Jose
f54151cf94
Fix for pfctl on start/stop commands, clean up excess double quotes
2020-04-16 07:53:53 -04:00
Christer Edwards
ef320ebcdc
start/stop hotfix and version bump
2020-04-14 22:18:21 -06:00
Marius van Witzenburg
f28054b47e
Cleanup whitespace
2020-04-14 11:53:11 +02:00
Christer Edwards
106c566c88
network cleanup; default route addition for vnet
2020-04-12 17:04:37 -06:00
Jose
01eaccc1da
Add double quotes to prevent globbing/word splitting, general code consistency improvements
2020-02-20 18:06:31 -04:00
Jose
7ef65036c6
Return proper warning messages, code cleanup
2020-02-14 11:00:02 -04:00
Christer Edwards
02d0e94ef6
add/remove rctl limits on container start/stop
2020-01-26 10:08:42 -07:00
Christer Edwards
8b9760b0a5
initial support for limits automation; updated copyright year
2020-01-26 09:51:02 -07:00
Jose
f3615a3380
Minor changes, fix notify if container not started
2019-12-27 14:48:06 -04:00
Jose
0c78ebae88
Fix to match exact container name, add missing quotes
2019-12-27 13:15:58 -04:00
Lars Engels
5b11f81a1b
Add "" around variables in test(1) cases to prevent errors when a variable is unset
2019-12-11 20:35:05 +01:00
Christer Edwards
fbb99470ec
quieting pfctl output in start/stop
2019-11-25 17:45:17 -07:00
Christer Edwards
b5c8330502
add PATH; improve firewall
2019-11-25 15:38:40 -07:00