For IPTables:

iptables -A INPUT -s xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy-i ethX -p tcp -m tcp --dport 137 
-j ACCEPT
iptables -A INPUT -s xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy-i ethX -p udp -m udp --dport 137 
-j ACCEPT

Repeat for each port (138 and 139)

ethX is the interface on which you want to accept those packets.

xxx.xxx.xxx.xxx is the ip address or network address that you want to 
allow to use those ports.

yyy.yyy.yyy.yyy is the netmask of the network range.  If you're only 
specifiying individual addresses, you don't need the netmask portion, or 
the "/".

On Fri, 11 Jan 2002, Jay Paulson wrote:

> Anyone know how to allow ports 137, 138, and 139 go through in the ipchains and 
>iptables commands?
> 
> thanks.
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to