Thanks to all that answere to this thread. And a special thanks to Antony for solving the problem. Works like a charm. This help was very appreciated since I'm not used to use iptables. I come from the world of OpenBSD so in pf lies my strenght.
Thanks once again Antony. // Mika Ullgren > -----Original Message----- > From: Antony Stone [mailto:[EMAIL PROTECTED]] > Sent: den 27 juni 2002 17:36 > To: [EMAIL PROTECTED] > Subject: Re: Nat with virtual interfaces > > > On Thursday 27 June 2002 2:49 pm, Mika Ullgren wrote: > > > Yes I did. Sorry I forgot to mention that... If I use DNAT > exactly the > > same thing happens as with REDIRECT. > > > > Any other ideas? > > Here's a bit of a daft idea, but you never know..... > > Try using DNAT to a completely different address (which you > still add to eth0 > and include in the apache httpd.conf file) ? > > eg ifconfig eth0:0 172.16.64.75 netmask 255.255.255.0 > > iptables -A PREROUTING -t nat -d 192.168.64.75 -p tcp --dport > 80 -j DNAT --to > 172.16.64.75:8080 > > etc.... > > I have no idea if this would work (or if it did, why it's a > better idea than > the other things you've tried) but it's got to be worth a > quick go..... > > > > Antony. > >
