[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iptables: problema con --to-destination



El Lunes, 7 de Febrero de 2005 21:35, Pablo Braulio escribió:
> El Lunes, 7 de Febrero de 2005 20:38, M. Parrilla escribió:
> > Hola
> >
> > Tengo un script para configurar iptables durante el arranque, que me
> > funciona correctamente. El problema me ha surgido, al querer meter una
> > regla para hacer DNAT. Dicha regla sería tal que:
> >
> > $IPTABLES -t nat -A PREROUTING -p tcp -s XXX.XXX.XXX.XXX --dport XXXX  \
> > -j DNAT --to-destination XXX.XXX.XXX.XXX:XXXX
> >
> > Cuando lo intento, al ejecutar el script me sale en mensaje:
> >
> > Bad argument ` '
> > Try `iptables -h' or 'iptables --help' for more information.
> > ./misreglas: line 367: --to-destination: command not found
>
> Creo que está claro.
> No encuentra el comando --to-destination. Haz simplemente "--to"

Me da el mismo mensaje de "command not found" para "--to"

Gracias



Reply to: