IPTables Strangeness

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

 



Should have read my reply closer before sending.  Someone else had it.
You need to specify the protocol before the --dport command.  Try

iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 23 -j REDIRECT
--to-port 80

Don't know if it does what you want, but iptables has no problem with
it.

Hope this helps.
         Kenny

On Thu, Dec 11, 2003 at 11:37:59PM -0600, Kenny Hitt wrote:
> Do you need an option like -A for add before the -t for tables maybe?
> iptables -A -t nat -A PREROUTING -i eth0 --dport 23 -j REDIRECT
> --to-port 80
>           Kenny
> 
> On Thu, Dec 11, 2003 at 04:43:22PM -0600, Luke Davis wrote:
> > Anyone have any idea why this happens?:
> > 
> > iptables -t nat -A PREROUTING -i eth0 --dport 23 -j REDIRECT --to-port 80
> > iptables v1.2.6a: Unknown arg `--dport'
> > Try `iptables -h' or 'iptables --help' for more information.
> > Done, exiting
> > 
> > _______________________________________________
> > Speakup mailing list
> > Speakup at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux