Commit Graph

49 Commits

Author SHA1 Message Date
Jamie Cameron
f44988264c Parital version of fail2ban merge support 2020-02-16 22:47:29 -08:00
Jamie Cameron
68bb6bc9f5 Refactor arg parsing for func to get rules 2019-09-11 22:48:54 -07:00
Jamie Cameron
2e6020d28e Don't recognize flag that's not valid https://github.com/webmin/webmin/issues/948 2018-11-19 15:01:31 -08:00
Jamie Cameron
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
Jamie Cameron
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
Jamie Cameron
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
Kay Marquardt
3b4a81f46a fix get_ipvx_version() 2018-01-13 21:13:29 +01:00
Jamie Cameron
62fb3ea2ec Using module_name is more reliable and faster than pwd 2018-01-13 11:48:32 -08:00
Kay Marquardt
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
Jamie Cameron
389852ec6e Fix remote cluster commands https://www.virtualmin.com/node/54835 2017-12-29 17:29:44 -08:00
Jamie Cameron
0bb6af725e Fix restore command use for testing https://sourceforge.net/p/webadmin/bugs/5060/ 2017-12-18 23:25:18 -08:00
Jamie Cameron
a51799d5a7 Make version swap links work with any theme 2017-10-22 21:56:58 -07:00
Kay Marquardt (Gnadelwartz)
53c638029e more de translation 2017-07-04 12:30:32 +02:00
Kay Marquardt (Gnadelwartz)
4af91a52e5 implement IPv4 and IPv6 config options 2017-07-01 15:41:18 +02:00
Kay Marquardt (Gnadelwartz)
5a4e9302e8 finished unifying 2017-07-01 14:24:02 +02:00
Kay Marquardt (Gnadelwartz)
1db7c040c7 introduce new cgi parameter version=inet4|inet6 2017-06-28 12:07:42 +02:00
Kay Marquardt (Gnadelwartz)
f75fa3586d start unify edit_rule.cgi save_rule.cgi 2017-06-27 17:22:17 +02:00
Kay Marquardt (Gnadelwartz)
fdde2a308c fix perl path and firewall-lib missing ; 2017-06-27 11:21:01 +02:00
Kay Marquardt (Gnadelwartz)
9646bd7a9b unify [a-c]*.cgi 2017-06-22 17:20:18 +02:00
Kay Marquardt (Gnadelwartz)
6268f98320 firewall and firewall6 use same index.cgi 2017-06-22 16:43:01 +02:00
Kay Marquardt (Gnadelwartz)
15ce5c5667 start unifying index.cgi, add maxlines feature to ipv4 2017-06-22 13:57:18 +02:00
Kay Marquardt (Gnadelwartz)
44c083668b IPV4 use unified lin now :-) 2017-06-21 10:15:15 +02:00
Kay Marquardt (Gnadelwartz)
397e133657 intial unified firewall-lib 2017-06-21 10:13:53 +02:00
Kay Marquardt (Gnadelwartz)
2cd847d2a6 rename firewall-lib.pl firewall4-lib-pl 2017-06-20 12:38:28 +02:00
Kay Marquardt (Gnadelwartz)
7ebd6ae4fe read in ipset sets 2017-06-17 19:37:11 +02:00
Kay Marquardt (Gnadelwartz)
94e8f32e47 generalize args processing and localize src dest 2017-06-17 17:26:11 +02:00
Kay Marquardt (Gnadelwartz)
771050ba7c display description for IP-Set Rules 2017-06-17 15:05:10 +02:00
Kay Marquardt (Gnadelwartz)
e46c7ceb44 replace <b> with <strong> => no <br> in table row 2017-05-24 09:44:28 +02:00
Jamie Cameron
5a21764743 Warn if saved config is invald 2017-05-12 17:10:15 -07:00
Kay Marquardt
f5927981a6 keep -j CHAIN to statisfy iptables-restore 2017-05-10 14:28:54 +02:00
Kay Marquardt
f003b029b6 hotfix for filter_chain: use only with direct 2017-05-10 10:07:05 +02:00
Kay Marquardt
314489fae7 more secure matching against chains to filter out 2017-05-09 13:13:43 +02:00
Kay Marquardt
e9a5ea229c firewall-lib.pl regex to filter out chains
add regex filter to filter out chains not managed by firewall, i.e. fail2ban,
in get_iptables_save()
2017-05-07 20:58:31 +02:00
Jamie Cameron
fdcfb5495e Make source/dest IP fields nicer https://www.virtualmin.com/node/51219 2017-03-22 17:33:38 -07:00
Jamie Cameron
207570d6c6 Reading from a command is read-only by definition https://sourceforge.net/p/webadmin/bugs/4647/ 2015-09-27 09:29:31 -07:00
Jamie Cameron
81ec930529 On SuSE, add directives indicating that commands are one-off 2013-10-19 09:57:29 -07:00
Jamie Cameron
dbd3250861 use formal params 2013-07-14 22:55:28 +08:00
Jamie Cameron
b076700e32 Handle " and ' in comments
https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3426769&group_id=17457
2011-10-21 15:42:11 -07:00
Jamie Cameron
1a424d2d0a Remove useless defined statements 2010-07-17 18:22:38 -07:00
Jamie Cameron
05a0fd1942 Physdev module support 2010-06-26 01:03:08 -07:00
Jamie Cameron
cbbae5ecad Fix iptables parsing 2010-06-14 00:19:02 -07:00
Jamie Cameron
0da2423867 Handle use of -I in save file 2010-06-06 12:03:24 -07:00
Jamie Cameron
f4214ccbfa Support --physdev-is-bridged flag, seen on Fedora 12 2009-09-02 13:09:37 -07:00
Jamie Cameron
9dbd5db2c9 Fix permissions 2009-07-20 23:42:32 -07:00
Jamie Cameron
f4f297f0c8 Supress stderr output 2009-04-28 20:16:56 +00:00
Jamie Cameron
95fd0c9fd1 Disallow rules on virtual interfaces 2009-03-22 21:40:02 +00:00
Jamie Cameron
e9382d8714 Use new module 2009-03-03 21:30:27 +00:00
Jamie Cameron
e557ad44a2 Handle comments using --comment with spaces and - in them 2008-11-05 21:06:12 +00:00
Jamie Cameron
fc1c1b243f Initial checkin of Webmin 2007-04-12 20:24:50 +00:00