tschettervictor
5746af3581
common: Add debug mode
2025-01-20 18:50:06 -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
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
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
e6e60a3a32
common: update set_target_single
2025-01-09 15:12:23 -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