iptables and samba
hi
if i remove the rule for transparent redirection from my firewall script then it starts working well. what can be the connection of port 80 transparent redirection with samba plz help me out. im in much trouble
Regards
Azeem
Quoted 69 lines
From: <[email protected]>
To: "azeem ahmad" <[email protected]>
CC: <[email protected]>
Subject: RE: iptables and samba
Date: Thu, 27 May 2004 16:28:35 -0000it 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 <[email protected]> dijo:
Quoted 8 lines
no one out there could help me?
Quoted 5 lines
From: "azeem ahmad" <[email protected]>
To: [email protected]
Subject: iptables and samba
Date: Sun, 23 May 2004 09:20:52 +0000Quoted 4 lines
Quoted 2 lines
hi
i m using the script below---------------------------------------------------------------------------
----------------------------------------------------------
Quoted 12 lines
Quoted 12 lines
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 ACCEPTiptables -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 ACCEPTQuoted 1 line
Quoted 1 line
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port
8080
Quoted 1 line
Quoted 1 line
#iptables -t nat -A PREROUTING -p udp --dport 80 -j REDIRECT --to-port
8080
Quoted 14 lines
Quoted 14 lines
iptables -P FORWARD DROP
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPTiptables -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 ACCEPTQuoted 3 lines
Quoted 1 line
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
---------------------------------------------------------------------------
----------------------------------------------------------
Quoted 2 lines
Quoted 2 lines
i have two shares on samba server "Soft and linux" in these shares
there
Quoted 1 line
Quoted 1 line
are many folders. whenever i run the above script and then i open the
share
Quoted 4 lines
Quoted 4 lines
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
Quoted 13 lines
when
Quoted 1 line
Quoted 1 line
i click on adobe then acrobat then acrobat6 it takes now time it just
brose
Quoted 4 lines
Quoted 4 lines
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
Quoted 5 lines
Quoted 5 lines
network in iptraf so i included it in my script
Regards
Azeem
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail