Skip to content

Unable to connect to the API #42

Answered by hnimminh
WEBudoGT asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @WEBudoGT
Seem like the line of port for firewall has been removed when you edit inventory file.

you can add back the port 8443 and rerun playbook with tag -t libre
ansible-playbook playbooks/deployment.yml -i inventories/production -l "<machine-name>" -t "libre"

or you can just do simple command to solve this immediately:
nft add rule inet LIBREFW INBOUND tcp dport 8443 ip saddr <your-ip-address>counter accept

example
nft add rule inet LIBREFW INBOUND tcp dport 8444 ip saddr 1.1.1.1/32 counter accept

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@WEBudoGT
Comment options

Comment options

You must be logged in to vote
3 replies
@WEBudoGT
Comment options

@WEBudoGT
Comment options

@hnimminh
Comment options

Answer selected by hnimminh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants