-
Notifications
You must be signed in to change notification settings - Fork 20
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
I got locked out by this role #64
Comments
First of all, the use of DebOps at the start of the run gets the IP address from which you are connecting, it's then used by But I assume that it was at some later time, when |
Just got locked out as well, is there a way to disable SSH blocking completely? Or whitelist all hosts? @drybjed |
The issue is not that the There are a few ways to deal with this. Add the debops.core role to your playbook (explanation of how it should be used). This role gathers the IP address of the Ansible Controller and passes it to Alternatively, in the inventory, specify a list of Ansible Controller IP addresses or subnets using the ferm__ansible_controllers: [ '192.0.2.0/24' ] The role will use that variable to configure firewall rules that allow these hosts access to the SSH service. You can also start using the debops.sshd role, which uses Or, you can create firewall rules for SSH manually: ferm__rules:
- name: 'accept-ssh'
type: 'accept'
weight: '00'
saddr: [ '192.0.2.0/24' ] |
Thanks a lot for the speedy and very detailed answer! 👍 😄 - role: "debops.ferm"
vars:
ferm__ansible_controllers: ['0.0.0.0/0'] # Disable ferm ssh access filter
tags: [ 'role::ferm' ]
ferm__dependent_rules:
- '{{ docker__ferm__dependent_rules }}' |
@kamshak Wery well. However be aware, that if you use the |
I see, thanks :) |
I don't think it should ever happen, but I was locked out of my system when using this role.
I'm basically trying to
but that leaves me unconnectable.
I was lucky enough to be able to have physical access so I flushed iptables and stopped ferm. Then things worked again.
The text was updated successfully, but these errors were encountered: