Below are the rules currently on the firewall,
Code:
root@Fileserver:/# ufw status
Firewall loaded
To Action From
-- ------ ----
22:tcp ALLOW Anywhere
22:udp ALLOW Anywhere
21:tcp ALLOW Anywhere
21:udp ALLOW Anywhere
20:tcp ALLOW Anywhere
20:udp ALLOW Anywhere
901:tcp ALLOW Anywhere
901:udp ALLOW Anywhere
139:tcp ALLOW Anywhere
139:udp ALLOW Anywhere
445:tcp ALLOW Anywhere
445:udp ALLOW Anywhere
999:tcp DENY Anywhere
999:udp DENY Anywhere
what I would like to do is to only allow access to ports 139,445 from the local network, for example 192.168.1.0. The catch is this system will be reproduced and sent to networks with different address schemes and will get its address via dhcp, ideally I want to avoid manually editing each rule for every system sent out.
Any ideas?