Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-30-2009, 05:26 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
Question Linux nat performance


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 05:37 PM. Reason: tagging
Old 08-31-2009, 01:20 AM   #2
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, 01:46 AM   #3
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,,


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 11:30 AM
performance issue when running a NAT box ? Menestrel Linux - Networking 1 07-31-2005 07:34 AM
Susefirewall2 Nat Problem / nat 1:1 trubi Linux - Distributions 0 07-20-2004 06:50 AM
Linux - NAT g452 Linux - Networking 3 03-15-2004 07:41 PM
What's the difference between Linux-NAT and Sygate-NAT? yuzuohong Linux - Networking 0 08-07-2002 05:07 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:38 AM.

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