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
tschettervictor
449a0ae8e1
add check when setting source IP + supress echo output
2024-12-12 07:41:23 -07:00
tschettervictor
492b64b302
fix help usage command
2024-12-11 18:28:10 -07:00
tschettervictor
53b47306f5
better error handling
2024-12-11 16:10:11 -07:00
tschettervictor
74eab248ca
add error notify to pfctl commands/add better info commands
2024-12-11 15:56:31 -07:00
tschettervictor
8f3ad2f972
change to -ge 6
2024-12-11 12:13:05 -07:00
tschettervictor
5b7b848b12
revert listing of IP and interface
2024-12-11 11:37:16 -07:00
tschettervictor
4b5655470a
add protocol to printed info
2024-12-11 11:36:10 -07:00
tschettervictor
7f1be3d480
more spacing
2024-12-11 11:06:33 -07:00
tschettervictor
f627aadac2
spacing
2024-12-11 11:06:16 -07:00
tschettervictor
d21b5166d7
add usage command with new switches
2024-12-11 11:05:47 -07:00
tschettervictor
035855bf01
major rewrite to allow setting TO+FROM
2024-12-11 10:57:07 -07:00
tschettervictor
471a91ca24
print IP in addition to interface when listing RDR
2024-12-10 18:46:36 -07:00
tschettervictor
622d84b6be
allow specifying IP to redirect traffic to
...
This is for the folks who have multiple IP addresses on a single interface.
2024-12-10 18:45:06 -07:00
tschettervictor
eb65800a0c
show output when creating rdr rule
2024-12-09 22:02:01 -07:00
tschettervictor
bafa183b08
remove unecessary "echo"
2024-12-09 19:27:08 -07:00
tschettervictor
dc9822a013
also list interface when doing "list all" for published ports
2024-12-09 17:01:17 -07:00
tschettervictor
381d09592b
Allow setting custom interface when doing "rdr"
2024-12-09 16:53:37 -07:00
Juan David Hurtado G
85d656bd11
setup: shellcheck
2024-12-08 15:12:15 -05:00
Juan David Hurtado G
55bc30e071
Merge branch 'master' into shellcheck
2024-12-08 15:08:20 -05:00
tschettervictor
052c8b7492
Update setup.sh - uppercase ZFS
2024-12-04 07:22:42 -07:00
tschettervictor
4e460abcde
Update setup.sh - add additional warning to enable ZFS when adding ZPOOL
2024-12-03 18:32:54 -07:00
tschettervictor
53bd72a272
Update setup.sh - fail setup on multiple zpool detection
2024-12-03 18:26:49 -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
426d0fde34
setup: comment with TODO for bastille.conf check
2024-11-24 16:58:04 -05:00
Juan David Hurtado G
3f0a460f90
setup: warning about reviewing and starting pf
2024-11-24 15:16:09 -05:00
Juan David Hurtado G
72a4706175
Merge branch 'master' into rel/0.12
2024-11-24 11:08:39 -05:00
Juan David Hurtado G
cee4d669ca
setup: warning deprecation of bastille0 option and updates documentation
2024-11-24 11:07:46 -05:00
Juan David Hurtado G
624a5c92ca
Merge pull request #742 from msoudny/master
...
changed setup.sh loopback creation
2024-11-24 10:58:51 -05:00
Juan David Hurtado G
7dbe1e761b
rel: update copyright year and release version
2024-11-24 09:46:09 -05:00
Juan David Hurtado G
b91d357679
export: be clear that --xz is for ZFS systems
...
The support for the `--xz` option is only for ZFS at the moment since the `import` command assumes that was the case. By now just show a more descriptive message if `--xz` was used on a UFS system.
2024-11-24 08:29:22 -05:00
msoudny
4753006e2c
Update setup.sh
...
- check that bastille.conf exists or create a copy from .sample,
- changed "bastille0" loopback creation to read config value $bastille_network_loopback instead,
- changed setup.sh argument "bastille0" for loopback interface creation to a more generic "network",
- "bastille0" as a setup.sh argument is left for backwards compatibility
2024-11-24 09:47:57 +01:00
Yaazkal
1d11cf2daf
setup: shellchek
2024-11-23 20:20:14 -05:00
Juan David Hurtado G
9aeb0ea10c
Merge pull request #643 from draga79/master
...
Adjust devfs_ruleset for hierarchical jails compatibility
2024-07-14 09:00:54 -05:00
yaazkal
09dcdd0ec7
[REF] clean code for PR#650
2024-07-13 17:29:30 -05:00
Juan David Hurtado G
b7b2efca12
Merge pull request #650 from em-winterschon/fbsd-140R-setup-bootstrap-fixes
...
diff patches applied to resolve errors on setup.sh and bootstrap.sh
2024-07-13 17:20:23 -05:00
Juan David Hurtado G
e441850f81
Merge pull request #665 from andrewhotlab/master
...
restore check_fib() call
2024-07-13 08:01:20 -05:00
Martin Stoyanov
4859b56050
fix for https://github.com/BastilleBSD/bastille/issues/661
2024-03-13 10:24:54 -05:00
Andrew
5faac5e7a4
restore check_fib() calls
...
This is needed to respect the "exec.fib" parameter in bastille "console" command, which has been deleted by commit b997be5
2024-01-18 19:55:58 +01:00
Eva Winterschön
19c8c021c4
diff patches applied to resolve errors on setup.sh and bootstrap.sh
2023-12-25 11:39:02 -08:00
Stefano Marinelli
6ca8ea578e
Adjust devfs_ruleset for hierarchical jails compatibility
...
Hierarchical jails inherit the parent jail's permissions and don't support setting devfs_ruleset to a non-zero value. This update adds a check to determine if the script is running inside a jail. If so, it sets devfs_ruleset to 0 to comply with this constraint.
2023-11-27 18:45:09 +01:00
Christer Edwards
3a4ebc63bb
Merge pull request #642 from BastilleBSD/support_lowercase
...
fix logic for rc.conf + bastille.conf ZFS check
2023-11-25 19:15:16 -07:00
Christer Edwards
c627b1f7fa
fix logic for rc.conf + bastille.conf ZFS check
2023-11-25 19:11:57 -07:00
Christer Edwards
dd60e7f175
add support for bastille_vnet devfs.rules in bastille setup
2023-11-25 17:19:57 -07:00
Christer Edwards
32d67aea40
Merge pull request #640 from BastilleBSD/eol_patch
...
fix for recent EOL support patch
2023-11-25 17:07:56 -07:00