[Samba] Samba behind NAT

Igor sprog at online.ru
Thu Jan 21 17:24:19 MST 2010


Hello James,

Friday, January 22, 2010, 1:11:12 AM, you wrote:

You're right, I messed it up, that was causing the problem
in the first place.

Now all the Windows XP machines outside of the network are able to
connect to samba server using both \\HOSTNAME and \\IP.
But Windows 2003 server is still only able to use \\IP. :-), but I
will figure it out.

Many thanks!

>>   #samba
>>   $IPT -t nat -A PREROUTING -i $INET_IFACE -p udp  -d 
>> $INET_IP -m multiport --dports 137,138 -j DNAT 
>> --to-destination $FILESERV
>>   $IPT -t nat -A PREROUTING -i $INET_IFACE -p tcp  -d 
>> $INET_IP -m multiport --dports 139,145 -j DNAT 
>> --to-destination $FILESERV
>> 
>>   #samba
>>   $IPT -A FORWARD -p udp -m state --state NEW -i $INET_IFACE 
>> -d $FILESERV -m multiport --dports 137,138 -j ACCEPT
>>   $IPT -A FORWARD -p tcp -m state --state NEW -i $INET_IFACE 
>> -d $FILESERV -m multiport --dports 139,145 -j ACCEPT
>> 

JZ> Also,

JZ> Is port 145 in your ruleset a typo?

JZ> Try changing that to port 445.

JZ> James Zuelow
JZ> Network Specialist
JZ> City and Borough of Juneau MIS (907)586-0236 



-- 
www.rol.ru
Best regards,
 Igor                            mailto:sprog at online.ru



More information about the samba mailing list