From: "Leandro Silva" <lansoweb@gmail.com>
To: netfilter@lists.netfilter.org, davila@nicaraguaopensource.com
Subject: Re: Error in Masquerade ??
Date: Fri, 10 Mar 2006 12:37:20 -0300 [thread overview]
Message-ID: <581260b00603100737k630aaa8l@mail.gmail.com> (raw)
Hello Jorge !
Thanks for the response.
When i have a fixed ip i can use SNAT, but i have some dsl links with
dynamic ip so i can't use SNAT :-(
Leandro
-------
Leandro:
You need another rule to alter the source ip address of the outgoing packets.
iptables -t nat -A POSTROUTING -o eth0 \ -j SNAT --to-source <server_address>
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Jorge.
El vie, 10-03-2006 a las 12:01 -0300, Leandro Silva escribió:
> I have the following rule in my firewall:
> iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE And that's the
> only rule if postrouting chain. It's working fine but from time to
> time a packet leaves the server with the original ip and not with the
> server's. It's happening like 1 "wrong" packet for 100 or 200 ok.
> I've tried in other servers with same results and different
> "Mandrakes" ( 9.1, 10,1 and 2006.0 ). And different cpus ( p3, p4,
> amd, all with 512 mb ram ).
> Any ideias ?
>
> Thanks a lot
> Leandro
>
--
Jorge Isaac Davila Lopez
Nicaragua Open Source
+505 808 2478
davila@nicaraguaopensource.com
next reply other threads:[~2006-03-10 15:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-10 15:37 Leandro Silva [this message]
2006-03-10 15:48 ` Error in Masquerade ?? Rob Sterenborg
-- strict thread matches above, loose matches on Subject: below --
2006-03-10 17:20 Leandro Silva
2006-03-10 15:01 Leandro Silva
2006-03-10 15:27 ` Jorge Davila
2006-03-10 15:57 ` Nathaniel Hall
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=581260b00603100737k630aaa8l@mail.gmail.com \
--to=lansoweb@gmail.com \
--cc=davila@nicaraguaopensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.