Commit Graph

235 Commits

Author SHA1 Message Date
Michael Tremer
7cbdd31d6e graphs.pl: Fix HTML syntax error
The missing ' caused that a different URL was called

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-04-11 14:26:57 +01:00
Michael Tremer
183b23b5ca DNS: Show DNSSEC status on index page if deavtivated
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-04-02 19:48:20 +01:00
Michael Tremer
65c3b7c913 Revert "BUG11278: enable creation from subnets of internal networks"
This reverts commit ff6cc71107.

This patch causes that no new networks can be created and
an error message is shown that the created network is the GREEN
network which is incorrect.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-03-22 11:15:44 +00:00
Michael Tremer
a249ccd2e4 Improve graphs
The graphs are using an iframe and PNG images where the resolution
did often not fit and the browser had to resize the image. That
led to blurred fonts and hard to read graphs.

This patch increases the size of the box and the image. With that
higher resolution resizing should not be too much of an issue, but
since the sizes of the iframe and image have been aligned should
not even be necessary.

Reported-by: Marcel Lorenz <marcel.lorenz@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-03-15 13:45:05 +00:00
Michael Tremer
3713af1e27 network-functions.pl: Add tests for the new equals function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-01-11 17:18:46 +00:00
Michael Tremer
8f23ce8e53 network-functions.pl: Fix code formatting
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-01-11 17:09:42 +00:00
Alexander Marx
ff6cc71107 BUG11278: enable creation from subnets of internal networks
In firewallgroups it was not possible to create new networks that are subnets of
IPFire internal networks. Now this is possible for all internal networks.

Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-01-11 17:05:53 +00:00
Alexander Marx
4f857eea41 BUG11278: Cleanup function for network check
Deleted some code which is also used in another function

Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-01-11 17:05:12 +00:00
Michael Tremer
5edc06b701 Remove IPAC stuff
This is unused for a very very very long time and serves
no purpose any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-10-02 15:13:55 +01:00
Heino Gutschmidt
ecc9c73bb5 BUG11131: fix errormessage when more ipsec subnets defined
When having more than one subnet in an ipsec connection it is not
possible to create a new openvpn static subnet.

Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
Signed-off-by: Heino Gutschmidt <heino.gutschmidt@managedhosting.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-06-03 16:19:49 +01:00
Michael Tremer
03306ff6a2 general-functions.pl: Allow underscores in domain names
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-05-03 22:50:53 +01:00
Alexander Marx
b00797e260 BUG10963: implement a better email verification
We now check all allowed chars in the address before the @ sign.
The domainpart after the '@' sign is just checked for valid chars, so that user@ipfire is valid, too

Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-11-19 12:53:28 +00:00
Alexander Marx
f770b72899 BUG10940: remove leading zeros in ip address
in firewallgroups (hosts) an error was created when using ip adresses
like 192.168.000.008. Now all leading zeros are deleted in
firewallgroups and in the firewall itself when using single ip addresses
as source or target.

Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-11-09 17:32:59 +00:00
Arne Fitzenreiter
01d61d1549 network_functions.pl: fix ip_address_in_network for x86_64
calculation of last address must use only 32bit of inverted netmask.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2015-09-20 13:03:34 +02:00
Michael Tremer
883c5453d9 network-functions: Add check_subnet()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-25 21:55:40 +01:00
Matthias Fischer
b6adeb235d graphs.pl: bugfixes regarding rrdtool
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-06-18 13:14:14 +02:00
Michael Tremer
5428eeeeaa url-filter: Use upstream proxy when downloading blacklists
Fixes #10690

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-06-16 14:39:26 +02:00
Stefan Schantl
dfbee171cc geoip-functions: Adjust for new flag-icons and usage of "unknown" icon. 2015-05-04 20:13:52 +02:00
Stefan Schantl
b013822b99 Rename Locale::Country to Locale::Codes::Country in various scripts.
The new Locale-Country version needs to be loaded and used by specifing
Locale::Codes::Country since an upstream API change. Adjusting various perl
scripts to use the module in the proper way again.
2015-04-22 18:18:38 +02:00
Stefan Schantl
e6c4f090b6 Merge branch 'next-geoip' into core-90-geoip 2015-04-15 17:10:49 +02:00
Alexander Marx
5c3b3bd8e1 vpn-statistic: fix alignment of graph legend for n2n graphs 2015-04-10 17:20:43 +02:00
Stefan Schantl
93bfe63d55 Merge branch 'seventeen-geoip' into next-geoip 2015-03-15 11:38:45 +01:00
Michael Tremer
a71beeb234 lang.pl: Always fall back to English
Fixes #10769
2015-03-10 00:06:12 +01:00
Stefan Schantl
1dcd87157d geoip-functions.pl: A collection of functions dealing with GeoIP. 2015-02-08 18:23:01 +01:00
Michael Tremer
3906cf7e85 Merge remote-tracking branch 'amarx/vpn-statistic1' into next 2015-01-13 17:37:18 +01:00
Stefan Schantl
cc26ba71a1 header.pl: Increase maximum allowed size of hashes.
The "getcgihash" function only allowed hashes with a maximum size of 512kb, which
was to small for the new geoip-block.cgi. As a result of this some form data
were cut-off and couldn't be processed correctly.
2015-01-03 20:22:05 +01:00
Stefan Schantl
cebb1b7cb1 general-functions.pl: Add function to get full country name.
This function will return the full name a country specified by
it's country shortcut. It also will provide some additional names
which are not handled by the perl locale module but are parts of
ISO 3166.
2015-01-03 20:15:28 +01:00
Alexander Marx
c9ac8b8052 vpn-statistics: change graphs and datatypes of rrd 2014-10-21 07:29:06 +02:00
Alexander Marx
0d0ee70f3b Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into vpn-statistic1 2014-09-26 12:53:05 +02:00
Alexander Marx
5795fc1b55 vpn-statistic: added new statistic page for OpenVPN Roadwarrior 2014-09-18 16:29:10 +02:00
Michael Tremer
f5fe98fead Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-2.x into install-raid 2014-09-16 20:45:35 +02:00
Michael Tremer
499e7fc33f general-functions.pl: Fix perl coding error 2014-09-06 18:45:43 +02:00
Michael Tremer
7bfaaa0d35 general-functions.pl: Fix syntax error 2014-09-06 18:45:39 +02:00
Michael Tremer
9f64c06d94 general-functions.pl: Subroutine getnetworkip() accepted multiple arguments 2014-09-06 18:45:35 +02:00
Michael Tremer
c14203248c general-functions.pl: Fix perl coding error 2014-09-06 18:44:50 +02:00
Michael Tremer
da05e07629 general-functions.pl: Fix syntax error 2014-09-04 11:13:41 +02:00
Michael Tremer
6a2a62cf25 general-functions.pl: Subroutine getnetworkip() accepted multiple arguments 2014-09-03 22:23:04 +02:00
Michael Tremer
b02ba841b3 webif: Find correct language file when locale is in format xx_XX.utf8 2014-08-30 21:10:32 +02:00
Axel Gembe
8ed77b039f general-functions.pl: validdomainname misinterprets RFC1035
The function validdomainname checks that each part of a domain name is at least
2 characters in length, but RFC1035 only makes a restriction on a "label" being
at most 63 characters in length. This change allows reverse DNS zones like
2.168.192.in-addr.arpa to be added to the DNS forward configuration, which was
incorrectly prevented before.

Signed-off-by: Axel Gembe <ago@multipixs.com>
2014-08-11 10:51:18 +02:00
Michael Tremer
4e9a2b5732 general-functions.pl: Replace lots of broken network code.
The state of some code especially in general-functions.pl
is in such a bad shape and faulty.
This is a first step that replaces some of the network
functions with those who have been tested and work for
undefined inputs.

The old functions have been left in place as stubs
and must be removed at some time.
2014-07-27 22:46:20 +02:00
Arne Fitzenreiter
b21618696d webif: hide main-menu if gpl was not accepted. 2014-07-16 17:26:14 +02:00
Stefan Schantl
4cb523d462 general-functions.pl: Add function to get the used interface on red. 2014-07-10 12:35:05 +02:00
Michael Tremer
d6c50a8591 Merge remote-tracking branch 'amarx/10538' into next 2014-07-05 22:42:32 +02:00
Alexander Marx
1be398ae38 General-functions.pl: rewrite getnetworkip without inet_aton 2014-06-19 12:11:47 +02:00
Alexander Marx
ab92dc0c84 General-functions.pl: rewrite IpInSubnet replace inet_ntoa 2014-06-19 12:11:24 +02:00
Alexander Marx
29f238b239 BUG 10538: Routes may only added once and should not be part of an internal network 2014-06-16 09:45:59 +02:00
Michael Tremer
b3b33f8586 modem-lib.pl: Check if character device exists before trying to connect to it. 2014-06-12 16:44:07 +02:00
Arne Fitzenreiter
d4af74b78a modem-status: add more ttyUSB and ttyACM ports. 2014-06-06 10:45:59 +02:00
Michael Tremer
03d0b8c7e8 Merge branch 'master' into next
Conflicts:
	doc/language_issues.nl
	doc/language_issues.tr
2014-05-09 01:31:43 +02:00
Alexander Marx
7490b22e9d Firewall: BUG 10528 - allow subnets greater than /8 2014-04-23 15:08:47 +02:00