All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Error in Masquerade ??
@ 2006-03-10 15:37 Leandro Silva
  2006-03-10 15:48 ` Rob Sterenborg
  0 siblings, 1 reply; 6+ messages in thread
From: Leandro Silva @ 2006-03-10 15:37 UTC (permalink / raw)
  To: netfilter, davila

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


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Error in Masquerade ??
@ 2006-03-10 17:20 Leandro Silva
  0 siblings, 0 replies; 6+ messages in thread
From: Leandro Silva @ 2006-03-10 17:20 UTC (permalink / raw)
  To: netfilter

Thanks all !

Is there a bug in netfilter ? It's working fine but some packets are
leaving the server without being masqueraded. Although it's working
now, maybe one day somebody is going to use something that can have
problems ...

Leandro


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Error in Masquerade ??
@ 2006-03-10 15:01 Leandro Silva
  2006-03-10 15:27 ` Jorge Davila
  0 siblings, 1 reply; 6+ messages in thread
From: Leandro Silva @ 2006-03-10 15:01 UTC (permalink / raw)
  To: netfilter

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-03-10 17:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-10 15:37 Error in Masquerade ?? Leandro Silva
2006-03-10 15:48 ` 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

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.