Coder Social home page Coder Social logo

Comments (6)

Teglgaard avatar Teglgaard commented on May 10, 2024 1

I found the issue I believe. The issue is when the firewall is not setup to accept all as it normally is in the beginning. So the issue stops when the firewall is reset to the default.

from ansible-role-firewall.

geerlingguy avatar geerlingguy commented on May 10, 2024

This role is intended to be used in lieu of ufw, and although you may be able to get ufw and iptables + this role working together correctly, I would rather not try to support the mix... Since iptables works on all the linux environments I work with, I try to continue using it for everything rather than ufw where it's available.

My guess is that what happened here was ufw was redirecting a port, or accepting connections, then when this role runs the first time, and drops those rules, the connection is no longer available.

from ansible-role-firewall.

geerlingguy avatar geerlingguy commented on May 10, 2024

Please feel free to reopen if I'm missing what's going on here... one other note is that I haven't fully tested the role with 14.04 (only 12.04), so maybe there's something different about 14.04 causing an issue.

from ansible-role-firewall.

seanf avatar seanf commented on May 10, 2024

(I don't think I can re-open the issue.)

I don't normally use Ubuntu, but I have a feeling ufw might have been on by default (in 14.04).

Perhaps to make the firewall role more robust, to avoid conflicts, it could disable ufw and ensure that the default rules are ACCEPT before flushing iptables. Losing connectivity is never fun.

from ansible-role-firewall.

geerlingguy avatar geerlingguy commented on May 10, 2024

I'll reopen this issue, then—I definitely need to do some more investigation on 14.04, especially since some of the network stack has change quite a bit!

from ansible-role-firewall.

geerlingguy avatar geerlingguy commented on May 10, 2024

I've been testing this role on a few different clean installs of Ubuntu 14.04 minimal, and can't replicate the failure here; I wonder if the distribution you were using had a specific firewall rule in place that was redirecting a particular port or something for SSH, and flushing the rules cleared out that special firewall rule.

Can you try running it again, on a fresh install, and see if you can replicate the failure? And if you can, then do it again, but before running the playbook, check the output of the command $ sudo iptables -L in the terminal and see if there are any rules affecting SSH.

I'm going to close since I can't replicate on any of my test environments.

from ansible-role-firewall.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.