Iptables rule for windows file sharing?

cjlesh no-reply-gw at fcp.homelinux.org
Sat Jan 29 03:27:34 UTC 2005


OK, this still isn't working, so I took the following steps:

1)Added the following rules to /etc/sysconfig/iptables and rebooted:

-A RH-Firewall-1-INPUT -m udp -p udp --dport 137:138 -j ACCEPT
-A RH-Firewall-1-INPUT -m tcp -p tcp --dport 139 -j ACCEPT
-A RH-Firewall-1-INPUT -m tcp -p tcp --dport 445 -j ACCEPT

The result of 'smbtree':
(blank)

2)After 'iptables -F', the result of 'smbtree':
HOMEGROUP
        \\MONKEYCHICKEN
cli_full_connection: failed to connect to MONKEYCHICKEN<20> (0.0.0.0)
        \\BIGMONKEY
                \\BIGMONKEY\C$                  Default share
                \\BIGMONKEY\ADMIN$              Remote Admin
                \\BIGMONKEY\Data (D)
                \\BIGMONKEY\D$                  Default share
                \\BIGMONKEY\IPC$                Remote IPC


3)Started capturing packets in ethereal, then run 'smbtree'.
Ethereal output shows activity on ports 137, 139, 445, and also on ports in the 32700-32900 range. What gives? Could it be the configuration of my Linksys router than is screwing things up?

-cjl


-- 
This is an email sent via the webforum on http://fcp.homelinux.org




More information about the fedora-list mailing list