From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simone Sestini Subject: Redirection Date: Wed, 09 Apr 2003 12:15:55 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <5.2.0.9.0.20030409121155.02472d98@imap4.plugit.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_63945879==.ALT" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org --=====================_63945879==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hi all.. i have a situation where i need to use iptables.. I have a public www with some virtual hosts on a machine with public ip 2.2.2.2. I have with another provider a second server with public ip 1.1.1.1 On dns server i wrote that intra.pippo.foo has address 1.1.1.1 so all the internet request come to machine 1.1.1.1 port 80. I want that the server 1.1.1.1 redirects all the call on port 80 and 443 to the server 2.2.2.2 in transparent mode.. i don't want end user to know that datas are over server 2.2.2.2. Naturally the www server on 2.2.2.2 listen on port 80 for intra.pippo.foo How can i menage the packets with iptables for do that ? :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Simone Sestini [ SS971-RIPE ] Plug IT s.p.a. - Technical Office Via Galileo Ferraris 216 52100 Arezzo Titles: System and Network Administrator Data Transmission Manager Fax +39-199-4400-88 E-mail simone.sestini@plugit.net Web http://www.plugit.it :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: --=====================_63945879==.ALT Content-Type: text/html; charset="us-ascii" Hi all.. i have a situation where i need to use iptables..

I have a public www with some virtual hosts on a machine with public ip 2.2.2.2.
I have with another provider a second server with public ip 1.1.1.1

On dns server i wrote that intra.pippo.foo has address 1.1.1.1 so all the internet request come to machine 1.1.1.1 port 80.
I want that the server 1.1.1.1 redirects all the call on port 80 and 443 to the server 2.2.2.2 in transparent mode.. i don't want end user to know that datas are over server 2.2.2.2.

Naturally the www server on 2.2.2.2 listen on port 80 for intra.pippo.foo

How can i menage the packets with iptables for do that ?

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Simone Sestini [ SS971-RIPE ]

Plug IT s.p.a. - Technical Office
Via Galileo Ferraris 216
52100 Arezzo

Titles:
System and Network Administrator
Data Transmission Manager

Fax             +39-199-4400-88
E-mail  simone.sestini@plugit.net
Web             http://www.plugit.it

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
--=====================_63945879==.ALT--