5884 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
28a9933fd9
networks: Configure wireless BSSID, band, channel
Select the frequency band (2.4 GHz vs. 5 GHz) is a prerequisite for
selecting the channel.  Channel selection is useful primarily as follow:

- Restrict to a particular access point when multiple access points use
  the same SSID (AP name) but are available on different frequencies.

- Configure for a particular ad-hoc mesh network.

- Setup multiple access points from a single FreedomBox on multiple
  channels to maximize the throughput and number of simultaneous
  clients.

Ability to specify a particular BSSID will help associate with a
particular access point when multiple access points use the same
SSID (AP name).  This is also makes it slightly harder to trick clients
into connection to a malicious device.  Also configuring BATMAN-adv
seems to require setting a particular BSSID.
2016-07-21 19:23:31 -04:00
Sunil Mohan Adapa
a9ca2d7cc3
networks: Add 'disabled' IPv4 method, i18n
Disabled IPv4 method allows not configuring IPv4 entirely on network
interfaces as required in some cases.

Also, make sure to internationalize all the choices form values in
network module.  There were missed before.
2016-07-21 19:23:27 -04:00
Sunil Mohan Adapa
04babacafa
networks: Ability to configure generic interfaces
After batman-adv kernel driver takes over the Wi-Fi network interface
and provides a bat0 interface, this interface shows up as device type
'batadv'.  This type is not recognized by network manager is dealt with
as a generic device.  Configuring this device for IPv4/IPv6 in
auto/shared mode etc. works fine.  So, add the ability to configure
generic interfaces.
2016-07-21 19:23:20 -04:00
James Valleroy
561c7c1e6b
Make minor changes to status log page 2016-07-21 18:00:53 -04:00
Hemanth Kumar Veeranki
15a336613b
Fixed PEP8 standards and other specified changes 2016-07-21 17:58:14 -04:00
Hemanth Kumar Veeranki
8d5ef42b73
Created a Status Log page, Linked to 500 Template
Issue #451
2016-07-21 17:58:08 -04:00
James Valleroy
806d258663
tor: Remove ownCloud reference from HS help text 2016-07-16 14:14:32 -04:00
Sunil Mohan Adapa
038fec97a6
tor: Ability to run regular relays
- Allow users to run regular relays.  In addition to that users will be
  able to turn them into bridge relays.  Like before, by default,
  relaying is enabled and the relay type bridge relay.

- Show obfs3/4 transport ports as needing firewall port forwarding only
  if bridge relay is enabled.

- Remove pluggable transports configuration from configuration when
  bridge rely is disabled.

- Improve description message for relays and bridge relays.
2016-07-16 13:43:29 -04:00
Sunil Mohan Adapa
70001c841f
tor: Minor improvements
- Minimize loading of Augeas since it takes time.

- Make some methods private

- PEP8 fixes
2016-07-16 13:43:23 -04:00
Sunil Mohan Adapa
2afae80dd8
security: Recommend/notify about restricted logins
- Do stricter matches when editing configuration file.  Earlier
  mechanism would match comments etc.

- Move action methods to module core from views.

- During first boot, notify users that console login is restricted and
  that they can changed that from security settings.

- Recommend enabling conosle login restrictions.  Add message about why
  console restrictions are important.

- Show title in security module.
2016-07-09 22:42:20 +05:30
James Valleroy
82c27aabf3
first_boot: Enable restricted console logins 2016-07-09 22:41:53 +05:30
James Valleroy
8e96e828d9
security: New module to control login restrictions 2016-07-09 22:41:21 +05:30
Masoud Abkenar
d7fed5fcda Translated using Weblate (Persian)
Currently translated at 37.7% (220 of 583 strings)
2016-07-08 19:51:09 +02:00
Sunil Mohan Adapa
13dd81713e
tor: Warn hidden service users about anonymity
- When Tor hidden service is enable along with regular web server, it is
  possible to de-anonymize the server.

- When Tor hidden service is enabled along with Tor relay, the hidden
  service can be de-anonymized by sending large traffic observing
  traffic patterns published by Tor relay.  See:
  https://trac.torproject.org/projects/tor/ticket/8742

Warn users not to rely on Tor hidden service functionality for strong
anonymity.  We can remove this warning when implement a mechanism to
disable most other services when Tor hidden service is enabled.
2016-07-08 23:19:23 +05:30
James Valleroy
38382ec09c
tor: Add option to toggle bridge relay 2016-07-08 23:19:16 +05:30
James Valleroy
1c98d1272f
tor: Use single command to get status
Merge get_ports and get_hs into get_status.
2016-07-08 23:19:09 +05:30
ikmaak
9e9693c990 Translated using Weblate (Dutch)
Currently translated at 100.0% (583 of 583 strings)
2016-07-08 12:00:37 +02:00
Masoud Abkenar
6cc8eb2d59 Translated using Weblate (Persian)
Currently translated at 36.8% (215 of 583 strings)
2016-07-07 12:45:08 +02:00
Masoud Abkenar
53b4bc20c9 Translated using Weblate (Persian)
Currently translated at 23.4% (137 of 583 strings)
2016-07-04 16:37:03 +02:00
Mikkel Kirkgaard Nielsen
ec3f051a49 Translated using Weblate (Danish)
Currently translated at 99.8% (582 of 583 strings)
2016-07-04 16:37:03 +02:00
Sunil Mohan Adapa
022e356bcc
New locale for Indonesian (id) 2016-07-04 20:05:38 +05:30
Алексей Докучаев
589013a366 Translated using Weblate (Russian)
Currently translated at 99.8% (582 of 583 strings)
2016-07-04 06:45:41 +02:00
John Doe
e40ea6eb09 Translated using Weblate (Turkish)
Currently translated at 100.0% (583 of 583 strings)
2016-07-03 19:39:10 +02:00
Sunil Mohan Adapa
759eb35edb
Update all translations with latest messages 2016-07-01 07:47:13 +05:30
Sunil Mohan Adapa
a3592ef84c
New locale for Persian (fa) 2016-07-01 07:42:07 +05:30
Masoud Abkenar
a95d02f12a
ikiwiki: Improve description. Fixes #487 2016-07-01 07:29:51 +05:30
Sunil Mohan Adapa
7a5167e6bd
tests: Minor PEP8 fixes 2016-06-19 16:20:07 -04:00
Sunil Mohan Adapa
9ac37465dd
disks: New module to manage disks
- Show free space of currently mounted partitions.  Should help with
  people running out of free space and ending up with non-working
  system.  In future, this module could emit more visible messages.

- Show and allow expanding root partition to help people who have
  written FreedomBox images to higher capacity SD cards.  Very selective
  and restrictive checks to minimize problems.

- Automated tests to ensure expansion works in non-trivial senarious.
2016-06-19 16:20:01 -04:00
Ingrid Yrvin
ec3739c942 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (586 of 586 strings)
2016-06-18 16:02:47 +02:00
James Valleroy
6fe7802df1
Release 0.9.4 2016-06-14 17:13:46 -04:00
James Valleroy
bb2b21ea69
Release 0.9.3 2016-06-12 10:19:36 -04:00
Sunil Mohan Adapa
7a9a4cd861
packages: Switch to installing with apt-get
- Use action helper so that Plinth can run unprivilaged and action
  script can run as root.

- Use Status-Fd feature of apt-get to report progress.  Don't report
  much detail.

- Capture all stderr of the apt-get process and present it only in case
  of failure.

- Remove package installation using PackageKit.  Remove dependency on
  PackageKit.

- Merge --setup package installation with regular package installation.

This should fix the following problems:

- PackageKit throws errors when APT encounters an error and later
  corrects them and proceeds well.  This is reported upstream but not
  fixed.

- PackageKit does not install recommends by default and there is no easy
  way to tell it to do so.

- In some rare cases, PackageKit could get stuck for interactive input
  even though interactive flag is set to false.

- PackageKit does not work without network manager connections. (Could
  have been mitigated by altering packagekit configuration).

- PackageKit glib library leaks file descriptors after each operation.
  This leads to running out of fds during long running refresh
  operations such as OpenVPN setup.  (This should have subsided by not
  checking package install with the new setup mechanism.)]

Known issues:

- In development mode, inside action scripts the python modules are
  always loaded from system path and not development directory.

- With PackageKit it is possible to run multiple operations
  simultaneously.  Others would wait while the first is being
  installed.  With new implementation, the others error out unable to
  obtain lock.
2016-06-11 12:11:40 -04:00
Sunil Mohan Adapa
5f548a9e36
packages: Make modules declare managed packages
This can then be used by a privileged action to verify that packages
requested for installation are in fact valid.  This slightly improves
security of those privileged actions.
2016-06-11 12:11:32 -04:00
Sunil Mohan Adapa
4f634b86e2
networks: Better explain auto/shared connections 2016-06-07 08:12:25 -04:00
Sunil Mohan Adapa
4865a64d2b
networks: Allow shared connections to have IPs
Setting IP address on a shared connection can be usefull.  This tells
Network Manager to pick the provided network range (inferred from
IP/netmask) instead of something in 10.42.x.x.  This can be used to give
predicatable IPs, static IPs and to make large static
reservations (instead of the default 8).
2016-06-07 08:12:18 -04:00
Sunil Mohan Adapa
ccf217f2f7
pagekite: Fix regression not showing description
After the recent cleanup, pagekite no longer shows description before
installation.  Only after installation does it show the insturctions
about why it is needed.  Also in the description {box_name} is not
substituted and there are incorrect escape sequences.

Revert this earlier change that causes these regressions.
2016-06-07 07:19:30 -04:00
Sunil Mohan Adapa
5a0e2c0b91
pagekite: Move app to system configuration
This app rightfully belongs in system configuration section instead of
the application section.  It is setup once and not used regularly.  It
is not service but enabler for other services.
2016-06-07 07:19:24 -04:00
Sunil Mohan Adapa
fbb2f4c3df
dynamicdns: Move app to system configuration
This app rightfully belongs in system configuration section instead of
the application section.  It is setup once and not used regularly.  It
is not service but enabler for other services.  Closes: #441.
2016-06-07 07:19:04 -04:00
Sunil Mohan Adapa
ad61028a3a
menu: Sort menu items for all locales
Currently menu items are shown in alphabetical order in applications and
no clear order in system configuration.  This is done using static
weights for menu items based on English names that does not work for
other locales.

Sorting can't be done at the time of adding menu items as users of
multiple locales may use the interface at the same time.

Implement a sorting mechanism based on existing order as well as labels
of menu item.  This allows the flexiblity of grouping menu items in
future as it may be need for system configuration.  In case of help menu

Remove sort order for all modules except for help menu as here we want
that specific order.
2016-06-06 17:44:59 -04:00
Allan Nordhøy
1264413a63 Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.1% (581 of 586 strings)
2016-06-05 22:24:08 +02:00
Sunil Mohan Adapa
4fe0067f01
firewall: List a service only if relevant
If a service does not have corresponding firewall ports, don't list it
on firewall page.  Add a simple if condition in the template.
2016-06-05 15:44:55 -04:00
Sunil Mohan Adapa
6d08468933
firewall: List firewall services alphabetically
When firewall services are list, the order changes for every run of
plinth and is not predictable making it hard to lookup a service.  List
services alphabetically to fix the problem.
2016-06-05 15:44:53 -04:00
Sunil Mohan Adapa
4c30d5e8a5
firewall: Don't infer firewall service name
Now that all firewall ports are explicitly specified for all services,
it is safer to remove automatic infering of firewall service name from
systemd service name.  This Closes: #468 where firewall status is
being shown for 'software upgrades'.
2016-06-05 15:44:50 -04:00
Sunil Mohan Adapa
f245e7e763
firewall: Explicitly specify ports for services
It has become confusing to reuse the name of the service for name of the
systemd unit file and firewall port.  This has lead to the regression
that quassel, mumble and minetest can no longer open firewall ports.
Fix this by explicitly specifying ports all services.
2016-06-05 15:44:41 -04:00
Sunil Mohan Adapa
ff53e7d653
diagnostics: Don't run on modules not yet setup
Closes: #248.
2016-06-04 08:13:46 +05:30
Sunil Mohan Adapa
47596c47ff
xmpp: Fix display of domain name in template 2016-06-03 18:53:50 -04:00
Sunil Mohan Adapa
3d5661dc60
action_utils: PEP8 fixes and minor changes 2016-06-03 16:22:06 -04:00
Sunil Mohan Adapa
d3f386733f
diagnostics: Use curl instead of wget for URLs
wget does not seem to support interface scoping for IPv6 addresses.  For
example, http_proxy=http://[fe80::babe:ff:ffff:babe%eth0]:8118/ . Curl
supports this.

This fixes most of the failures for IPv6 related addresses.  Hide the
last failure as there does not seem to be a proper fix from OS level:
when using link local addresses, if a hostname is resolved to IPv6 link
local address, it is not scoped to that interface.  It can't properly be
used by any tool then.
2016-06-03 16:22:02 -04:00
Sunil Mohan Adapa
97b77e3719
diagnostics: Implement scoping for IPv6 addresses 2016-06-03 16:21:59 -04:00
Sunil Mohan Adapa
288a9e7bf9
privoxy: Fix issue with privoxy diagnotic tests
The URL is always https:// so we only need https proxy and nothing else.
2016-06-03 16:21:53 -04:00