From: Kenny Hitt <kenny@hittsjunk.net>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: Re: IPTables Strangeness
Date: Thu, 11 Dec 2003 23:52:12 -0600 [thread overview]
Message-ID: <20031212055211.GB17752@localhost> (raw)
In-Reply-To: <20031212053759.GA17752@localhost>
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@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
prev parent reply other threads:[~ UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
Luke Davis
` Deedra Waters
` Luke Davis
` Ryan Mann
` Kenny Hitt
` Kenny Hitt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031212055211.GB17752@localhost \
--to=kenny@hittsjunk.net \
--cc=speakup@braille.uwo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).