I connect my notebook via ethernet at home and outside. I want to open some ports for services like samba only at home and not somewhere else.
How can i let firewalld automatically detect where i am, so the correct zone will be set?
I connect my notebook via ethernet at home and outside. I want to open some ports for services like samba only at home and not somewhere else.
How can i let firewalld automatically detect where i am, so the correct zone will be set?
From here you can assign a firewall zone. The default drop zone should be fine on untrusted networks while the trusted zone … you get the idea.
When you open services add it to the trusted zone (append --zone="trusted" to your commands) instead of the default zone.