Sorry for broad description. I mean, that when I try to telnet fromexternal network to port 139 - I cannot.I have added to script: $IPTABLES -t nat -A PREROUTING -p tcp -i$IF_EXT -d $NT_EXT --dport 7139 -j DNAT --to 192.168.1.3:139and tried to connect to port 7139 - it worked. Thanks for the tip about iptables restore. 2008/5/28 Jan Engelhardt <jengelh@xxxxxxxxxx>:> On Wednesday 2008-05-28 11:27, ad marginem wrote:>>>Dear experts,>>>>we have a samba server (windows 2k3) behind the linux box (dapper) running NAT.>>>>I am trying to configure iptables port forwarding from external>>network to internal samba server but without success.>>> "Without success" is quite broad...> speaking of broad, nmb uses broadcasts time and again, which cannot be> nated.> (Also, you could switch to iptables-restore which is a bit more> efficient.)> -- по краямЪТХ╨{.nг+┴╥÷╝┴╜├+%┼кЪ╠Ищ╤╔┼wЪ╨{.nг+┴╥╖zвБ√в╚Ч)М┘ФХw*jg╛╠╗╤┴ ▌┼щ╒jЪ╬╚ЧG╚²ИЪ╒╦╒╥╕j:+v┴╗┼wХjьm╤÷ЪЧЬ╞Ы╝w╔Ч┼ЮЧfё╒╥h ▐Б²ЗЪ├ы╔