r/linuxadmin • u/worldarkplace • Aug 21 '26
Firewall rule
Is the ideal rule to deny all and only allow everything from your local LAN(IPv4) and link-local(IPv6) network?
For my use case my devices use DHCP and I need that different IPs from my network to connect to different services.
I know the best is to only allow the ports you will use, but this can vary in my case.
What do you think/do?
7
Upvotes
View all comments
2
u/stufforstuff Aug 21 '26
Just remember, "deny all" needs to be your LAST RULE or you'll end up blocking yourself from your own computer.