Commit Graph

51 Commits

Author SHA1 Message Date
tschettervictor
a58da2cda6 Merge branch 'BastilleBSD:master' into patch-2 2025-01-04 10:57:02 -07:00
tschettervictor
fedc7aa60c Remove message on return 1 2024-12-31 15:27:45 -07:00
tschettervictor
4bc76d5064 fix brace 2024-12-31 15:00:12 -07:00
tschettervictor
7a621b2e1a Merge branch 'master' into check_jail_exists-function 2024-12-31 14:58:50 -07:00
tschettervictor
3c60a4b26b hash mac of host for prefix 2024-12-30 16:49:34 -07:00
tschettervictor
d3fd055b67 more random mac 2024-12-30 12:16:26 -07:00
tschettervictor
3dce542d6b add check_target_exists to common.sh 2024-12-27 12:15:26 -07:00
tschettervictor
86fa464957 Merge branch 'BastilleBSD:master' into mount-fixes 2024-12-27 12:11:48 -07:00
tschettervictor
2bd06807ce Merge branch 'master' into check_jail_exists-function 2024-12-27 08:25:58 -07:00
tschettervictor
db0f5c5e09 minor tweak 2024-12-27 08:16:38 -07:00
tschettervictor
c8a4d74fb6 shellcheck disable 2104 2024-12-23 18:28:55 -07:00
tschettervictor
341db36103 set_target and error_continue functions 2024-12-23 18:23:31 -07:00
tschettervictor
d458ed8ee1 Update common.sh 2024-12-20 22:39:53 -07:00
tschettervictor
cbcd3881b1 organize functions in alphabetical order 2024-12-19 16:55:01 -07:00
tschettervictor
9da73d6cf0 set TARGET to local only for some functions 2024-12-16 19:28:50 -07:00
tschettervictor
4248ea9b0b Update common.sh 2024-12-16 19:22:46 -07:00
tschettervictor
ac30b36b57 only set target with set_target_single 2024-12-16 19:18:24 -07:00
tschettervictor
1bcd44cbb3 add set_target_single function to only allow single jail targetting 2024-12-16 19:16:49 -07:00
tschettervictor
0874e02f18 Update common.sh 2024-12-16 17:50:35 -07:00
tschettervictor
0ddd4d98cf Fox vars 2024-12-16 17:48:21 -07:00
tschettervictor
31cc087ef3 Add set_target function 2024-12-16 17:44:36 -07:00
tschettervictor
1fce1925a6 spacing 2024-12-16 16:58:41 -07:00
tschettervictor
dc55881889 source config from common.sh 2024-12-16 12:44:05 -07:00
tschettervictor
0e3f7a5c0c rename function to target 2024-12-16 12:27:07 -07:00
tschettervictor
e4487077c9 rename to be consistent 2024-12-16 12:19:09 -07:00
tschettervictor
e4fb6e3ca6 begin moving functions to common.sh 2024-12-16 12:18:40 -07:00
tschettervictor
176e36d00e Merge branch 'BastilleBSD:master' into master 2024-12-16 07:24:28 -07:00
Juan David Hurtado G
7e6a9fa896 [WIP] shellcheck linting 2024-12-08 20:37:02 -05:00
tschettervictor
a42d1223c7 Merge branch 'BastilleBSD:master' into master 2024-12-08 13:21:58 -07:00
tschettervictor
e055c87d0f Update common.sh - clean up static mac code 2024-12-06 11:42:50 -07:00
tschettervictor
203af6c8ad Update common.sh - move generation of static mac to main functions 2024-12-06 11:39:10 -07:00
Juan David Hurtado G
11b75f5dad shellcheck errors: SC2068 Double quote array expansions to avoid re-splitting elements. 2024-11-24 20:49:06 -05:00
Juan David Hurtado G
7dbe1e761b rel: update copyright year and release version 2024-11-24 09:46:09 -05:00
tschettervictor
55203b2298 add support for static MAC on VNET jails
- support static MAC on bridged and VNET jails
- remove quotes around vnet.interface
2024-10-09 11:31:54 -06:00
tschettervictor
cc75f454b4 spacing edit 2024-10-08 16:35:01 -06:00
tschettervictor
2560b43602 support for -V option also 2024-10-08 16:32:52 -06:00
tschettervictor
0961165d36 add support for static mac address for jails
This commit will generate a static MAC address for each jail, based on the name of the jail. It will use the first half (xx:xx:xx) of the host MAC to avoid network clashes, and generate a random HEX string from the hashed name of the jail. It will then add that random 5 character HEX string in MAC format, and add an "a" and "b" for the host and jail respectively. 

This way a jail can retain it's MAC ID even if it is deleted and reinstalled, as long as the same name is retained.
2024-10-08 16:21:28 -06:00
Christer Edwards
622c926917 support lowercase values in bastille.conf (issue #368) 2023-11-25 15:09:11 -07: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
Andrew Stevenson
a352fd6507 Expand comment
(this should have gone in a previous commit)
2022-07-24 22:16:04 +00:00
Andrew Stevenson
a0b7bc54e0 Enable colour only when writing to a tty
The escape codes can confuse other scripts and things in pipes
2022-07-23 09:29:42 +00:00
Logan Ellis
dbd4b5edc5 fix non-unique epair creation when using vnet 2022-03-10 00:08:38 -08:00
Christer Edwards
aafc2b3323 0.9.20220216 release 2022-02-16 23:28:09 -07:00
Rob Arnold
c98d03a8e5 Import basic vnet settings from iocage
There's quite a bit more we could do here, but this hits my basic usage
with vnets. Future work here would be things like ipv6 support or trying
to infer what a custom `interfaces` setting means.
2022-01-13 21:04:15 -08:00
Christer Edwards
3a7e720e82 improve NO_COLOR detection 2021-07-31 15:04:08 -06:00
JRGTH
64cc7747c8 Disable colors if "NO_COLOR" env variable present 2021-07-13 09:02:55 -04:00
JRGTH
50c09d0359 Feature to disable output colors 2021-07-13 04:49:25 -04:00
Christer Edwards
6fa744bbda update 2021 copyright 2021-01-15 20:00:26 -07:00
Chris Wells
8b4d18f8f3 Create info() and warn() for cleaner print statements. 2020-11-25 21:19:08 -05:00