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
Show parent comment
1
u/worldarkplace Aug 21 '26 edited Aug 21 '26
This is the most accurate thing I wanted to express.
Edit: actually I have something similar to the arch config of ufw, so I think it's solved. https://wiki.archlinux.org/title/Uncomplicated_Firewall I just add ipv6 link local and allow ipv4 and 6 forwarding for the VMs in NAT in the sysctl file