Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Jeffrey Laramie <JALaramie@Loudoun-Fairfax.com>
To: netfilter@lists.netfilter.org
Subject: Re: iptables questions
Date: Mon, 17 Nov 2003 09:07:27 -0500	[thread overview]
Message-ID: <3FB8D61F.7050005@Loudoun-Fairfax.com> (raw)
In-Reply-To: <003601c3ab66$7396c360$2178df50@lanzor2k.com>

Antti Korpela wrote:

> Hi,
>  
> I have here some questions and i hope you have some time to answer
>  
> 1. What difference and which is better between: iptables -t nat -j 
> MASQUERADE or SNAT --to IP if im using it for internet gateway 
> NAT-machine in big LAN-parties, over 300 IP:s.

According to Oskar's tutorial SNAT is preferable for static IPs:

> It is still possible to use the *MASQUERADE* target instead of *SNAT* 
> even though you do have an static IP, however, it is not favorable 
> since it will add extra overhead, and there may be inconsistencies in 
> the future which will thwart your existing scripts and render them 
> "unusable".
>

> 2. I have get this error often "too much work on eth0, dropping 
> packet..." what this mean? do i have to put this on kernel:
> echo "65000" > /proc/sys/net/ipv4/ip_conntrack_max ? is there any 
> other solutions for this ?

Can't help with this.

> 3. Do you have some other tips for MASQ ? :)


SNAT is pretty straightforward and there aren't a lot of configuration 
choices. It's a good idea to read all of Oskar's tutorial, but you 
should at least read and understand this section:

http://iptables-tutorial.frozentux.net/chunkyhtml/targets.html#SNATTARGET

Jeff




  reply	other threads:[~2003-11-17 14:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-15 10:51 iptables questions Antti Korpela
2003-11-17 14:07 ` Jeffrey Laramie [this message]
2003-11-17 14:18   ` Antony Stone
2003-11-19 15:32     ` Cedric Blancher
2003-11-18  1:12 ` William Stearns
  -- strict thread matches above, loose matches on Subject: below --
2002-11-26 23:33 james li
2002-11-27  0:08 ` Joel Newkirk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FB8D61F.7050005@Loudoun-Fairfax.com \
    --to=jalaramie@loudoun-fairfax.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox