Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

If UFW is actually not an application layer firewall but a "interface to iptables", how can it be if I have by DEFAULT INCOMING DENY and OUTGOING ALLOW setting that ANY internet application is working?

Especially Deluge and Transmission the torrent clients are working. Why?

I mean firefox does receive traffic on port 80 for example (INCOMING!).

To me that would prove that actually the UFW is not working at all?

share|improve this question
1  
Your examples are all outgoing connections. No wonder they works, you allow that... (as is normally sane). Now, if I try to ssh to your PC or try to connect to your web server, my outgoing (which is your incoming) connection will be denied. –  Rmano Mar 27 at 3:13

2 Answers 2

Actually, incoming connections are only classified as connections that originate from without your network. Firefox starts a connection from within your network, so it doesn't count as an "incoming connection".

If you want to disable internet just take the interface you are using down:

sudo ifconfig <interface> down  

You can find <interface> from a plain ifconfig:

ifconfig

If you're using ethernet it will be something similar to eth followed by a number. If you're using wireless it is usually either wlan followed by a number.

share|improve this answer

You can filter your outgoing traffic with ufw with destination on port 80

sudo ufw deny out to any port 80
share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.