Re: 'tor' default port

Michael Radecker <[email protected]> Wed, 21 Jul 2021 06:22:58 -0700
Newsgroups gmane.linux.redhat.fedora.selinux
Message-ID <CAALvd=usTFExFLXqRbua65Y_MbcycrkSOg2Jk+CpVMF9AfPh2A@mail.gmail.com>
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 <[email protected]> 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 <[email protected]> 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 -- [email protected]
>> To unsubscribe send an email to [email protected]
>> 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/[email protected]
>> Do not reply to spam on the list, report it:
>> https://pagure.io/fedora-infrastructure
>>
> _______________________________________________
> selinux mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> 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/[email protected]
> Do not reply to spam on the list, report it:
> https://pagure.io/fedora-infrastructure
>

_______________________________________________
selinux mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure