Commit Graph

163 Commits

Author SHA1 Message Date
tschettervictor
dd2a56af6d epair: Use full list 2025-04-16 17:22:51 -06:00
tschettervictor
2251628867 fix one last count 2025-04-16 17:03:22 -06:00
tschettervictor
4d9d1d1050 fix bastille listing 2025-04-16 16:35:39 -06:00
tschettervictor
0590253acb fix epair listin 2025-04-16 16:30:12 -06:00
tschettervictor
741d2c6e12 fix shellcheck 2025-04-16 16:10:09 -06:00
tschettervictor
c2b756219c Force config file in default location
This will prevent errors when bastille gathers the number of epairs on the system.
2025-04-16 16:08:17 -06:00
tschettervictor
0fe4bec89f common: Add function to count epairs 2025-04-16 15:57:07 -06:00
tschettervictor
d5deb9bd1b Fix epair numbering when mixing -V and -B jails on one systme 2025-04-16 12:07:15 -06:00
tschettervictor
e3dddd25e7 Merge branch 'master' into priority-add 2025-03-26 23:30:38 -06:00
Barry McCormick
ee62485178 Merge pull request #895 from tschettervictor/custom-config
bastille: Support user based config
2025-03-26 22:24:41 -07:00
tschettervictor
87bcd57c79 Update common.sh 2025-03-19 15:25:15 -06:00
tschettervictor
afb233ab12 Update common.sh 2025-03-19 15:04:24 -06:00
tschettervictor
3c88a0bcc2 fix listing priority again 2025-03-19 10:48:26 -06:00
tschettervictor
eaacab6e7e fix listing jail priority 2025-03-19 10:24:50 -06:00
tschettervictor
601d120d76 fix blank after jail name 2025-03-19 05:59:22 -06:00
tschettervictor
963c13a047 Fix quotes 2025-03-17 20:02:07 -06:00
tschettervictor
b843b2c100 priority: Use priority list for all comm 2025-03-17 19:54:34 -06:00
tschettervictor
f449cd4fd9 common: Show vnetX interface for multiple interfaces 2025-03-11 14:18:28 -06:00
tschettervictor
d1156cbb05 common: typo and trailing whitespace 2025-03-02 13:19:26 -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
b5611e9196 common: Load config as variable 2025-03-01 20:03:03 -07:00
tschettervictor
b09ee86037 Fix shellcheck 2025-03-01 18:51:17 -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
71690572fc common: Rebase 2025-02-05 08:13:57 -08:00
tschettervictor
2e55965edd Merge branch 'master' into common.sh_functions 2025-01-26 10:38:58 -07:00
tschettervictor
2f594e4e65 common: Also check ifconfig for epairs 2025-01-25 10:22:23 -07:00
tschettervictor
2c45c51e84 common: Add notes about how MAC is generated 2025-01-24 07:33:19 -07:00
tschettervictor
b3ff3efed9 common: Add comment about MAC address 2025-01-24 06:49:19 -07:00
tschettervictor
603da3ca8d common: Adjust fstab function 2025-01-21 06:54:06 -07:00
tschettervictor
abdf885c3a common: Comment about MAC prefix 2025-01-18 17:47:13 -07:00
tschettervictor
589f19032a common: Allow name=if for bridge 2025-01-18 16:32:40 -07:00
tschettervictor
fdff42a1b3 common: fix epair naming 2025-01-18 10:08:02 -07:00
Barry McCormick
fb876b4074 Merge pull request #808 from tschettervictor/patch-3
create: Static MAC optional
2025-01-15 21:29:48 -08:00
tschettervictor
edc6f29184 common: final revision of changes 2025-01-15 14:33:22 -07:00
Barry McCormick
49a7a643a8 Merge pull request #790 from tschettervictor/etcupdate
etcupdate: beta version
2025-01-14 21:37:54 -08:00
tschettervictor
9420441a56 common: Add comments about static MAC 2025-01-14 10:54:28 -07:00
tschettervictor
b1a3306cef common: use FreeBSD prefix for static MAC 2025-01-14 07:33:43 -07:00
tschettervictor
57a652cc70 common: update function to use "epairx" because of name limit in FreeBSD 2025-01-13 17:44:30 -07:00
tschettervictor
c9bb5132c0 common: do not trim : from MAC too early 2025-01-13 15:58:56 -07:00
tschettervictor
5345c2a599 common: MAC now follows host prefix, and hashes jail+hostMAC for suffix 2025-01-13 13:59:55 -07:00
tschettervictor
cd8461691f common: Static MAC optional 2025-01-13 13:23:08 -07:00
tschettervictor
bf750f2b18 Merge branch 'BastilleBSD:master' into multiple-interfaces 2025-01-11 16:02:11 -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
f55335e21c common: fix [] 2025-01-09 23:31:23 -07:00
tschettervictor
d1e475e3d1 common: fix brackets [] 2025-01-09 23:30:48 -07:00
tschettervictor
fb145b3441 common: error when jail name is a number 2025-01-09 20:47:39 -07:00
tschettervictor
e6e60a3a32 common: update set_target_single 2025-01-09 15:12:23 -07:00
tschettervictor
18826666d7 common: support single target function error when multi-target selected 2025-01-08 12:59:55 -07:00
tschettervictor
e3a57e21ea common: simplify debug message 2025-01-07 15:42:44 -07:00
tschettervictor
5d3f4732fb common: grep quietly for "check_target_is*" functions 2025-01-06 12:45:44 -07:00