Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "famleone@tin.it" <famleone@tin.it>
To: netfilter@lists.netfilter.org
Subject: particular DNAT
Date: Tue, 6 Sep 2005 22:06:38 +0100 (GMT+01:00)	[thread overview]
Message-ID: <2182826.1126040798325.JavaMail.root@pswm19.cp.tin.it> (raw)

Hi,

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

       adsl---------------------____ ---------------------dmz ----web
                                  |        |
                                  | FW  
|                                                       
                                  |____|
       
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 21:06 UTC|newest]

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

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=2182826.1126040798325.JavaMail.root@pswm19.cp.tin.it \
    --to=famleone@tin.it \
    --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