[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How do I open port 139 and 137 for samba in an iptables firewall



On Sat, 2002-08-31 at 12:58, Knut Ove Hauge wrote:
> How do I open port 139 and 137 for samba in an iptables firewall?
> Regards
> Knut

iptables -A INPUT -m state --state NEW -p udp --dport 137 -j ACCEPT

If you want to limit it to a specific ethernet card, then add -i for
your specific adapter like:

iptables -A INPUT -m state --state NEW -i eth0 -p udp --dport 137 -j ACCEPT

Then do the same for port 139.

Linus







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]