Categories
Uncategorized

Samba: Linux Iptables Firewall Configuration – Allow Samba ports in CentOS 6

Add below rules in iptables rule file
vi /etc/sysconfig/iptables

Rules:-

-A INPUT -s 0.0.0.0/0 -m state –state NEW -p udp –dport 137 -j ACCEPT
-A INPUT -s 0.0.0.0/0 -m state –state NEW -p udp –dport 138 -j ACCEPT
-A INPUT -s 0.0.0.0/0 -m state –state NEW -p tcp –dport 139 -j ACCEPT
-A INPUT -s 0.0.0.0/0 -m state –state NEW -p tcp –dport 445 -j ACCEPT

Now restart iptables service
service iptables restart

 

Leave a Reply