IPTables Strangeness
Kenny Hitt
kenny at hittsjunk.net
Fri Dec 12 00:52:12 EST 2003
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
More information about the Speakup
mailing list