Commit Graph

67 Commits

Author SHA1 Message Date
0df0bb4837 Swap the command order to allow for simple nftables support, via update-alternatives 2023-12-20 13:16:08 +00:00
a2bb0173b6 Made iptables-save logic, match the iptables-restore logic. 2023-12-20 13:14:34 +00:00
3e6142f098 Fix user and non-user facing typos 2022-06-29 07:17:11 -04:00
743bb67414 Fix check if firewalld is installed but not running 2022-06-08 21:30:43 -07:00
59989c888c Add extra check for firewalld module 2022-04-12 21:24:08 -07:00
4a1c447cd1 Fix typo 2022-04-09 13:16:55 -07:00
1028304a15 Re-factor function to detect external firewall 2022-04-09 13:05:28 -07:00
543107dfcd Fix typo in called function name https://github.com/webmin/webmin/issues/1608 2022-03-11 16:20:14 +02:00
f365761bd3 Use legacy command in init script if installed https://github.com/webmin/webmin/issues/1603 2022-02-27 16:55:38 -08:00
0e3b7e4d94 IPset code cleanup and better rule description 2021-12-27 13:27:31 -08:00
24b3715b95 Fix ipset display 2021-12-27 12:33:40 -08:00
dbf9c9c96b Recognize --match-set 2021-12-26 22:46:54 -08:00
d95e2caca9 If any fail2ban rules already exist before applying, re-merge them 2021-12-15 22:10:29 -08:00
0b0a9e5d39 Clean up version check code 2021-08-17 22:23:28 -07:00
f980085849 Handle old state flag if still in use https://www.virtualmin.com/node/70862 2021-06-05 16:07:08 -07:00
3fc3f564d1 Add the -w flag to avoid locks if available https://sourceforge.net/p/webadmin/bugs/5475/ 2021-04-13 12:47:51 -07:00
3db98c7a2d Fix editing of rules in direct mode https://www.virtualmin.com/node/69443 2020-07-10 16:45:48 -07:00
a2dc3f7124 Switch all calls to open() to explicitly open for read 2020-03-14 17:20:54 -07:00
f44988264c Parital version of fail2ban merge support 2020-02-16 22:47:29 -08:00
68bb6bc9f5 Refactor arg parsing for func to get rules 2019-09-11 22:48:54 -07:00
2e6020d28e Don't recognize flag that's not valid https://github.com/webmin/webmin/issues/948 2018-11-19 15:01:31 -08:00
c39a025f40 Use iptables-legacy-restore if available, for systems that also have the newer iptables commands https://github.com/webmin/webmin/issues/982 2018-11-10 10:37:01 -08:00
6ce3b10327 Add support for the conntrack module on 3.x kernels https://github.com/webmin/webmin/issues/434 2018-06-02 12:33:07 -07:00
f205843acd Merge pull request #768 from gnadelwartz/patch-1
default values if only firewall-lib is included
2018-01-14 14:36:23 -08:00
3b4a81f46a fix get_ipvx_version() 2018-01-13 21:13:29 +01:00
62fb3ea2ec Using module_name is more reliable and faster than pwd 2018-01-13 11:48:32 -08:00
cc49469a23 default values if only firewall-lib is included
provide default values if only firewall-lib is included, e.g. foreign_require(firewall, firewall-lib.pl) calls
2018-01-13 10:55:42 +01:00
389852ec6e Fix remote cluster commands https://www.virtualmin.com/node/54835 2017-12-29 17:29:44 -08:00
0bb6af725e Fix restore command use for testing https://sourceforge.net/p/webadmin/bugs/5060/ 2017-12-18 23:25:18 -08:00
a51799d5a7 Make version swap links work with any theme 2017-10-22 21:56:58 -07:00
53c638029e more de translation 2017-07-04 12:30:32 +02:00
4af91a52e5 implement IPv4 and IPv6 config options 2017-07-01 15:41:18 +02:00
5a4e9302e8 finished unifying 2017-07-01 14:24:02 +02:00
1db7c040c7 introduce new cgi parameter version=inet4|inet6 2017-06-28 12:07:42 +02:00
f75fa3586d start unify edit_rule.cgi save_rule.cgi 2017-06-27 17:22:17 +02:00
fdde2a308c fix perl path and firewall-lib missing ; 2017-06-27 11:21:01 +02:00
9646bd7a9b unify [a-c]*.cgi 2017-06-22 17:20:18 +02:00
6268f98320 firewall and firewall6 use same index.cgi 2017-06-22 16:43:01 +02:00
15ce5c5667 start unifying index.cgi, add maxlines feature to ipv4 2017-06-22 13:57:18 +02:00
44c083668b IPV4 use unified lin now :-) 2017-06-21 10:15:15 +02:00
397e133657 intial unified firewall-lib 2017-06-21 10:13:53 +02:00
2cd847d2a6 rename firewall-lib.pl firewall4-lib-pl 2017-06-20 12:38:28 +02:00
7ebd6ae4fe read in ipset sets 2017-06-17 19:37:11 +02:00
94e8f32e47 generalize args processing and localize src dest 2017-06-17 17:26:11 +02:00
771050ba7c display description for IP-Set Rules 2017-06-17 15:05:10 +02:00
e46c7ceb44 replace <b> with <strong> => no <br> in table row 2017-05-24 09:44:28 +02:00
5a21764743 Warn if saved config is invald 2017-05-12 17:10:15 -07:00
f5927981a6 keep -j CHAIN to statisfy iptables-restore 2017-05-10 14:28:54 +02:00
f003b029b6 hotfix for filter_chain: use only with direct 2017-05-10 10:07:05 +02:00
314489fae7 more secure matching against chains to filter out 2017-05-09 13:13:43 +02:00