Can anyone guide me or point me to an article that explains how to setup automatic firewall rules based on network connection? I need different firewall rules depending on if I am connected to home, work or public networks. For example, I'd have different firewall rules if I am connected to my home's wifi versus when my laptop is connected to, let's say public wifi. I came across quite a few articles on internet on how to setup firewall rules, but they all seem to be assuming that one always connects to the same network.
Is there an easy way to build multiple firewall profiles and have one of them selected automatically based on network connection, maybe by network-manager?
Thanks