Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Geffrey Velasquez <g_netfilter@netfids.com>
To: netfilter@lists.netfilter.org
Subject: IP Alias and NAT problems
Date: Mon, 08 Dec 2003 23:17:16 -0500	[thread overview]
Message-ID: <3FD54CCC.5080904@netfids.com> (raw)

Hi Friends,

Actually I have a firewall running RedHat 8 with almost the latest 
kernel (from RH).
The interface eth0 has many aliases and there is a nat rule:

iptables -t nat -A POSTROUTING -s 10.x.x.x/16 -j SNAT --to-source 
200.x.x.10-200.x.x.21

(200.x.x.10-200.x.x.21 are IP aliases)

Everthing works fine, but when I try to do the same on RedHat9 (other 
box) running the latest kernel it doesnt works. Only works with the IP 
address of the interface (no alias), like this:

iptables -t nat -A POSTROUTING -s 10.x.x.x/16 -j SNAT --to-source 200.x.x.9

What is happening? why dont works SNAT with aliases? or maybe is not a 
netfilter problem?


Thanks in advance.

Geffrey Velásquez.






             reply	other threads:[~2003-12-09  4:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-09  4:17 Geffrey Velasquez [this message]
2003-12-09  6:17 ` IP Alias and NAT problems Geffrey Velásquez

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=3FD54CCC.5080904@netfids.com \
    --to=g_netfilter@netfids.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