LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-30-2009, 04:26 PM   #1
mehboob_urrehman
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
Question Linux nat performance


Hi,

I tried using my linux box as a router that does MASQUERADE for the internal network,

it works but the performance is really poor, I am able to open a web page or two but then it stops, though I;m still able to ping,

I;ve also tried using SNAT and specified multiple outside ip address and port range of 1024 to 40000 but still the performance doesn't improve!

has anyone else run into a similar problem,, any suggestions ??

currently I'm doing it on ubuntu 9.10 2.6.31-6-generic

iptables v1.4.4

Last edited by mehboob_urrehman; 08-30-2009 at 04:37 PM. Reason: tagging
 
Old 08-31-2009, 12:20 AM   #2
evilted
Member
 
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92

Rep: Reputation: 18
what other rules do you have in iptables?
have you performed isolation tests?
what do you base 'performance is really poor' on?

i ask this because i find the nat in linux much better than most routers.. (i have a server handling around 350 clients. after moving its connections from a physical router to linux i gained around 50ms in latency)
 
Old 08-31-2009, 12:46 AM   #3
mehboob_urrehman
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
thanks for the reply,,

Its not a production server so I started with a blank iptables ruleset,

by poor i mean, that I am not able to open three or four web pages at the same time, and pages like facebook don't display correctly..

the internet link however has sufficient bandwidth available and works find without nat,,
 
  


Reply

Tags
dsl, internet, ip, masquerade, nat, networking, snat


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
LXer: Performance Technologies Announces Availability of AMC121 High-Performance Comp LXer Syndicated Linux News 0 09-18-2007 10:30 AM
performance issue when running a NAT box ? Menestrel Linux - Networking 1 07-31-2005 06:34 AM
Susefirewall2 Nat Problem / nat 1:1 trubi Linux - Distributions 0 07-20-2004 05:50 AM
Linux - NAT g452 Linux - Networking 3 03-15-2004 06:41 PM
What's the difference between Linux-NAT and Sygate-NAT? yuzuohong Linux - Networking 0 08-07-2002 04:07 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration