Linux Netfilter discussions
 help / color / mirror / Atom feed
From: luca <llcfhll@gmail.com>
To: netfilter@lists.netfilter.org
Subject: particular DNAT
Date: Tue, 06 Sep 2005 22:55:26 +0200	[thread overview]
Message-ID: <431E023E.8060100@tin.it> (raw)

Hi,

I have a firewall netfilter + iptables and the configurations is:

        adsl---------------------      ----------------------dmz ----web
                            eth2|     |eth1                    
                                     FW
                            eth3|     |eth0
        hdsl---------------------      ----------------------- lan

and for the server web i have a DNAT from hdsl on dmz

    iptables -t nat -A PREROUTING -p tcp -d ip.public.hdsl --dport 80 -j 
DNAT --to $serverweb:80

but now I need a DNAT similar for the adsl

    iptables -t nat -A PREROUTING -p tcp -d ip.public.adsl --dport 80 -j 
DNAT --to $serverweb:80

for the same server web, but now the response from server web go out 
from the hdsl line (the defualt gw) and it dont work.

In other word I want to forward the connection to the server web with 2 
ip public: ip.public.adsl and ip.public.hdsl but the response pass only 
from the hdsl line. What can i do to distinguish the 2 different ip 
public to determine the correct gw ?

For me the ipt_ROUTE  is part of the solutions of my problem!

CFH





             reply	other threads:[~2005-09-06 20:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-06 20:55 luca [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-09-06 21:06 particular DNAT famleone

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=431E023E.8060100@tin.it \
    --to=llcfhll@gmail.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