Score:0

Why am I able to connect to Wi-Fi(router) without any issues while all the In/Out traffic is blocked with UFW

ca flag

When I block all the traffic with ufw, e.g.:

ufw default deny incoming
ufw default deny forward
ufw default deny outgoing

I can't receive or send anything, but I still able to connect to my home Wi-Fi network.

Is this intended? Can you please explain why?

askingUbuntuAboutKubuntu avatar
ca flag
I think I found the reason, yet would love to get a comprehensive answer(if anyone would care to). This is probably due to predefined rules within the `before.rules`. Going to investigate in depth this one
in flag
This is an apple and oranges thing. You don’t have network traffic until you are connected to a network. An outgoing device handshake, regardless of how it is carried out, is not technically network traffic. This is why airplane mode will remove power from the transmitters when enabled rather than simply employing firewall rules.
askingUbuntuAboutKubuntu avatar
ca flag
@matigo Airplane mode is a different thing with a different goal, it doesn't care about what happens within the network of a device. Same principle with kill switches. Firewalls (soft & hardware) do care. Device handshake happens on another layer - the network - and not by magic. It's an inner network, yet a network regardless. The fact is, the handshake does goes through iptables(how else) to establish a connection and rules for this are just pre-defined with a disto. Same goes for ICMP, for example. Prove me wrong please.
in flag
Not my job to prove anything. I provided an answer you disagree with. I will not walk through lines of code and logic as though this were a pair programming exercise. Such is life.
Score:0
cn flag

UFW rules are not apply until the interface is up.

It happens after a handshake. But you shouldn't be able to get an IP address if UDP is blocked.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.