1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-24 20:27:22 +01:00

53 Commits

Author SHA1 Message Date
Vadim Kurland
9a1d02f1ee 2009-05-09 vadim <vadim@vk.crocodile.org>
* ipt.cpp (main): Now that we use the same platform name for
iptables on linux, ipcop, endian, oneshield and secuwall, there is
no need in policy/nat/routing compiler classes for ipcop.
2009-05-09 23:56:12 +00:00
Vadim Kurland
2276f0bfce 2009-05-09 vadim <vadim@vk.crocodile.org>
* platform/iptables.xml.in: Unified support for different iptables
appliances: configuration will require platform "iptables" and
host os that corresponds to the chosen appliance. This matches
support for Secuwall and is easier to maintain than separate
platform-os pairs for each appliance.
2009-05-09 23:04:23 +00:00
Vadim Kurland
fea4b8a892 2009-04-15 vadim <vadim@vk.crocodile.org>
* ipcopAdvancedDialog.cpp (ipcopAdvancedDialog::ipcopAdvancedDialog):
Integration with IPCOP, Endian and OneShield firewall apliances
(all based on linux/iptables). This sets generate file name to
"rc.firewall.local", destination directory on the firewall to
"/etc/rc.d/" and activation command to "/etc/rc.d/rc.firewall
restart".  Provided resource files for ipcop, endian and oneshield
platforms and os define default parameters, including path to
iptables and other command line tools. Generated script performs
minimal environment setting, because everything is supposed to be
set up by the aplpiance itself. Iptables commands are put in the
standard chains INPUT/OUTPUT/FORWARD, with user-defined chans
created as required. At this time policy and NAT rules work. Rules
added by fwbuilder are activated by the standard appliance
firewall script rc.firewall after all IPCOP rules are added and
before all hooks. This means rules created by fwbuilder do not
replace rules added by the appliance, but work together with
those. Prolog and epilog user-defined sections work as
well. Prolog is always added on top of the rules generated by
fwbuilder. Prolog and epilog sections can include any kind of
shell commands, not only iptables rules. Two new firewall
templates are provided: one for IPCOP/Endian firewall with two
interfaces (br0 is GREEN and eth1 is RED) and another for the
appliance with three interfaces (additionally eth2, as ORANGE).

* ipt.cpp (main): implemented feature request #2454447 "Standard
options for startup-script". Script generated by fwbuilder now
accepts standard arguments "start" and "stop". Running the script
with no argument is equivalent to "start" for backwards
compatibility. Running script with argument "stop" resets iptables
tables and chains and sets all to default policy DROP (beware!).
2009-04-15 19:32:34 +00:00
Vadim Kurland
4f49df2ea4 2009-04-10 vadim <vadim@vk.crocodile.org>
* ipt.cpp (dumpScript): fixed bug #2356131: "Iptables-restore
option broken for multiple policy sets". Compiler inserted
redundant line "echo COMMIT" to the iptables script if
iptables-restore was used and there were no rules in the mangle
table.
2009-04-11 00:53:50 +00:00
SVN User
a6379f7420 fix for bug 2550074 on windows 2009-02-01 09:30:49 +00:00
Vadim Kurland
d591159ebf 2009-01-31 Vadim Kurland <vadim@vk.crocodile.org>
* ipt.cpp (processPolicyRuleSet): fixed bug #2550074: "Automatic
	rules for filter table included twice in iptables". If user had
	two policy ruleset objects marked as "top" rule set, then
	automaitc rules were added twice.
2009-01-31 08:40:25 +00:00
Vadim Kurland
0516743140 bug #535146 2009-01-30 04:54:03 +00:00
Vadim Kurland
31d4f59bef bug #2477775 2008-12-31 01:46:42 +00:00
Vadim Kurland
1ac206288e 2008-12-15 vadim <vadim@vk.crocodile.org>
* ipt.cpp, ipfw.cpp, pf.cpp, iosacl.cpp: changes for FR #2431602:
support for rulesets configured as "dual address family", that is,
rulesets that should be compiled for both ipv4 and ipv6.

* RuleSetDialog.cpp (RuleSetDialog::applyChanges): implemented
feature request #2431602: "Feature request: Unified
policies (IPv4/v6)". RuleSet object now has two variables that
define which address family it should be compiled for - ipv4 or
ipv6. It is possible to have both set, in which case the same
ruleset will be compiled for both address families.
2008-12-16 05:03:50 +00:00
Vadim Kurland
b193a80e3c 2008-12-03 Vadim Kurland <vadim@vk.crocodile.org>
* iosacl.g (certificate): fixed bug #2334007: "Problem parsing
Cisco config". Parser now recognizes IOS configuration lines
"certificate", "ip community-list", "controller
... description". These lines are recognized and ignored, they
should not stop parser from processing the rest of the
configuration.

* ipt.cpp (main): fixed bug #2378672: "fwb 3.0.2 build 676
iptables script is not executable". Generated .fw file should have
executable permissions.
2008-12-04 04:53:43 +00:00
Vadim Kurland
0572a9850f * ipt.cpp (dumpScript): fixed bug 2356131 "Iptables-restore option
broken for multiple policy sets". If firewall was configured to
use iptables-restore to activate policy and if it had two or more
policy rule sets, compiler used to put "echo COMMIT" line at the
bottom of each ruleset. This was incorrect, iptables-restore
expects only one COMMIT line at the end of each table.
2008-11-28 18:05:31 +00:00
Vadim Kurland
c5e41ed161 * ipt.cpp (dumpScript): Explicitly use "\n" instead of endl to
avoid implicit conversion to "\r\n" on Windows (generated script
is for iptables which can only run on Linux, so it is safe to use
"\n" instead of endl).
2008-10-16 02:55:32 +00:00
Vadim Kurland
c710c1003d attribute "mangle_table_only" for iptables policy rulesets 2008-10-12 04:03:22 +00:00
Vadim Kurland
0f992a8c4a bug 2148378 2008-10-12 00:57:05 +00:00
Vadim Kurland
fa1fe47f4a using QString for fwbobjectname 2008-10-10 04:31:38 +00:00
Vadim Kurland
79735969ff codecs 2008-10-10 04:06:02 +00:00
Vadim Kurland
51b2320023 using Utf8 codec to encode command line parameters for compiler 2008-10-10 03:35:30 +00:00
Vadim Kurland
444cc9c5b8 fwb_ipt works with non-ascii fw object names on Mac 2008-10-10 03:18:25 +00:00
Vadim Kurland
636b9d3050 fwb_ipt works 2008-10-10 02:38:08 +00:00
Vadim Kurland
0988ba765d experimental: fwb_ipt uses QT for QApplication and command line. Change after r589 2008-10-10 02:29:51 +00:00
Vadim Kurland
5d7af145af input field for path to scp in preferences dialog 2008-10-09 05:08:41 +00:00
Vadim Kurland
b89be74709 more fixes for bug 2051629 group with dns names are handled as empty 2008-08-22 15:13:00 +00:00
Vadim Kurland
d24c42edd7 fixed bug 2054755 ] Duplicate Chain 2008-08-18 03:05:45 +00:00
Vadim Kurland
0d1c8ce533 bug 2051629 ] group with dns names are handled as empty 2008-08-16 03:15:39 +00:00
Vadim Kurland
699800dd12 patch for gcc 4.3 2008-08-03 16:47:47 +00:00
Vadim Kurland
60bec65e08 removed dependency on QT in compilers 2008-08-02 04:59:32 +00:00
Vadim Kurland
0c039b2030 add build num to "Generated with..." comment 2008-07-18 20:10:45 +00:00
Vadim Kurland
eb24dfcb85 fixed bug with missing COMMIT after mangle table rules 2008-07-18 19:16:06 +00:00
Vadim Kurland
80b389eaf6 fixed bug in fwb_ipt for activation with iptables-restore 2008-07-16 20:13:05 +00:00
Vadim Kurland
299e475926 path to config.h and other headers 2008-07-13 01:26:39 +00:00
Vadim Kurland
990be44f07 support for attr top_rule_set in Policy, NAT and Routing 2008-07-07 18:29:33 +00:00
Vadim Kurland
a59280a185 support for ipv6 in fwb_iosacl; support for attribute ipv6 in RuleSet dialog 2008-07-07 02:32:38 +00:00
Vadim Kurland
cf2622da34 turn on svn Id tags 2008-07-05 17:40:12 +00:00
Vadim Kurland
bd91f85ec0 tcpmss in mangle table; record iptables version in generated script 2008-07-03 22:37:08 +00:00
Vadim Kurland
149cc77c6c fwb_ipt works when interface has only ipv6 address 2008-06-25 21:21:28 +00:00
Vadim Kurland
be22270411 fwb_ipt checks both ipv4 and ipv6 addresses of interfaces 2008-06-25 21:12:48 +00:00
Vadim Kurland
09bb086f84 merging id-experimemt r233:HEAD 2008-06-09 01:52:36 +00:00
Vadim Kurland
99f23add7d adding comment char to errors included in generated scripts 2008-06-07 04:40:30 +00:00
Vadim Kurland
3e10a9b6f5 Support for UserService in compiler for iptables 2008-06-06 02:08:54 +00:00
Vadim Kurland
ece0df1e07 compilers for iptables and pf find branch rulesets even if they belong to a different fw 2008-06-05 20:41:25 +00:00
Vadim Kurland
f6d0d3f66c compilers include error and warning messages in generated scripts and config files 2008-06-05 18:44:13 +00:00
Vadim Kurland
a880dd58ef fwb_ipt uses Compiler::isRootRuleSet 2008-05-30 22:24:34 +00:00
Vadim Kurland
0457709b97 support for multiple rule sets in PF 2008-05-30 22:00:45 +00:00
Vadim Kurland
1e245de1bf compiler for iptables works with multiple rule sets 2008-05-30 00:13:13 +00:00
Vadim Kurland
122300a7bf ipv6 in fwb_ipt 2008-05-27 15:37:35 +00:00
Vadim Kurland
79551708e2 ipv6 support in compiler for iptables 2008-05-22 18:12:16 +00:00
Vadim Kurland
ab5c914d81 renaming getAddressObjectInetAddrMask to getInetAddrMaskObjectPtr 2008-05-20 01:11:40 +00:00
Vadim Kurland
568c0ca1b6 getting rid of getAddress() and getNetmask methods, using getAddressPtr() and getNetmaskPtr(). Tested and debugged GUI and compiler for iptables 2008-05-19 02:58:20 +00:00
Vadim Kurland
f5cebe98e2 merge -r62:HEAD from branch inet-addr-changes 2008-04-26 19:13:45 +00:00
Vadim Kurland
7d237a01f9 Merging branch inet-addr-changes -r62:HEAD 2008-04-13 18:44:45 +00:00