iptables question (ip address)

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

I don't use Samba that often so my knowledge is a bit 'sketchy' on it however, there are two different ways to use connect via the SMB protocol. If all your Windows machines run Win2K or above then you should be able to use/open port 445 for both TCP and UDP. Older Windows systems require UDP ports 137 and 138 plus TCP ports 138 and 139, so your rules are slightly wrong.

Where are you adding these rules? if it's after you have run the script and you are adding rules via the commandline they will never be processed by iptables as the last rule within the script essentially just reinforces the DROP policy. You will need to either remove the lat rule from the script or from the commandline insert the rules prior to the last rule (read up on iptables syntax for inserting/adding new rules to an already existant ruleset).

If you can run on port 445 (UDP and TCP) then the script itself is relatively easily adjusted to cater for this.
User avatar
a94060
Forum Regular
Posts: 543
Joined: Fri Feb 10, 2006 4:53 pm

Post by a94060 »

ok,i will check on it later...i just added those at the end of the script you made...actually i just typed them in there.
Post Reply