Commit Graph

64 Commits

Author SHA1 Message Date
tschettervictor
dbad1a7203 setup: Use IFbridge for bridge name 2025-05-22 10:31:13 -06:00
tschettervictor
467321d3f7 fix storage auto 2025-05-19 20:06:23 -06:00
tschettervictor
a768a3dc9e allow supplying arg on setup options 2025-05-19 20:01:59 -06:00
tschettervictor
4b860d9f5e support altroot 2025-05-17 18:46:36 -06:00
tschettervictor
8cbdc611e2 Update setup.sh 2025-05-17 11:52:04 -06:00
tschettervictor
e6ae4a0d75 setup: Use newlines 2025-05-16 21:48:41 -06:00
tschettervictor
3252080235 Update setup.sh 2025-05-16 21:39:16 -06:00
tschettervictor
00912e086c setup: Use OPT_CONFIG instead of $1 2025-05-16 18:46:00 -06:00
tschettervictor
fd9583e911 setup: Don't support -y on shared 2025-05-16 18:43:29 -06:00
tschettervictor
25cde6153c setup: Options are first 2025-05-16 18:41:44 -06:00
tschettervictor
0c3e5b1fd7 setup: USe - only for options 2025-05-16 18:29:35 -06:00
tschettervictor
be4d68fcf1 setup: Add -y 2025-05-16 15:32:56 -06:00
tschettervictor
eb7f9288e5 setup: Fix UFS setup 2025-05-15 18:55:00 -06:00
tschettervictor
c0af78118f setup: Don't need migratedir 2025-05-09 15:11:44 -06:00
tschettervictor
fb3011b77e setup: check migrate perms 2025-05-08 11:56:53 -06:00
tschettervictor
24e5d5b874 setup: Ensure 777 on migratedir 2025-05-08 11:53:01 -06:00
tschettervictor
c0cd4df6c5 migrate: Auto creating directory required 2025-05-06 07:40:08 -06:00
tschettervictor
9392d8d7a4 setup: Exit after auto configuring 2025-05-02 08:22:38 -06:00
tschettervictor
68f4aecddf finish refactor of line spacing 2025-05-01 17:39:50 -06:00
tschettervictor
bf443e8586 bastille: Initial support for netgraph 2025-04-25 14:33:38 -06:00
tschettervictor
5dfe7e958c setup: PF > Firewall (pf) 2025-04-22 23:00:22 -06:00
tschettervictor
73480093a9 Update setup.sh 2025-04-22 22:56:14 -06:00
tschettervictor
097ad8395b Update setup.sh 2025-04-22 20:32:53 -06:00
tschettervictor
de4aaf4b7b docs: Update setup 2025-04-22 17:01:33 -06:00
tschettervictor
485889285f typos 2025-04-22 13:31:56 -06:00
tschettervictor
8875ab3d17 setup: fix shellcheck 2025-04-22 13:31:09 -06:00
tschettervictor
bcf7a4462b setup: Onlly allow loopback or shared interface 2025-04-22 13:25:44 -06:00
tschettervictor
283668c0b1 Update setup.sh 2025-04-22 12:59:38 -06:00
tschettervictor
1bc187180d Update setup.sh 2025-04-22 12:55:02 -06:00
tschettervictor
f64a33c231 Update setup.sh 2025-04-22 12:48:45 -06:00
tschettervictor
dc0eedecc0 setup: Add option to create a bridge for bastille 2025-04-22 12:46:36 -06:00
tschettervictor
fc8dc97557 setup: More fixes 2025-04-22 11:16:25 -06:00
tschettervictor
7e573dde0c temporary setup command fix
This is simply to avoid issues when the setup command might be run over an existing setup.

It will check each setup subcommand and verify it has not already been configured before attempting to run the setup for the relevant setup step.

This is only temporary, as we would like to get a much more advanced setup command integrated in this or below.

#940
2025-04-21 20:38:33 -06:00
Juan David Hurtado G
2d3673b4b7 setup: removes deprecated option bastille0 2025-04-20 11:35:59 -05:00
Juan David Hurtado G
e9b267d882 setup: fix to use the new BASTILLE_CONFIG variable
This helps restore the autoconfiguration for ZFS
2025-04-19 12:21:08 -05: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
Juan David Hurtado G
bcf738b6ee Revert "Merge pull request #823 from JRGTH/bastille_setup_initial"
This reverts commit acc7bb9739, reversing
changes made to 05dc2b8d6a.
2025-01-26 20:45:37 -05:00
JRGTH
050d200832 Quick cleanup revision 2025-01-21 18:45:38 -04:00
JRGTH
f45fb73913 Quick shellcheck fix as per suggestion 2025-01-21 18:23:52 -04:00
JRGTH
848bec5fae Add --ethernet option for bastille_network_shared
Add '-e|--ethernet' option to configure `bastille_network_shared` physical interface, also add  config backups to select partial variable resets as well.
2025-01-21 18:17:12 -04:00
JRGTH
6327d3654b Local shellcheck pass using shellcheck version: 0.8.0 2025-01-21 06:25:44 -04:00
JRGTH
af78f2b74d Initial 'bastille setup' cmd rewrite/enhancements
This PR will add the Initial 'bastille setup' command rewrite and enhancements, includes the ZFS activation helper, also further enhancements will be added accordingly.

Further testing/bug reporting welcome.
2025-01-21 05:55:37 -04: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
Juan David Hurtado G
0d5b92c052 Improve bastille.conf handling with user prompt for creation
Replaced ineffective default configuration generation logic with a user-interactive prompt. Users can now choose to create the configuration file with default values if it is missing, ensuring better control and clarity. Removed redundant code from the setup script to streamline execution.
2024-12-29 15:22:17 -05:00
Juan David Hurtado G
85d656bd11 setup: shellcheck 2024-12-08 15:12:15 -05:00
tschettervictor
052c8b7492 Update setup.sh - uppercase ZFS 2024-12-04 07:22:42 -07:00
tschettervictor
4e460abcde Update setup.sh - add additional warning to enable ZFS when adding ZPOOL 2024-12-03 18:32:54 -07:00
tschettervictor
53bd72a272 Update setup.sh - fail setup on multiple zpool detection 2024-12-03 18:26:49 -07:00
Juan David Hurtado G
426d0fde34 setup: comment with TODO for bastille.conf check 2024-11-24 16:58:04 -05:00