* IPTables Strangeness
@ Luke Davis
` Deedra Waters
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Luke Davis @ UTC (permalink / raw)
To: Speakup
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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: IPTables Strangeness
IPTables Strangeness Luke Davis
@ ` Deedra Waters
` Luke Davis
` Ryan Mann
` Kenny Hitt
2 siblings, 1 reply; 6+ messages in thread
From: Deedra Waters @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Off the top of my head, I can't remember how this works, but did you try making that caps? Iptables seems to be picky about case with a lot of things.
You also might make sure that you have all the required iptables modules I don't think that's your problem here, but I've been known to forget a few.
On Thu, 11 Dec 2003, 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
>
- --
Gentoo Linux: dmwaters@gentoo.org,
http://www.gentoo.org
Freenode staff member: dmwaters@freenode.net , http://www.freenode.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/2PmvU5AGPOTGNc8RAp7cAJwNg8PhlUr5KGz6XGuZCTOYVGDfQgCfdQCW
NT6O9TKdHPAOY5P8BVrXxGE=
=xws9
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: IPTables Strangeness
` Deedra Waters
@ ` Luke Davis
0 siblings, 0 replies; 6+ messages in thread
From: Luke Davis @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
I checked the man page: the option is lower case. It doesn't show up at
all in help, which makes me suspect some kind of version mismatch,
although I'm running the latest debian stable release of iptables.
I don't think a module is the problem there, and at the moment I'm not
sure how to check. (no idea which one would support this option).
Luke
On Thu, 11 Dec 2003, Deedra Waters wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Off the top of my head, I can't remember how this works, but did you try making that caps? Iptables seems to be picky about case with a lot of things.
>
> You also might make sure that you have all the required iptables modules I don't think that's your problem here, but I've been known to forget a few.
>
>
> On Thu, 11 Dec 2003, 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
> >
>
> - --
> Gentoo Linux: dmwaters@gentoo.org,
> http://www.gentoo.org
>
> Freenode staff member: dmwaters@freenode.net , http://www.freenode.net
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
>
> iD8DBQE/2PmvU5AGPOTGNc8RAp7cAJwNg8PhlUr5KGz6XGuZCTOYVGDfQgCfdQCW
> NT6O9TKdHPAOY5P8BVrXxGE=
> =xws9
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: IPTables Strangeness
IPTables Strangeness Luke Davis
` Deedra Waters
@ ` Ryan Mann
` Kenny Hitt
2 siblings, 0 replies; 6+ messages in thread
From: Ryan Mann @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
I think you forgot to specify TCP as the protocol. Instead of
iptables -t nat -A PREROUTING -i eth0 --dport 23 -j REDIRECT --to-port 80,
try
iptables -t nat -A PREROUTING -i eth0 -p TCP --dport 23 -j REDIRECT
--to-port 80.
That would be all on one line ofcourse.
Why do people dress up for Christmas parties? God doesn't care about the
way you look. You dress up for work, but atleast you get payed to do
that.
On Thu, 11 Dec 2003, 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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: IPTables Strangeness
IPTables Strangeness Luke Davis
` Deedra Waters
` Ryan Mann
@ ` Kenny Hitt
` Kenny Hitt
2 siblings, 1 reply; 6+ messages in thread
From: Kenny Hitt @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: IPTables Strangeness
` Kenny Hitt
@ ` Kenny Hitt
0 siblings, 0 replies; 6+ messages in thread
From: Kenny Hitt @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
IPTables Strangeness Luke Davis
` Deedra Waters
` Luke Davis
` Ryan Mann
` Kenny Hitt
` Kenny Hitt
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).