El vie, 24 de 09 de 2004 a las 12:28, coding@xxxxxxxxxxxxxxxxxx escribiÃ: > Hi, > > I am very new to trying to use iptables and was wondering if > someone could help me out with what I should do to solve my current problem. > > I have a PC with 3 ethernet cards, one is connected to the internet (eth2). > I want to use network translation to forward all requests to a pair of > static IP addresses I have to particular locales on an internal network > (which is accessed through eth1). > > Ie forward all incoming traffic on eth2 going to address 213.249.230.206 to > 192.168.10.2 on eth1. > > > > I have tried the following, but it just seems to redirect all traffic to the > local firewall: > > > > iptables -t nat -A POSTROUTING -o eth1 -s 192.168.10.2 -j SNAT --to > 213.249.230.206 > > iptables -t nat -A PREROUTING -i eth2 -s 213.249.230.206 -j DNAT --to > 192.168.10.2 > Just change the -s for -d, because it's a destination IP. > > > What am I doing wrong? > > > > Tom > > -- Jose Maria Lopez Hernandez Director Tecnico de bgSEC jkerouac@xxxxxxxxx bgSEC Seguridad y Consultoria de Sistemas Informaticos http://www.bgsec.com ESPAÃA The only people for me are the mad ones -- the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn like fabulous yellow Roman candles. -- Jack Kerouac, "On the Road"