Commit Graph

2488 Commits

Author SHA1 Message Date
Peter Müller
7c507f3d5b Tor: allow enforcing distinct Guard relays or countries
In order to make deanonymisation harder, especially high-risk Tor users
might want to use certain Guard relays only (for example operated by
people they trust), enforce Tor to use Guard relays in certain countries
only (for example countries with very strict data protection laws or
poor diplomatic relations), or avoid Guard relays in certain countries
entirely.

Since Tor sticks to sampled Guards for a long time (usually within the
range of months), restricting those is believed to cause less harm to a
users' anonymity than restricting Exit relays, since their diversity of
a generic Tor user is significantly higher.

This patch extends the Tor CGI for restricting Guard nodes to certain
countries or relays matching certain fingerprints.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-25 17:20:51 +00:00
Peter Müller
5efe8957a5 Tor: allow multiple countries to be selected for Exit relays
This extends the functionality of the Tor CGI in order to be able to
select multiple countries for possible Exit relays, which is - in terms
of anonymity - less worse than limiting all Tor circuits to a single
country.

For example, a user might want to avoid Exit relays in more than one
country, and permit Tor to use Exit relays elesewhere, and vice versa.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-25 17:20:14 +00:00
Michael Tremer
1a3c53556e ipinfo.cgi: Align flag icon
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-17 16:04:10 +00:00
Arne Fitzenreiter
a832b5c2e6 Merge remote-tracking branch 'origin/master' into next
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-11-13 18:21:20 +00:00
Michael Tremer
11b46800a5 Update contributors
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-13 11:13:08 +00:00
ummeegge
1c612d9e32 OpenVPN: Add start of static routes in client N2N
Fixes: #12529

- If a client N2N configuration will be imported into IPFire systems,
a line will be added which calls the --up script to restart the
static route initscript. Since this is IPFire specific, i will only be
added via import on IPFire system.
- Deleted unneeded line in CLIENTCONF section.
- Added description to SERVERCONF section.

Signed-off-by: ummeegge <erik.kapfer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-13 11:12:39 +00:00
Peter Müller
358e42ffbf langs: add changed strings to German and English translations
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-11 16:01:51 +00:00
Peter Müller
4dc8de6f22 ipinfo.cgi: display AS information as well
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-11 16:01:49 +00:00
Michael Tremer
65ef52a335 DNS: Make YouTube configurable for Safe Search
When safe search is enabled, it is being enabled on YouTube, too.

This creates problems in some scenarios like schools where politics
is being tought as well as other subjects that might be censored by
YouTube (i.e. election TV spots).

Therefore it is now possible to exclude YouTube from Safe Search
but keep it enabled for the search engines.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-11 12:08:21 +00:00
Michael Tremer
1e2c442c9e samba: Add support for custom configuration changes
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-09 18:43:15 +00:00
Stefan Schantl
07e42be978 Adjust CGI files to work with latest location-function.pl changes.
Fixes #12515.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-09 14:07:21 +00:00
Matthias Fischer
743808bb8e dns.cgi: Cosmetics and customized translations
Updated/deleted redundant, unused or missing translation strings for dns.cgi

Affected:  'dns', 'dns title', 'dns server', 'dns servers'

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-07 13:27:25 +00:00
Peter Müller
1367738dfc location-block.cgi: avoid unnecessary line break
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:31:44 +00:00
Peter Müller
c63ea6cf49 tor.cgi: look up Tor relay country codes using libloc
Tor provides a function to resolve a relay's IP address into a country
code by taking advantage of a (heavily outdated) GeoIP database shipped
with it.

We should consequently use libloc for doing this, since it can be
confusing if those results differ from active connections in the
connection tracking CGI (where we _use_ libloc) and such tasks are why
we invented libloc in the first place. :-)

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:31:14 +00:00
Michael Tremer
1f3f2d676e IPsec: Fix showing tunnels as connecting when they are established
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-27 18:38:03 +00:00
Michael Tremer
13cbb92ad4 hostapd: Allow to make Management Frame Protection optional
WPA3 mandates MFP, but many clients do not support it at all.

Therefore this can now be set to optional and clients will
fall back to WPA2.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-27 11:56:30 +00:00
Michael Tremer
f832c7581f hostapd: Add WPA3 authentication to the web UI
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-27 11:55:57 +00:00
Michael Tremer
a63fe65a2f samba: Make changing shares taking effect immediately
The action was performed after the table has already been
rendered which required reloading the page to show a new
share.

This has now been moved to the top so that new changes
will be shown immediately.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-27 11:37:03 +00:00
Michael Tremer
82e2a565bb Update credits.cgi
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-23 10:08:07 +00:00
Steffen Klammer
badd010f86 modified proxy.cgi to make it possible that all subnets declared in "network access control" will be translated from cidr to subnet notation in proxy.pac
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-19 09:25:53 +00:00
Michael Tremer
42772dcb4f samba: Allow rewriting configuration from CLI
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:19 +01:00
Michael Tremer
e768aab5ad samba: Remove unused INTERFACES setting
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:19 +01:00
Michael Tremer
8468cf0489 samba: Use the same delete icon as everywhere else
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:19 +01:00
Michael Tremer
36bcdbf7e4 samba: Refactor user management
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:19 +01:00
Michael Tremer
1bd80edc1d samba: Set a useful default workgroup
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
8649e14977 samba: Remove tbl class from join form
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
f94e17c7c2 samba: Replace security setting with server role
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
8936e2d21b samba: Change share template to something more safe
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
2fa655aec6 samba: Add recycle extension, too
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
bd28bfd9d3 samba: Drop choice to enable/disable wide links/UNIX extensions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
03e7f9719b samba: Enable support for Apple's OS X by default
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
2d952a57d8 samba: Use full page width for all tables
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
1aa4ecb130 samba: Refactor status area
There is no need to double-wrap the status output in tables.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
98e11f47ac samba: Refactor shares section
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
bdd97e5a50 samba: Remove unused anchors
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
211105897d samba: Remove more legends
These are not helpful and any documentation should be living in the wiki

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
e92b5a0435 samba: Replace save icon with a button and remove legend
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:18 +01:00
Michael Tremer
42ebeaa88e samba: Re-indent global settings table
No functional changes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
e1e399fb10 samba: Replace icons on top of page with buttons
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
d83d30d630 samba: Add tbl class to all <table>s
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
83ae629a72 samba: Drop refresh page hack
This is very invalid HTML, very often inserted into spaces where
it should not be, and the page does not even need to be reloaded
after any action has been performed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
9e329f75d6 samba: Refactor service status
No functional changes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
8dc8788bee samba: Remove un-exported password sync option
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
c13b64f736 samba: Remove move unused network variables
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
86832d8955 samba: Remove OS level
Samba will chose this automatically and the documentation advises
against changing the default.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
7dea42ae84 samba: Drop PDC default configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
eef84767b0 samba: Remove preferred master option
This is no longer relevant since we cannot run in domain
mode any longer.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
4f00cf381f samba: Remove local master option
It is not a good default to withdraw samba from the race of becoming
the local master browser. There is no reason why it couldn't be.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
70000894e9 samba: Drop support for being PDC for Windows NT domains
This is outdated, and nobody uses it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00
Michael Tremer
d7129fb107 samba: Drop interfaces configuration
It is virtually impossible to limit samba to these interfaces only.

Therefore we add a static list of all interfaces of the local network.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-13 17:06:17 +01:00