From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, fifteen, updated. 73cb6627fc3d44ecade787f3fd80cc91d53a42f8 Date: Mon, 06 Jan 2014 13:11:26 +0100 Message-ID: <20140106121126.ED16621543@argus.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2208161241107590668==" List-Id: --===============2208161241107590668== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, fifteen has been updated via 73cb6627fc3d44ecade787f3fd80cc91d53a42f8 (commit) via d0f8bbc13e5d1158b86a58c1744a81e36c899aa8 (commit) via f4d5310decf8cd8f16d92bfe0457cc8fb87fc663 (commit) via f0dc00d80f0b97059df52b624e1a982a6dad5bcd (commit) via 9566c8f52cd96ae3dee000f72028eb80a31bca16 (commit) from f4b373993fb60809901e7c45d690f569b0d8867c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 73cb6627fc3d44ecade787f3fd80cc91d53a42f8 Author: Alexander Marx Date: Mon Jan 6 05:58:40 2014 +0100 SQUID: fixed length of FAKE_REFERRER field commit d0f8bbc13e5d1158b86a58c1744a81e36c899aa8 Author: Alexander Marx Date: Mon Jan 6 05:19:44 2014 +0100 Firewall: reaktivated targetport-check. now there's an errromessage in ca= se of wrong portnumber commit f4d5310decf8cd8f16d92bfe0457cc8fb87fc663 Author: Alexander Marx Date: Mon Jan 6 05:03:40 2014 +0100 Firewall: deleted subnet from source and target addresses if manually used commit f0dc00d80f0b97059df52b624e1a982a6dad5bcd Author: Alexander Marx Date: Sun Jan 5 21:45:54 2014 +0100 Firewall: fix last commit. commit 9566c8f52cd96ae3dee000f72028eb80a31bca16 Author: Alexander Marx Date: Sun Jan 5 16:00:47 2014 +0100 Firewall: Bugfix - when creating a rule which leads to an error, the rule= action (Accept/Drop/Reject) is set to default ----------------------------------------------------------------------- Summary of changes: html/cgi-bin/firewall.cgi | 29 ++++++++++++++--------------- html/cgi-bin/proxy.cgi | 4 ++-- 2 files changed, 16 insertions(+), 17 deletions(-) Difference in files: diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 29b70b4..b313d4b 100755 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -659,6 +659,8 @@ sub checktarget if (&General::validport($_)){ push (@values,$_); }else{ + $errormessage=3D$Lang::tr{'fwdfw err tgt_port'}; + return $errormessage; } } } @@ -1426,6 +1428,11 @@ sub newrule open (CONN1,"/var/ipfire/red/local-ipaddress"); my $redip =3D ; close(CONN1); + if (! $fwdfwsettings{'RULE_ACTION'} && $fwdfwsettings{'POLICY'} eq 'MODE2'){ + $fwdfwsettings{'RULE_ACTION'}=3D'DROP'; + }elsif(! $fwdfwsettings{'RULE_ACTION'} && $fwdfwsettings{'POLICY'} eq 'MODE= 1'){ + $fwdfwsettings{'RULE_ACTION'}=3D'ACCEPT'; + } $checked{'grp1'}{$fwdfwsettings{'grp1'}} =3D 'CHECKED'; $checked{'grp2'}{$fwdfwsettings{'grp2'}} =3D 'CHECKED'; $checked{'grp3'}{$fwdfwsettings{'grp3'}} =3D 'CHECKED'; @@ -1548,6 +1555,11 @@ sub newrule } }=09 } + # Split manual source and target address and delete the subnet + my ($sip,$scidr) =3D split("/",$fwdfwsettings{$fwdfwsettings{'grp1'}}); + if ($scidr eq '32'){$fwdfwsettings{$fwdfwsettings{'grp1'}}=3D$sip;} + my ($dip,$dcidr) =3D split("/",$fwdfwsettings{$fwdfwsettings{'grp2'}}); + if ($scidr eq '32'){$fwdfwsettings{$fwdfwsettings{'grp2'}}=3D$dip;} &Header::openbox('100%', 'left', $Lang::tr{'fwdfw addrule'}); &Header::closebox(); &Header::openbox('100%', 'left', $Lang::tr{'fwdfw source'}); @@ -1833,23 +1845,9 @@ END END =20 &Header::closebox; - - $checked{"RULE_ACTION"} =3D (); - foreach ("ACCEPT", "DROP", "REJECT") { - $checked{"RULE_ACTION"}{$_} =3D ""; - } - - if($fwdfwsettings{'updatefwrule'} eq 'on') { - $checked{"RULE_ACTION"}{$fwdfwsettings{'RULE_ACTION'}} =3D "checked"; - } elsif ($fwdfwsettings{'POLICY'} eq 'MODE1') { - $checked{"RULE_ACTION"}{"ACCEPT"} =3D "checked"; - } elsif ($fwdfwsettings{'POLICY'} eq 'MODE2') { - $checked{"RULE_ACTION"}{"DROP"} =3D "checked"; - } - + $checked{"RULE_ACTION"}{$fwdfwsettings{'RULE_ACTION'}} =3D 'CHECKED'; print <
-
@@ -2027,6 +2025,7 @@ END +
END diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index acb4f97..6f78deb 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -1678,8 +1678,8 @@ print <$Lang::tr{'advproxy fake referer'}: 3D'*' - - + +
hooks/post-receive -- IPFire 2.x development tree --===============2208161241107590668==--