From: Florent B <florent@coppint.com>
To: lartc@vger.kernel.org
Subject: Re: NAT: ip rule FROM seems ignored
Date: Sat, 27 Dec 2014 09:46:13 +0000 [thread overview]
Message-ID: <549E7FE5.8020805@coppint.com> (raw)
In-Reply-To: <549DB11D.6020605@coppint.com>
Thank you Miguel, I understand now :)
On 12/27/2014 02:05 AM, Miguel Bernabé wrote:
> > When my server is interrogated at 10.108.240.164, it needs to send the
> > reply to 10.108.0.111.
> >
> > So here is my config :
> >
> > root@lb04-1:~# ip rule list
> > 0: from all lookup local
> > 32758: from 10.108.240.164 lookup table_eth1
>
> If your server does not use the bind call to bind the socket to the IP address 10.108.240.164 then the rule above will not match the packet. This is, if your server does not bind the socket to a given IP address, the source IP address of the packet for the IP header will be |INADDR_ANY and the kernel will fill it at the time the route is choosen using the route table regarding the destination IP address so this source IP address will be the address of the device that match the route. |
>
>
> Miguel Ángel Bernabé
prev parent reply other threads:[~2014-12-27 9:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-26 19:03 NAT: ip rule FROM seems ignored Florent B
2014-12-27 9:46 ` Florent B [this message]
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=549E7FE5.8020805@coppint.com \
--to=florent@coppint.com \
--cc=lartc@vger.kernel.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.