tschettervictor
68f4aecddf
finish refactor of line spacing
2025-05-01 17:39:50 -06:00
tschettervictor
5f522bc179
fix bootstrap and rdr blank line
2025-04-30 19:23:23 -06:00
tschettervictor
824ffb2980
Add \n to info _jail
2025-04-30 18:49:14 -06:00
tschettervictor
2b5f239050
final run through
2025-04-30 13:39:05 -06: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
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
0ef43f889c
rdr: Fix for JAIL_IP wrong format
2025-02-25 06:38:28 -07:00
tschettervictor
c28fd33573
rdr: Fix wrong variable on reset command
2025-02-24 07:06:25 -07:00
tschettervictor
4aa9ca555f
rdr: _jail > TARGET
2025-02-18 09:09:50 -07:00
tschettervictor
cbe448c4d2
rdr: Remove old format after new format is loaded
2025-02-13 13:18:09 -07:00
tschettervictor
bee05016f6
rdr: trim subnet in case it is included behind ip
2025-01-13 08:17:54 -07:00
tschettervictor
254f1718c0
rdr: update error_message to say reset instead of clear
2025-01-12 11:07:36 -07:00
tschettervictor
0a837ee5be
rdr: support old style interface
2025-01-12 10:42:54 -07:00
tschettervictor
cf3bb4e809
rdr: fix echo code on IPv6 redirection
2025-01-11 16:14:50 -07:00
tschettervictor
780f93ca16
rdr: spacing fix and usage message remove additional ]
2025-01-11 16:07:25 -07:00
tschettervictor
cab6ef8c06
Merge branch 'BastilleBSD:master' into rdr-multiple-interfaces
2025-01-11 16:04:03 -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
eee99a3b79
rdr: fix _jail > TARGET + alphabetical option order
2025-01-08 10:25:15 -07:00
tschettervictor
e5f5655828
rdr: Allow only a single target
2025-01-07 23:15:02 -07:00
tschettervictor
b7c861f6f9
rdr: clear > reset notify on duplicate jail rules
2025-01-07 22:58:54 -07:00
tschettervictor
a169beb073
rdr: do not allow rules to be duplicated between jails
2025-01-07 22:55:36 -07:00
tschettervictor
ada6c2d61c
rdr: correctly print default interface IP
2025-01-07 17:03:00 -07:00
tschettervictor
6f0d318fd3
rdr: Add debug option, code cleanup
2025-01-06 18:43:22 -07:00
tschettervictor
fd4c5111b5
cleanup
2024-12-16 23:00:20 -07:00
tschettervictor
2669d8126b
Merge branch 'master' into rdr-multiple-interfaces
2024-12-16 22:55:14 -07:00
tschettervictor
0c80326e3a
fix quotes
2024-12-16 09:34:54 -07:00
tschettervictor
05e0eb27f4
Merge branch 'master' into rdr-multiple-interfaces
2024-12-16 07:26:39 -07:00
tschettervictor
f79cc609d3
Merge branch 'BastilleBSD:master' into patch-5
2024-12-16 07:25:37 -07:00
tschettervictor
a717b09d0f
print less info
2024-12-15 08:57:02 -07:00
tschettervictor
85fecea04f
var rename for clarity
2024-12-14 18:42:28 -07:00
tschettervictor
afd7ea7f8f
Typo
2024-12-14 16:43:35 -07:00
tschettervictor
5b4cb721e5
add support for dual/ipv4/ipv6 options
2024-12-14 12:44:59 -07:00
tschettervictor
031f47f394
fix ipv6 (inet > inet6)
2024-12-14 10:53:33 -07:00
tschettervictor
9d37a15703
revert/ persist first then load rule
2024-12-14 10:49:48 -07:00
tschettervictor
7cb3e4a8b9
fix ip6 rule syntax
2024-12-14 10:46:50 -07:00
tschettervictor
e6ae0ebf20
too much green, minimize color and info when redirecting
2024-12-13 14:56:33 -07:00
tschettervictor
744dd10a1c
remove .
2024-12-13 07:43:03 -07:00
tschettervictor
0ce5c27d8e
add small info to reset command
2024-12-13 07:41:27 -07:00
tschettervictor
29bd130b24
final revision
2024-12-13 07:31:58 -07:00
tschettervictor
3a16c047d2
merge case commands, better error handling
2024-12-13 06:57:03 -07:00
tschettervictor
ebf9c89555
missing done
2024-12-12 20:26:06 -07:00
tschettervictor
ae9a33a50e
error handling
2024-12-12 20:23:50 -07:00
tschettervictor
216a4a5412
spacing
2024-12-12 19:41:52 -07:00
tschettervictor
3f97dd7e58
split options and regular case commands
2024-12-12 18:52:46 -07:00
tschettervictor
d6cbbf2ac6
quick fix
2024-12-12 18:42:52 -07:00
tschettervictor
20a291c689
add reset to help command
2024-12-12 18:40:32 -07:00
tschettervictor
ab54842061
error handling + add reset command to remove all rdr rules
2024-12-12 18:39:08 -07:00
tschettervictor
4377e1413a
help message conform to case command
2024-12-12 17:25:08 -07:00
tschettervictor
7ab9188b3a
Use case command instead of getopts to remain consistent
2024-12-12 17:23:21 -07:00
tschettervictor
606d8da0de
only persist rdr rule if it can be properly loaded, else exit
2024-12-12 16:55:56 -07:00