From: <alexis@tpys.com.ar>
To: azeem ahmad <azeem484@hotmail.com>
Cc: netfilter@lists.netfilter.org
Subject: RE: iptables and samba
Date: Thu, 27 May 2004 16:28:35 -0000 [thread overview]
Message-ID: <twig.1085675315.20438@baicom.com> (raw)
In-Reply-To: <BAY15-F10BvW8XADQQW000127bc@hotmail.com>
it seems a name resolution issue.
check if you're using WINS or DNS and make sure you're allowing those ports
in orden to resolve the names. and it will work just fine
azeem ahmad <azeem484@hotmail.com> dijo:
>
> no one out there could help me?
>
> >From: "azeem ahmad" <azeem484@hotmail.com>
> >To: netfilter@lists.netfilter.org
> >Subject: iptables and samba
> >Date: Sun, 23 May 2004 09:20:52 +0000
> >
> >hi
> >i m using the script below
> >---------------------------------------------------------------------------
----------------------------------------------------------
> >iptables -F
> >iptables -t nat -F
> >iptables -P INPUT DROP
> >iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
> >iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT
> >iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
> >iptables -A INPUT -i eth0 -p tcp --dport 53 -j ACCEPT
> >iptables -A INPUT -i eth0 -p udp --dport 53 -j ACCEPT
> >iptables -A INPUT -i eth0 -p udp --dport 137 -j ACCEPT
> >iptables -A INPUT -i eth0 -p udp --dport 138 -j ACCEPT
> >iptables -A INPUT -i eth0 -p tcp --dport 139 -j ACCEPT
> >
> >iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
> >#iptables -t nat -A PREROUTING -p udp --dport 80 -j REDIRECT --to-port 8080
> >
> >iptables -P FORWARD DROP
> >iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
> >iptables -A FORWARD -i eth0 -p tcp --dport 21 -j ACCEPT
> >iptables -A FORWARD -i eth0 -p tcp --dport 443 -j ACCEPT
> >iptables -A FORWARD -i eth0 -p tcp --dport 5000 -j ACCEPT
> >iptables -A FORWARD -i eth0 -p tcp --dport 5001 -j ACCEPT
> >iptables -A FORWARD -i eth0 -p tcp --dport 5005 -j ACCEPT
> >iptables -A FORWARD -i eth0 -p tcp --dport 5050 -j ACCEPT
> >iptables -A FORWARD -i eth0 -p tcp --dport 6660:6670 -j ACCEPT
> >iptables -A FORWARD -i eth0 -p tcp --dport 7000 -j ACCEPT
> >iptables -A FORWARD -i eth0 -p tcp --dport 28805 -j ACCEPT
> >iptables -A FORWARD -i eth0 -p tcp --dport 51215 -j ACCEPT
> >
> >iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
> >---------------------------------------------------------------------------
----------------------------------------------------------
> >
> >i have two shares on samba server "Soft and linux" in these shares there
> >are many folders. whenever i run the above script and then i open the
share
> >it takes atleast 4 minutes to open the share. but it doesnt take time
> >while browsing inside share.
> >mean there is a folder on soft share like soft/adobe/acrobat/acrobat6
> >when i double click on soft it takes atleast 4 minutes but after that when
> >i click on adobe then acrobat then acrobat6 it takes now time it just
brose
> >them normally. same problem is with the other share named linux.
> >but if i dont run this script then all shares work fine with no delay
> >
> >i dont know what is the udp port 80 for but i just saw its traffic on my
> >network in iptraf so i included it in my script
> >
> >Regards
> >Azeem
> >
> >_________________________________________________________________
> >Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> >http://join.msn.com/?page=features/featuredemail
> >
> >
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
--
next prev parent reply other threads:[~2004-05-27 16:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-27 15:40 iptables and samba azeem ahmad
2004-05-27 16:00 ` Antony Stone
2004-05-27 16:28 ` alexis [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-05-31 20:38 azeem ahmad
2004-05-28 19:44 Aldo Lagana
2004-05-28 19:32 azeem ahmad
2004-05-27 21:35 azeem ahmad
2004-05-27 21:07 Aldo Lagana
2004-05-27 20:56 azeem ahmad
2004-05-26 8:29 CPD - David Cardeñosa Rubio
2004-05-23 9:20 azeem ahmad
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=twig.1085675315.20438@baicom.com \
--to=alexis@tpys.com.ar \
--cc=azeem484@hotmail.com \
--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.