LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-08-2006, 04:36 PM   #1
jonatito
LQ Newbie
 
Registered: Oct 2005
Distribution: SUSE 10.0 GM
Posts: 7

Rep: Reputation: 0
nat problem, web in XP too slow


Hello
i have two machines, suse and xp. I'm using iptables to natting from my linux and from xp i can enter google, even display resluts of searches, but when i try to access some sites, like hotmail or some others, is like i hasn't internet connection. In suse everything's OK. Somebody can help me solve the problem?

Also i can't connect messenger form xp. This is the script i'm using, and EVERYTHING is permitted.

Code:
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -F FORWARD
$IPTABLES -t nat -F

echo "   FWD: Allow all connections OUT and only existing and related ones IN"
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG

echo "   Enabling SNAT (MASQUERADE) functionality on $EXTIF"
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
Thanks

Last edited by jonatito; 03-08-2006 at 04:38 PM.
 
Old 03-08-2006, 05:15 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Just a suggestion, have you tried to use some debug tools to monitor the network connection on your suse box?
I suggest that you try first with "iptraf", it's a nice ncurse based tools that help to solve simple network problem. Just listen to your internet interface using it and try to access a site from the windoze box. You will see if the http request at least come back to your suse box.
Tcpdump is also a very good debugging tool, thus a bit more complex (but more powerful).

Also i can't connect messenger form xp.
I have the same problem here... I suspect the problem to be Micro$oft fault.
Since the version 7 of MSN messenger, it seems to bug when you are using NAT. I blame Micro$oft's bad network protocol. For some reason, MSN try to talk using a random port on the 30 000 range and so the NAT fail to send it back to your box. MSN version 6 wasn't using that stupid network trick, so everything was fine.
I heard the very latest (beta?) version of MSN 7 is fixing that silly bug, or you could maybe downgrade to MSN 6 (or to use any MSN clone? Amsn work fine trought NAT).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant access web server behind NAT/firewall vermaamitabh Linux - Security 3 11-10-2004 11:43 AM
Slow downloads through iptables NAT sglow Linux - Networking 14 06-05-2004 12:18 PM
Slow web browsing problem Corallis Linux - Newbie 8 04-03-2004 12:01 PM
slow connection through iptables/nat rellick Linux - Networking 7 03-18-2004 11:24 PM
Slow uploads over NAT network Aurix Linux - Networking 4 05-16-2002 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration