Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can anyone tell me whether or not new or updated rules made to ubuntu (v10.10) UFW should affect existing connections? I have noticed that these only take effect the next time I try to reconnect, which doesn't seem to me the way a firewall should behave!

What I'm trying to achieve here is to simulate a connection being lost/dropped in a socket based client.

Is there any way to update these rules immediately so as they affect existing connection?

share|improve this question

migrated from Apr 24 '11 at 19:57

This question came from our site for professional and enthusiast programmers.

if the connection is already on when you update the firewall, your connection is Established and you probably have a rule to allow Established and Related connections. This rule is necessary to allow answers from IPs you connect to.

After updating the firewall, you have to drop the connection or restart network or interface to drop the connection and loose the Established status.

share|improve this answer

I think you can lock the firewall and force all connections to drop. Firestarter is a better firewall interface.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.