From: Robert Vangel <vangelr@rfgt.net>
To: netfilter@lists.netfilter.org
Subject: Re: DNATing Windows File Sharing
Date: Mon, 18 Jul 2005 17:50:21 +0800 [thread overview]
Message-ID: <42DB7B5D.1090506@rfgt.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0507181120001.14336@yvahk01.tjqt.qr>
[-- Attachment #1: Type: text/plain, Size: 859 bytes --]
Jan Engelhardt wrote:
>>Hello,
>>I would like to enable the right ports and DNAT the requests for File
>>Sharing on a internal windows box. The win2k3 has Active Directory
>>enabled and i want users to type \\domainname.com which will popup a
>>user/pass dialog and let them access the file server.
>>
>>I did the following, but it doesn't seem to work:
>>iptables -t nat -A PREROUTING -j DNAT -i eth0 -p tcp --dport 139 --to
>>192.168.1.2:139
>>assuming "139" is NetBios
>
>
> Also try 445 instead of 139.
>
> Then, if that still does not work, you maybe need to forward UDP 137.
>
>
>
> Jan Engelhardt
All of the ports for windows file sharing you want to call it are..
135/tcp, 137/udp, 138/tcp, 139/udp, 139/tcp, 445/tcp
Some of them are for RPC things so you might not actually want them
open, but I don't know which specific one(s) they are.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]
next prev parent reply other threads:[~2005-07-18 9:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-18 8:15 DNATing Windows File Sharing Sadus .
2005-07-18 9:20 ` Jan Engelhardt
2005-07-18 9:50 ` Robert Vangel [this message]
2005-07-18 11:09 ` Jan Engelhardt
2005-07-18 21:12 ` Jason Opperisano
2005-07-18 21:41 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42DB7B5D.1090506@rfgt.net \
--to=vangelr@rfgt.net \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.