On Tuesday 25 Feb 2003 10:46 am, Nick Lindsell wrote: > At 10:32 25/02/2003 +0000, you wrote: > >Hi folks, > > > >I have to route traffic to another network for an IP address that is > > within one of my subnets. > > > >I've created an interface eth0:0 with the address 10.1.0.34 and then tried > > to redirect the packets to the router using the following rule but it > > didn't work: > > > >eth0:0 10.1.0.34 > >eth1 192.168.1.1 > >Cisco router 192.168.1.2 > > > >iptables -A PREROUTING -d 10.1.0.34 -j DNAT --to-destination 192.168.1.2 > > I think you need to look at your routing tables rather than the firewall. > > route add default gw $cisco > route add -net $network gw $gateway > > "man route" > > I'm not very clear on your network topography from the info you gave. > Or I've overdone the coffee again..... > > ??? > [EMAIL PROTECTED]
Hi Nick, Thanks for that Nick. I was making the problem much worse that it needed to be. My interpretation of the IP stack and routing was that the souce ip/subnet and the destination ip/subnet were compared and the routing tables only used if they didn't match - hence my attempts to alias and then forward. However, as both Linux and Win9x boxes still use the route tables if the subnets match, a simple route rule did the trick. Gary -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list