Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Manuel Mollar Villanueva <mm@mobelt.com>
To: netfilter@lists.netfilter.org
Subject: Re: DNAT sends packed by wrong interface
Date: Sat, 20 Nov 2004 00:52:55 +0100	[thread overview]
Message-ID: <419E8757.8040003@mobelt.com> (raw)
In-Reply-To: <419E8210.1020504@mobelt.com>

Sorry, I have solved my problem

I have:

ip rul add from 150.128.48.0/21 table 1

and

ip rou add default via 150.128.48.1 table 1

The rule is applied, and as router 150.128.48.1 is in eth0, kernel 
decides to send pakets via eth0 ????????



Manuel Mollar Villanueva wrote:

> Hi,
> I have encountered a problem when using DNAT:
>
> Scenario:
>
> iptables v1.2.7a
> Linux 2.4.20
>
> Computer A:
>   eth0 ip 150.128.49.236/21
>   eth1 ip 10.1.1.1/24
>   iptables -t nat -A PREROUTING -d 150.128.49.236 -p tcp --dport 8080 
> -j DNAT --to-destination 10.1.1.2:80
>
> Computer B:
>  eth0 connected to eth1 of computer A, ip 10.1.1.2
>
> Client C:
>  ip 213.171.249.250
>  When accessing port 8080 of A is redirected to port 80 on B,  OK
>
> Client D:
>  ip 150.128.49.219, in the SAME NETWORK of A (eth0)
>  When connecting to A, port 8080, the configured DNAT redirects the 
> packets to 10.1.1.2:80 , BUT PACKETS ARE SENT to interface ETH0, not 
> to interface eth1 as expected, so , do not arrive to B.
>  The same problem occurs for any client in the network of A
>
> Some idea?
>
> Thanks
>
>



      reply	other threads:[~2004-11-19 23:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-19 23:30 DNAT sends packed by wrong interface Manuel Mollar Villanueva
2004-11-19 23:52 ` Manuel Mollar Villanueva [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=419E8757.8040003@mobelt.com \
    --to=mm@mobelt.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