diff --git a/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/IndexController.php b/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/IndexController.php index b2e0739a0..c5a04e4cf 100644 --- a/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/IndexController.php +++ b/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/IndexController.php @@ -48,4 +48,10 @@ class IndexController extends \OPNsense\Base\IndexController $this->view->exitpolicy = $this->getForm("acl_exitpolicy"); $this->view->pick('OPNsense/Tor/general'); } + + public function infoAction() + { + $this->view->title = gettext("The Onion Router - Information"); + $this->view->pick('OPNsense/Tor/info'); + } } diff --git a/security/tor/src/opnsense/mvc/app/models/OPNsense/Tor/Menu/Menu.xml b/security/tor/src/opnsense/mvc/app/models/OPNsense/Tor/Menu/Menu.xml index 9dd1e7b47..a39ace8ad 100644 --- a/security/tor/src/opnsense/mvc/app/models/OPNsense/Tor/Menu/Menu.xml +++ b/security/tor/src/opnsense/mvc/app/models/OPNsense/Tor/Menu/Menu.xml @@ -2,6 +2,7 @@ + diff --git a/security/tor/src/opnsense/mvc/app/views/OPNsense/Tor/info.volt b/security/tor/src/opnsense/mvc/app/views/OPNsense/Tor/info.volt new file mode 100644 index 000000000..1029e376f --- /dev/null +++ b/security/tor/src/opnsense/mvc/app/views/OPNsense/Tor/info.volt @@ -0,0 +1,74 @@ +{# + + Copyright (C) 2017 Fabian Franz + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + +#} + + + + + +
+
+ + + + + + + + +
{{ lang._('Hidden Service Name') }}{{ lang._('Hostname') }}
+
+
diff --git a/security/tor/src/opnsense/service/scripts/tor/setup.sh b/security/tor/src/opnsense/service/scripts/tor/setup.sh index c7680cb15..1af7a235b 100755 --- a/security/tor/src/opnsense/service/scripts/tor/setup.sh +++ b/security/tor/src/opnsense/service/scripts/tor/setup.sh @@ -3,5 +3,8 @@ mkdir -p /var/db/tor mkdir -p /var/log/tor mkdir -p /var/run/tor +chown _tor:_tor /var/db/tor +chmod 700 /var/db/tor + # required to access the pf device for nat /usr/sbin/pw groupmod proxy -m _tor