tschettervictor
71690572fc
common: Rebase
2025-02-05 08:13:57 -08: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
a58da2cda6
Merge branch 'BastilleBSD:master' into patch-2
2025-01-04 10:57:02 -07:00
tschettervictor
0f21203583
Merge branch 'master' into multiple-interfaces
2024-12-31 18:41:13 -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
4c8bb692dd
Add stopped function
2024-12-30 17:13:58 -07:00
tschettervictor
3976b4f9cc
fix static mac
2024-12-30 16:52:36 -07:00
tschettervictor
3c60a4b26b
hash mac of host for prefix
2024-12-30 16:49:34 -07:00
tschettervictor
3a9f56d3ac
keep better track of interfaces
2024-12-30 12:17:26 -07:00
tschettervictor
d3fd055b67
more random mac
2024-12-30 12:16:26 -07:00
tschettervictor
b24f43f628
support multiple interfaces
2024-12-29 17:49:48 -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