1444 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
eb72c8cbf5
ssh: Show port forwarding information
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:54:36 -07:00
Sunil Mohan Adapa
3a0b2cbc01
bind: Show port forwarding information
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:54:30 -07:00
Sunil Mohan Adapa
4bfb1accfb
i2p: Show port forwarding information
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:54:24 -07:00
Sunil Mohan Adapa
ad5b34ed35
Common template for showing port forwarding information
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:54:12 -07:00
Sunil Mohan Adapa
683b70976f
repro: Show port forwarding information
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:54:05 -07:00
Sunil Mohan Adapa
b92082a530
ejabberd: Include Bosh port 5280 in port forwarding information
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:53:57 -07:00
James Valleroy
1cee306dcb
tahoe: Show port forwarding info
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:53:49 -07:00
James Valleroy
a3adf134b9
matrixsynapse: Show port forwarding info
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:53:37 -07:00
James Valleroy
b2d5646291
minetest: Fix flake8 error
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:53:24 -07:00
James Valleroy
d63a4e5b3c
openvpn: Show port forwarding info
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:53:12 -07:00
James Valleroy
bf63ebaa96
service: Show port forwarding info when available
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:53:05 -07:00
James Valleroy
3cc16fc23e
apps: Add port forwarding info
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-13 15:52:40 -07:00
Sunil Mohan Adapa
532a450ef7
i2p: Rename test fixtures to avoid a minor warning
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:17:01 +05:30
Sunil Mohan Adapa
e9adeed958
users: Convert tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:15:16 +05:30
Sunil Mohan Adapa
2595e309ab
tor: Convert tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:15:07 +05:30
Sunil Mohan Adapa
a1064ec9ff
storage: Convert tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:15:00 +05:30
Sunil Mohan Adapa
e53e120dbb
pagekite: Convert tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:14:52 +05:30
Sunil Mohan Adapa
0cacb21983
names: Convert tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:14:22 +05:30
Sunil Mohan Adapa
54b684dbaf
letsencrypt: Convert tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:14:12 +05:30
Sunil Mohan Adapa
a195fdca57
diaspora: Convert tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:14:01 +05:30
Sunil Mohan Adapa
377a50e213
config: Convert tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:13:43 +05:30
Sunil Mohan Adapa
1644b30605
bind: Convert tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:13:34 +05:30
Sunil Mohan Adapa
2d832ace36
backups: Convert tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-05-12 17:13:22 +05:30
Sunil Mohan Adapa
c4c6480f10
apps: Promote/demote menu items for disabled apps too
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-07 16:58:18 -07:00
Sunil Mohan Adapa
7a2fbd4439
sharing: Always keep menu item in promoted state
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-07 16:58:15 -07:00
Sunil Mohan Adapa
8ebde0dc90
tor: Fix issue with promoting/demoting menu item
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-07 16:58:01 -07:00
Sunil Mohan Adapa
c0bb1282b8
transmission: Fix issue with promoting menu item
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-07 16:57:58 -07:00
James Valleroy
893bd2b4d6
apps: Separate enabled and disabled apps
- Add 'secondary' flag to menu items.

- Mark apps as 'secondary' when disabled.

- Extend TemplateView for apps index.

- Add card-container for disabled apps.

Closes #1309

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-05-07 16:57:55 -07:00
Sunil Mohan Adapa
56d511368d
i2p: Convert router configuration tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 16:51:58 -07:00
Sunil Mohan Adapa
97ed7fe144
i2p: Minor flake8 and yapf fixes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 16:51:54 -07:00
Sunil Mohan Adapa
dca91da571
i2p: Update license headers for consistent formatting
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 16:51:51 -07:00
LoveIsGrief
f7d9c9eff5
i2p: Include default favorites after installation
The default favorites might change and we might have to update the list but for
now they were extracted from a clean router.config saved by the i2p daemon.

1528 - augeas for router.config

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 16:51:19 -07:00
LoveIsGrief
1c9ad9f953
i2p: Use augeas for editing the router.config
It's cleaner and less hacky, however we still overwrite the default favs because
they aren't written to the file by i2p until a change is made manually in the
frontend.

We still need to recreate the list of default and add them manually.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 16:50:40 -07:00
Sunil Mohan Adapa
c13e9a4227
i2p: Don't enable proxies on external zone
- Only web interface (protected by sign-on) should be available on external
  interfaces.

- Proxies should only be available on internal interfaces. Otherwise, they will
  become open proxies on the Internet which might have implications for the
  FreedomBox user.

- Update description to convey that we are not opening SOCKS proxy but only
  HTTP, HTTPS and IRC proxies.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 15:38:43 -07:00
Sunil Mohan Adapa
8267c1156b
i2p: Disable the daemon before editing configuration
- This is likely to yield better consistency as the daemon also edits the
  configuration files.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 15:02:30 -07:00
Sunil Mohan Adapa
1e8a39e690
i2p: Update firewalld service descriptions
- HTTP/HTTPS proxies are not SOCKS proxies. SOCKS proxies are not recommended by
  the project. https://geti2p.net/en/docs/api/socks

- Write more detailed description in firewalld style.

- Rename the files for firewalld styling and removing 'socks'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 15:02:27 -07:00
Sunil Mohan Adapa
ce9eacb751
i2p: Convert unit tests to pytest style
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 15:02:24 -07:00
Sunil Mohan Adapa
a73f002ed6
i2p: flake8 and yapf fixes
- Run isort and yapf.

- Better docstrings.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 15:02:20 -07:00
LoveIsGrief
66b161b986
i2p: Enable application
Closes: #1528 (i2p: Improve and enable the application)

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 15:02:03 -07:00
LoveIsGrief
f40ecaa155
i2p: Add HTTP(S) and IRC ports to firewall
Enable or disable the ports with the firewalld.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 15:01:59 -07:00
LoveIsGrief
5c26c28f96
i2p: Open HTTP(S) and IRC ports on all interfaces on install
I2P has to be restarted in order for the changes to take effect.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 15:01:50 -07:00
LoveIsGrief
eb28f47053
i2p: Add helper to modify the tunnel config
We will want to set the 'interface' property of certain tunnels to 0.0.0.0 and
the handle the rest with the firewall. This is just prep to do so.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-29 14:58:38 -07:00
James Valleroy
0018e14cab
firewall: Show ports details
Show port types and numbers.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-28 20:59:37 -07:00
James Valleroy
e5081018a3
firewall: Get service ports details
Add interface to get port types and numbers for a service.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-28 20:59:15 -07:00
narendrakumar.b
51fc87f1bc
letsencrypt: Provide link to configure domain if not configured
Added hyper link to /plinth/sys/config as per #1355.

Closes: #1355.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-26 11:52:17 -07:00
Joseph Nuthalapati
a2d07fef0b
storage: Use udisks to list disks and df for disk space utilization
- Fetch disk information for all disks using udisks
- Call df as superuser so that all disks are listed (udisks doesn't need sudo)
- Improved implementation to check if device is removable

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-04-14 11:27:43 -04:00
Sunil Mohan Adapa
7a89474cb6
i2p: Disable app until further fixes are done
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-01 17:34:01 -07:00
Sunil Mohan Adapa
fe03b4f34f
i2p: Review and update views
- Update the description of the app. Remove link to web interface at it is now
  in clients list.

- Add showing running status of the service.

- Use the new style for showing subsubmenus under the description of the
  application.

- Don't use frames to show the interface. Let users launch that interface in a
  new window instead.

- Use class based views for I2P service views.

- Update description of the I2P service views.

- Minor styling updates.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-01 17:33:58 -07:00
Sunil Mohan Adapa
6e5a45a9b3
i2p: Review and cleanup action script
- Remove unneeded actions: start, stop, restart, is-running and is-enabled.

- Remove short form parameter passing for add-favorite action. Mostly for
  consistency and avoid confusion. Actions are not expected to be used by
  regular users.

- Rename Apache configuration from: i2p-plinth.conf to i2p-freedombox.conf

- Fix issue with adding favorites when none already present. This eliminates
  failure during first time installation for I2P.

- Fix issue with incorrect new lines while editing favorites.

- Minor fixes in Apache configuration.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-01 17:33:55 -07:00
Sunil Mohan Adapa
9ceec9c8d8
i2p: Add main web interface to list of clients
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-04-01 17:33:51 -07:00