From mboxrd@z Thu Jan 1 00:00:00 1970 From: "famleone@tin.it" Subject: particular DNAT Date: Tue, 6 Sep 2005 22:06:38 +0100 (GMT+01:00) Message-ID: <2182826.1126040798325.JavaMail.root@pswm19.cp.tin.it> Reply-To: "famleone@tin.it" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org 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