Find the answer to your Linux question:
Results 1 to 5 of 5
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 ...
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    4

    Question Nat performance not great

    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

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Many questions.

    How large is the network that you are MASQ'ing?
    How Old/New is the box hardware you are using for NAT?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    I have a better question, why are you using an unreleased version of ubuntu for production?

  4. #4
    Just Joined!
    Join Date
    Mar 2008
    Posts
    4
    well its not a production server, it just had ubuntu installed and the network also is not large , just one or two hosts..

    my nat configuation was

    iptables -t nat -A POSTROUTING -s 0.0.0.0/0 -j SNAT --to-source 172.16.1.1-172.16.1.7:1024-40000

    and i also tried

    iptables -t nat -A POSTROUTING -j MASQUERADE

  5. #5
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    How about you add an interface to that NAT rule? You don't want both ends being nat'ed do you, just the traffic leaving the network.

    Code:
    iptables -t nat -A POSTROUTING -o eth# -j MASQUERADE

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...