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
tschettervictor
a9bd2d55c1
common.sh: revert VNET function
2025-01-06 12:41:30 -07:00
tschettervictor
873a5230c4
common: 0>1 for base interface grep
2025-01-06 08:57:00 -07:00
tschettervictor
02396f569f
vnet: start VNET jails at 1 because bastille0 is used as a loopback
2025-01-05 21:55:28 -07:00
tschettervictor
f766f26c62
common: move export to after for loop
2025-01-05 20:15:01 -07:00
tschettervictor
53295ba69c
quick oopsy fix for exporting TARGET
2025-01-05 20:10:37 -07:00
tschettervictor
61788cce6b
fix shellcheck
2025-01-05 19:51:03 -07:00
tschettervictor
dbd303fa2e
common.sh: integrate new functions
...
These are all the new function I am beginning to move to common.sh for use with all jails.
2025-01-05 19:14:15 -07:00
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