Re: 'tor' default port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you are not using that port for a different service, you can modify the type by using -m instead of -a in your command such as:

sudo semanage port -m -t tor_port_t -p tcp 9080

Even though 9080 is defined as oscp_port_t, if you  aren't actually using that service, you can modify the type with the above command.

Hope this helps.

-Mike




On Wed, Jul 21, 2021, 03:25 David Sastre <d.sastre.medina@xxxxxxxxx> wrote:
On my system (selinux-policy-3.14.6-39.fc33.noarch), the 9080/tcp port is already allocated for a different service:

$ sudo semanage port -a -t tor_port_t -p tcp 9080
ValueError: Port tcp/9080 already defined

$ sudo semanage port -l | grep 9080
ocsp_port_t                    tcp      9080

I would configure Tor to bind to the allowed ports instead

$ sudo semanage port -l | grep tor_
tor_port_t                     tcp      6969, 9001, 9030, 9050, 9051, 9150

HTH

On Sat, Jul 10, 2021 at 9:55 AM lejeczek <peljasz@xxxxxxxxxxx> wrote:
Hi guys

In selinux-policy-3.14.3-67.el8.noarch it works but
selinux-policy-3.14.3-72.el8.noarch prohibit 'tor' to bind
to default 9080(perhaps more)
Should this be a bug report or we individually should
generate rules locally?

many thanks, L.
_______________________________________________
selinux mailing list -- selinux@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to selinux-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/selinux@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
_______________________________________________
selinux mailing list -- selinux@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to selinux-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/selinux@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
_______________________________________________
selinux mailing list -- selinux@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to selinux-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/selinux@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux