Skip to content
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

disable rpcbind #137

Open
jpylypiw opened this issue Oct 23, 2020 · 3 comments
Open

disable rpcbind #137

jpylypiw opened this issue Oct 23, 2020 · 3 comments

Comments

@jpylypiw
Copy link

Is your feature request related to a problem? Please describe.
I received a notice of a open rpcbind port on my fresh installed Debian 10.6 system yesterday.
The rpcbind port is normally used for nfs mounts. In hacks this port 111 is mostly used for ddos reflection attacks.

Describe the solution you'd like
I would like a variable which controls if the port is closed or not. The variable could set if the service is stopped and disabled or started and enabled.

Describe alternatives you've considered
An alternative would be to get a list of services you want to disable by default. Maybe there is another daemon like avahi-daemon or cups.

Additional context
If you need more information, just reply.

@jpylypiw jpylypiw changed the title Disable rpcbind disable rpcbind Oct 23, 2020
@rndmh3ro
Copy link
Member

Thanks for your issue, @jpylypiw!
More information on securing rpcbind:

Seems like a good idea to me. What do the others think? @chris-rock, @micheelengronne, @schurzi?

@schurzi
Copy link
Contributor

schurzi commented Oct 28, 2020

I like this proposal. And I am in strong favor of disabling the service (rather that introducing a firewall rule for the port). The rpcinfo service should serve almost no other purpose than nfs servers, and if you run these kind of services, you know that it should be started.

See also BSI: https://www.bsi.bund.de/EN/Topics/IT-Crisis-Management/CERT-Bund/CERT-Reports/HOWTOs/Open-Portmapper-Services/open-Portmapper-services_node.html

@jpylypiw
Copy link
Author

jpylypiw commented Mar 5, 2021

Thank you for commenting on the issue!
Is there any plan on implementing this?

Currently I solved this in a simple but effective manner using ansible:

    - name: Populate service facts
      service_facts:

    - name: "ensure rpcbind service is stopped and disabled"
      ansible.builtin.service:
        name: rpcbind
        enabled: false
        state: "stopped"
      when: "'rpcbind' in services"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants