IP aliases and iptables forwarding
- From: "Yejjou" <yejjou@xxxxxxxxx>
- Date: 27 Apr 2006 08:36:57 -0700
Hello every body
I made one linux red hat server with only 1 ethernet interface eth0
and 2 ip aliases, something like that :
eth0 -> 10.0.0.1
eth0:1 -> 10.0.0.10
eth0:2 -> 10.0.0.20
i want to redirect a trafic on my network as :
if destination ip is 10.0.0.10 ---> forward to 10.8.0.1
and if destination ip is 10.0.0.20 ---> forward to 10.16.0.1
I try that :
iptables -t nat -A PREROUTING -d 10.0.0.10 -j DNAT --to-destination
10.8.0.1
but it doesnot work can some one help me ?
tanx
.
- Follow-Ups:
- Re: IP aliases and iptables forwarding
- From: Andy Furniss
- Re: IP aliases and iptables forwarding
- Prev by Date: Re: Proxy ARP with Linux
- Next by Date: Re: Unusable IP Numbers
- Previous by thread: Strange problems with ftp
- Next by thread: Re: IP aliases and iptables forwarding
- Index(es):