Commit graph

65 commits

Author SHA1 Message Date
Franco Fichtner
b9bb07a0c9 security/tor: basic model style 2026-01-19 04:45:18 +01:00
Franco Fichtner
f240ec0fce plugins: run style-model 2025-07-02 10:46:07 +02:00
Franco Fichtner
1e4674a853 plugins: address 'adress' typo like in core 2025-01-13 13:56:34 +01:00
Monviech
499b8ff7ca security/tor: Remove sessionClose() 2025-01-10 10:22:26 +01:00
Mike Bishop
1beca17cb9
[os-tor] MyFamily (#3698) 2024-01-25 20:38:16 +01:00
Franco Fichtner
4fe8e8731c security/tor: remove unused macro import 2024-01-02 10:30:12 +01:00
Franco Fichtner
8e65fdc09f LICENSE: sync and fix Jos' mail address 2023-12-19 15:23:38 +01:00
Franco Fichtner
69bc636cd5 security/tor: add rexml; closes #3655 2023-11-06 09:14:28 +01:00
Ad Schellevis
39985f0c1d core changes - refactor intf_item.type usage as referred to in https://github.com/opnsense/core/issues/6181 2022-12-21 13:31:25 +01:00
Franco Fichtner
efade39416 License: pick up missing, remove vague attribution, sort better 2022-10-27 09:06:58 +02:00
Franco Fichtner
dc55acc417 security/tor: bump version 2022-10-19 09:06:41 +02:00
haarp
6d024bc0ac Enable hardware acceleration in TOR
On suitable hardware platforms, FreeBSD/OPNsense supports hardware acceleration for crypto. Verified with https://stackoverflow.com/a/28614159/5424487

TOR however is not set up to make use of this. This change should enable it. From https://www.freebsd.org/cgi/man.cgi?tor(1):

```
       HardwareAccel 0|1
	   If non-zero,	try to use built-in (static) crypto hardware
	   acceleration	when available.	Can not	be changed while tor is
	   running. (Default: 0)
```

Because TOR (or rather OpenSSL) will fall back to software crypto when hardware crypto is not available (unless `AccelName` is also set), i see no need to make this flag configurable in the web UI, making this a very trivial PR :)
2022-10-18 14:50:18 +02:00
Franco Fichtner
c9b9f10b9b security/tor: move to NAME_setup use
PR: https://github.com/opnsense/core/issues/5917
2022-09-06 08:51:26 +02:00
Fabian Franz
88259efe50 www/nginx, security/tor: non-hotfix relevant changes 2021-07-05 09:16:14 +02:00
Fabian Franz
b189f6ccbb security/tor: hotfix tor API endpoint 2021-07-05 09:16:14 +02:00
Franco Fichtner
c1f19dc659 security/tor: bump revision 2021-02-16 15:29:12 +01:00
Franco Fichtner
7fafce17c1 security/tor: close enough, eh?! 2021-02-11 09:12:33 +01:00
Franco Fichtner
7f12477cc3 plugins: small reformat 2020-11-09 12:02:35 +01:00
Franco Fichtner
18bc32f3b3 plugins: serious style sweep 2020-02-13 10:42:37 +01:00
Franco Fichtner
8f2805ef58 plugins: PSR12 for "s" and "w" 2019-10-07 21:40:59 +02:00
Fabian Franz BSc
8c264c89ce Add checkbox to disable dormant mode at startup (#1512) 2019-09-19 08:08:48 +02:00
Franco Fichtner
079882584a plugins: fix a few reported typos 2019-02-11 15:23:40 +01:00
Franco Fichtner
4ff026076a src: style sweep 2019-01-14 09:04:33 +01:00
Franco Fichtner
ef79eb0b87 plugins: fix lint-exec fallout, more than expected... 2019-01-02 11:26:11 +01:00
Franco Fichtner
37f044dec1 security/tor: iterator fix revision bump 2018-12-10 19:25:15 +01:00
Ad Schellevis
94c0467d80 missed some inc files for https://github.com/opnsense/core/issues/2670 2018-11-29 21:10:07 +01:00
Ad Schellevis
d3f7e3d397 MVC, change __items to iterateItems(), closes https://github.com/opnsense/core/issues/2670 2018-11-29 21:06:52 +01:00
Fabian Franz BSc
eef4adc554
security/tor: allow to enable directory page (#858) 2018-09-19 16:58:59 +02:00
Franco Fichtner
ccd89d956f */*: no more trailing slashes in navigation 2018-07-03 10:14:42 +02:00
Fabian Franz BSc
1c33f599d8
Update Makefile 2018-03-09 16:04:07 +01:00
Gijs Peskens
80a8487563 os-tor new exit settings (#567)
* Quick fixes to allow IPv6 and Outboundbinding

-allow specification of secondary ORPort (intended for IPv6)
-allow specification of 2 source addresses via source IP fields,
especially usefull for exits.
-default directory port to 9030 and set to mandatory (needed for relay)

All of the IPv6 fields use the same input verification as the HOST
field, should perhaps be changed?

* ...

* forgot torrc....

* Include manual config in torrc file

include optional /usr/local/etc/torrc.exitpolicy after after exit
policies set via interface before default reject to allow easy config of
custom exit policy.

* Cleanup for merge

* Scheduler KIST is Linux 2.6.39+ only, should not be enabled on BSD
https://www.torproject.org/docs/tor-manual.html.en

* Cleaning up torrc whitespaces, fixed regex

* fixing up things

* Do actual IPv4 validation (reject any invalid IPv4)

* Provide dropdown menu on general settings tab to allow choice in scheduler order and schedulers with following options:
-KISTLite,Vanilla (default)
-Vanilla,KISTLite
-KISTLite
-Vanilla

* fixed missing options

* whitespace

* removed comma from default option for scheduler

* Delete opnsense.tgz

* Adding settings for Exits to new Exit Settings tab.

* Fixed ExitACL to allow wildcards.

Removed usage of accept6/reject6 in favor of accept *4 and *6

Using 'any' for wildcard networks, which coincidentally won't break validation

* Moved all exit options back to under relay pane.

added some more options for exits

* whitespaces

* whitespace

* remove leftover unused exit.xml

exit.xml was leftover from approach with separate page for exit settings. 
Removing, is unused
2018-03-09 16:02:11 +01:00
Gijs Peskens
6488afa2dc os-tor Extra settings for source IP and IPv6 (#536)
* Quick fixes to allow IPv6 and Outboundbinding

-allow specification of secondary ORPort (intended for IPv6)
-allow specification of 2 source addresses via source IP fields,
especially usefull for exits.
-default directory port to 9030 and set to mandatory (needed for relay)

All of the IPv6 fields use the same input verification as the HOST
field, should perhaps be changed?

* ...

* forgot torrc....

* Include manual config in torrc file

include optional /usr/local/etc/torrc.exitpolicy after after exit
policies set via interface before default reject to allow easy config of
custom exit policy.

* Cleanup for merge

* Scheduler KIST is Linux 2.6.39+ only, should not be enabled on BSD
https://www.torproject.org/docs/tor-manual.html.en

* Cleaning up torrc whitespaces, fixed regex

* fixing up things

* Do actual IPv4 validation (reject any invalid IPv4)

* Provide dropdown menu on general settings tab to allow choice in scheduler order and schedulers with following options:
-KISTLite,Vanilla (default)
-Vanilla,KISTLite
-KISTLite
-Vanilla

* fixed missing options

* whitespace

* removed comma from default option for scheduler

* Delete opnsense.tgz
2018-02-13 17:12:20 +01:00
Fabian Franz BSc
fd15f0d7c5
net/frr and security/tor: remove sessionClose from search action (#548) 2018-02-06 21:09:37 +01:00
Fabian Franz
8487c4f32e
security/tor: Version bump to 1.5 2018-02-04 10:09:08 +01:00
Fabian Franz
4663727b47
add sessionClose to search and get actions in the Tor controllers 2018-02-04 10:05:20 +01:00
Fabian Franz
9ec4f5baa5
security/tor: DRY controller code and fix copyright statements
the new code does not contain any foreign code except the function left
in general as well as the servicecontroller.
2018-02-03 20:31:15 +01:00
Franco Fichtner
8ebb3bd465 */*: remove _opnsense_bootup_run
PR: https://github.com/opnsense/core/issues/1835
2018-01-30 10:22:18 +01:00
NOYB
5533702035 HTML Compliance - Attribute "type" on Element <script>
Warning: The type attribute is unnecessary for JavaScript resources.

HTML5: Edition for Web Authors
http://www.w3.org/TR/2014/REC-html5-20141028/scripting-1.html
The default, which is used if the attribute is absent, is "text/javascript".

The Script element
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type.
2018-01-21 13:35:06 +01:00
Franco Fichtner
4b8b435a88 security/tor: remove titles 2017-12-24 15:00:55 +01:00
Fabian Franz
fa08171943 security/tor: fix a bug in tor model; Add ContactInfo to tor relay; closes #385 2017-12-22 17:34:10 +01:00
Franco Fichtner
f695bc25ce */*: migrate _opnsense_bootup_run to simpler _var_script suffix
PR: https://github.com/opnsense/core/issues/1835
2017-12-18 18:28:10 +00:00
Fabian Franz, BSc
11d1881e4e
Merge pull request #390 from fabianfrz/tor_block_page
block page if no socket exists
2017-11-25 06:49:59 +01:00
Fabian Franz
bec6c91aca block page if no socket exists 2017-11-24 20:34:24 +01:00
Fabian Franz, BSc
79cd319ed4
Merge pull request #388 from opnsense/tor
security/tor: fix control socket issue
2017-11-23 17:17:05 +01:00
Fabian Franz
b4dae10a90 security/tor: fix control socket issue 2017-11-22 17:39:52 +01:00
Fabian Franz
40a8b619df
security/tor: bump version 2017-11-20 17:58:23 +01:00
Fabian Franz
774b2bce65
security/tor: fix help string, add memory limit; closes #384 2017-11-20 17:48:36 +01:00
Franco Fichtner
3d9195ec6e security/tor: visible name is visible already 2017-11-19 09:04:52 +01:00
Franco Fichtner
7bb9506630 */*: whitespace sweep 2017-10-29 13:04:13 +01:00
Fabian Franz
528e3674a2 fix tor ui 2017-10-28 15:22:59 +02:00