-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luci-app-tor: Manage tor-hs onion services #6476
Conversation
49daf87
to
44dc14c
Compare
There is a Name fields that is later used by the tor-hs package when a keys folder created for a service. Ideally instead it should be a uci section name used. |
You may want to make things a little easier and more error-prone for localizers, by changing things like: _('<a href="https://openwrt.org/docs/guide-user/services/tor/hs" target="_blank">Tor Onion (Hidden) Services</a> are proxy tunnels to your local website, SSH and other services') to
|
That's a good idea. Still I feel that it would be better to keep as is for
two reasons:
* We may have a translated Wiki page
* This is more clear and less error-prone.
…On Thu, Aug 3, 2023 at 12:57 PM Stan Grishin ***@***.***> wrote:
You may want to make things a little easier and more error-prone for
localizers, by changing things like:
_('<a href="https://openwrt.org/docs/guide-user/services/tor/hs" target="_blank">Tor Onion (Hidden) Services</a> are proxy tunnels to your local website, SSH and other services')
to
_('%sTor Onion (Hidden) Services%s are proxy tunnels to your local website, SSH and other services').format('<a href="https://openwrt.org/docs/guide-user/services/tor/hs" target="_blank">', '</a>');
—
Reply to this email directly, view it on GitHub
<#6476 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADFODVIQ6XPOX7GOXOUK5DXTNY2HANCNFSM6AAAAAA2UEDYKQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Sergey Ponomarev <https://linkedin.com/in/stokito>,
stokito.com
|
Damn, it's already exists a PR with the app for the tor-hs #4805 |
Ok, I checked and looks like my PR would be better:
|
There is a reason that links should be formatted like this: safety/security is one of them. It also unburdens the language translators. |
@stangri I changed the link to: m = new form.Map('tor-hs', _('Tor Onion Services'),
_(
'Tor Onion (Hidden) Services are proxy tunnels to your local website, SSH and other services.<br/>' +
'For further information <a href="%s" target="_blank" rel="noreferrer">check the documentation</a>'
).format('https://openwrt.org/docs/guide-user/services/tor/hs')
); |
Great job! Maybe you'd also consider removing HTML tags from translatable resources too? |
@stangri I made as you you suggested and spitted. |
I simplified acl file and made an explicit page for hidden services because in future we will have other pages to configure Tor client options like excluded countries |
applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js
Outdated
Show resolved
Hide resolved
applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js
Outdated
Show resolved
Hide resolved
The tor-hs packages provides Tor Onion (Hidden) Services. This is a good option to bypass NAT and have stable access to a router. Later once the main Tor package gains a support of a Proxy/Bridge configuration. We can add this to the same luci app as a different view. Signed-off-by: Sergey Ponomarev <[email protected]>
@systemcrash I applied changes that you requested. |
OK, so is the tor-hs and tor service difference here important? Should the luci app be (re)named appropriately? Or can this also manage tor? |
In future we can add a new tab for the Tor routing configuration: SOCKS port, exclude countries etc. Maybe even we can allow to configure the Tor as VPN. |
Then the problem we have now is See e.g. pbr PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Stan Grishin <[email protected]>
PKG_VERSION:=1.1.1-7
LUCI_TITLE:=Policy Based Routing Service Web UI
LUCI_DESCRIPTION:=Provides Web UI for Policy Based Routing Service.
LUCI_DEPENDS:=+luci-base +jsonfilter +pbr
PKG_PROVIDES:=luci-app-vpnbypass luci-app-vpn-policy-routing |
Signed-off-by: Sergey Ponomarev <[email protected]>
ok, fixed in the 612738d |
Great, would you like to add the other fields?
|
Signed-off-by: Sergey Ponomarev <[email protected]>
I added the package version, release and maintainer. Everything else like License will be inherited from Luci. |
OK, and now for consistency: can you order those additions so they're like other Makefiles? e.g.
|
As far I know that should be enough: it has own version and maintainer but everything else same as for the luci. |
Thank you |
Thanks for your patience 😄 |
* luci-app-tor: Manage Onion services (tor-hs) The tor-hs packages provides Tor Onion (Hidden) Services. This is a good option to bypass NAT and have stable access to a router. Later once the main Tor package gains a support of a Proxy/Bridge configuration. We can add this to the same luci app as a different view. Signed-off-by: Sergey Ponomarev <[email protected]> (cherry picked from commit 3283cb2)
* luci-app-tor: Manage Onion services (tor-hs) The tor-hs packages provides Tor Onion (Hidden) Services. This is a good option to bypass NAT and have stable access to a router. Later once the main Tor package gains a support of a Proxy/Bridge configuration. We can add this to the same luci app as a different view. Signed-off-by: Sergey Ponomarev <[email protected]> (cherry picked from commit 3283cb2)
There was a PR #711 but it was focused on the Proxy configuration which is not fully yet supported by UCI.
The PR adds an ability to configure Tor Hidden Services as a good option to bypass NAT and have a stable access to a router.
Later once the main Tor package gains a support of a Proxy/Bridge configuration we can add this to the same luci app as a different view.
If you accept the PR please also check this small improvement openwrt/packages#21642
@ja-pa you created the tor-hs package so please check and leave your feedback