* unknown arg --syn
@ 2002-12-31 23:37 Keith Mastin
2003-01-02 9:23 ` Dharmendra.T
2003-01-02 10:37 ` hare ram
0 siblings, 2 replies; 4+ messages in thread
From: Keith Mastin @ 2002-12-31 23:37 UTC (permalink / raw)
To: netfilter
This should be so simple, yet it's eluding me... a simple iptables script
on a protected machine, with a few rules where the syn flag is set
returns an error:
rule example (lives all on one line in script):
iptables -A INPUT -p tcp -s 0/0 -d 192.168.0.167/32 --destination-port 22
--syn -j ACCEPT
the error when the script is run:
[root@spy root]# sh ./iptables-rules
iptables v1.2.5: Unknown arg `--syn'
Try `iptables -h' or 'iptables --help' for more information.
sure enough, no mention of --syn in iptables -h
from man iptables:
[!] --syn
Only match TCP packets with the SYN bit set and the ACK and FIN bits
cleared. Such packets are used to request TCP connection initiation;
for example, blocking such packets coming in an interface will prevent
incoming TCP connections, but outgoing TCP connections will be
unaffected. It is equivalent to --tcp-flags SYN,RST,ACK SYN. If the "!"
flag precedes the "--syn", the sense of the option is inverted.
I also replaced --syn with --tcp-flags SYN,RST,ACK SYN, which resulted in
the error:
[root@spy root]# sh ./iptables-rules
iptables v1.2.5: Unknown arg `--tcp-flags'
Try `iptables -h' or 'iptables --help' for more information.
I think I'm too close to see the solution, so if anybody can see it right
off, it would be much appreciated...
System info:
Redhat 7.3
kernel-2.4.18-19.7.x.athlon
Also tried on another system with similar results:
Redhat 7.3
kernel-2.4.18-3smp
TIA
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: unknown arg --syn
2002-12-31 23:37 unknown arg --syn Keith Mastin
@ 2003-01-02 9:23 ` Dharmendra.T
2003-01-02 10:37 ` hare ram
1 sibling, 0 replies; 4+ messages in thread
From: Dharmendra.T @ 2003-01-02 9:23 UTC (permalink / raw)
To: Keith Mastin; +Cc: netfilter
On Wed, 2003-01-01 at 05:07, Keith Mastin wrote:
> This should be so simple, yet it's eluding me... a simple iptables script
> on a protected machine, with a few rules where the syn flag is set
> returns an error:
>
> rule example (lives all on one line in script):
> iptables -A INPUT -p tcp -s 0/0 -d 192.168.0.167/32 --destination-port 22
> --syn -j ACCEPT
>
> the error when the script is run:
> [root@spy root]# sh ./iptables-rules
> iptables v1.2.5: Unknown arg `--syn'
> Try `iptables -h' or 'iptables --help' for more information.
>
> sure enough, no mention of --syn in iptables -h
>
> from man iptables:
> [!] --syn
> Only match TCP packets with the SYN bit set and the ACK and FIN bits
> cleared. Such packets are used to request TCP connection initiation;
> for example, blocking such packets coming in an interface will prevent
> incoming TCP connections, but outgoing TCP connections will be
> unaffected. It is equivalent to --tcp-flags SYN,RST,ACK SYN. If the "!"
> flag precedes the "--syn", the sense of the option is inverted.
>
> I also replaced --syn with --tcp-flags SYN,RST,ACK SYN, which resulted in
> the error:
> [root@spy root]# sh ./iptables-rules
> iptables v1.2.5: Unknown arg `--tcp-flags'
> Try `iptables -h' or 'iptables --help' for more information.
>
> I think I'm too close to see the solution, so if anybody can see it right
> off, it would be much appreciated...
>
> System info:
> Redhat 7.3
> kernel-2.4.18-19.7.x.athlon
>
> Also tried on another system with similar results:
> Redhat 7.3
> kernel-2.4.18-3smp
>
> TIA
>
>
>
This is working fine on my Linux box. Could you give me the list of the
modules that your kernel supports? Try compiling new version of iptables
.
I am using iptables 1.2.6a and kernel version 2.4.18-14
--
Dharmendra.T
Linux Enthu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: unknown arg --syn
2002-12-31 23:37 unknown arg --syn Keith Mastin
2003-01-02 9:23 ` Dharmendra.T
@ 2003-01-02 10:37 ` hare ram
2003-01-02 18:35 ` Ranjeet Shetye
1 sibling, 1 reply; 4+ messages in thread
From: hare ram @ 2003-01-02 10:37 UTC (permalink / raw)
To: Keith Mastin, netfilter
Hi
iam using redhat 8.0
better u upgrate Iptables to 1.2.7
its works fine
hare
----- Original Message -----
From: "Keith Mastin" <kmastin@beechtree.ca>
To: <netfilter@lists.netfilter.org>
Sent: Wednesday, January 01, 2003 5:07 AM
Subject: unknown arg --syn
> This should be so simple, yet it's eluding me... a simple iptables script
> on a protected machine, with a few rules where the syn flag is set
> returns an error:
>
> rule example (lives all on one line in script):
> iptables -A INPUT -p tcp -s 0/0 -d 192.168.0.167/32 --destination-port 22
> --syn -j ACCEPT
>
> the error when the script is run:
> [root@spy root]# sh ./iptables-rules
> iptables v1.2.5: Unknown arg `--syn'
> Try `iptables -h' or 'iptables --help' for more information.
>
> sure enough, no mention of --syn in iptables -h
>
> from man iptables:
> [!] --syn
> Only match TCP packets with the SYN bit set and the ACK and FIN bits
> cleared. Such packets are used to request TCP connection initiation;
> for example, blocking such packets coming in an interface will prevent
> incoming TCP connections, but outgoing TCP connections will be
> unaffected. It is equivalent to --tcp-flags SYN,RST,ACK SYN. If the "!"
> flag precedes the "--syn", the sense of the option is inverted.
>
> I also replaced --syn with --tcp-flags SYN,RST,ACK SYN, which resulted in
> the error:
> [root@spy root]# sh ./iptables-rules
> iptables v1.2.5: Unknown arg `--tcp-flags'
> Try `iptables -h' or 'iptables --help' for more information.
>
> I think I'm too close to see the solution, so if anybody can see it right
> off, it would be much appreciated...
>
> System info:
> Redhat 7.3
> kernel-2.4.18-19.7.x.athlon
>
> Also tried on another system with similar results:
> Redhat 7.3
> kernel-2.4.18-3smp
>
> TIA
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: unknown arg --syn
2003-01-02 10:37 ` hare ram
@ 2003-01-02 18:35 ` Ranjeet Shetye
0 siblings, 0 replies; 4+ messages in thread
From: Ranjeet Shetye @ 2003-01-02 18:35 UTC (permalink / raw)
To: netfilter
Don’t use iptables 1.2.7. The NetFilter team released a 1.2.7a version
cos 1.2.7 introduced some serious bugs.
Ranjeet Shetye
Senior Software Engineer
Zultys Technologies
771 Vaqueros Avenue
Sunnyvale CA 94085
USA
Ranjeet.Shetye@Zultys.com
http://www.zultys.com/
> -----Original Message-----
> From: netfilter-admin@lists.netfilter.org
> [mailto:netfilter-admin@lists.netfilter.org] On Behalf Of hare ram
> Sent: Thursday, January 02, 2003 2:38 AM
> To: Keith Mastin; netfilter@lists.netfilter.org
> Subject: Re: unknown arg --syn
>
>
> Hi
>
> iam using redhat 8.0
> better u upgrate Iptables to 1.2.7
> its works fine
>
> hare
> ----- Original Message -----
> From: "Keith Mastin" <kmastin@beechtree.ca>
> To: <netfilter@lists.netfilter.org>
> Sent: Wednesday, January 01, 2003 5:07 AM
> Subject: unknown arg --syn
>
>
> > This should be so simple, yet it's eluding me... a simple iptables
> > script on a protected machine, with a few rules where the
> syn flag is
> > set returns an error:
> >
> > rule example (lives all on one line in script):
> > iptables -A INPUT -p tcp -s 0/0 -d 192.168.0.167/32
> --destination-port 22
> > --syn -j ACCEPT
> >
> > the error when the script is run:
> > [root@spy root]# sh ./iptables-rules
> > iptables v1.2.5: Unknown arg `--syn'
> > Try `iptables -h' or 'iptables --help' for more information.
> >
> > sure enough, no mention of --syn in iptables -h
> >
> > from man iptables:
> > [!] --syn
> > Only match TCP packets with the SYN bit set and the ACK
> and FIN bits
> > cleared. Such packets are used to request TCP connection
> > initiation; for example, blocking such packets coming in an
> > interface will prevent incoming TCP connections, but outgoing TCP
> > connections will be unaffected. It is equivalent to --tcp-flags
> > SYN,RST,ACK SYN. If the "!" flag precedes the "--syn",
> the sense
> > of the option is inverted.
> >
> > I also replaced --syn with --tcp-flags SYN,RST,ACK SYN,
> which resulted
> > in the error: [root@spy root]# sh ./iptables-rules
> > iptables v1.2.5: Unknown arg `--tcp-flags'
> > Try `iptables -h' or 'iptables --help' for more information.
> >
> > I think I'm too close to see the solution, so if anybody can see it
> > right off, it would be much appreciated...
> >
> > System info:
> > Redhat 7.3
> > kernel-2.4.18-19.7.x.athlon
> >
> > Also tried on another system with similar results:
> > Redhat 7.3
> > kernel-2.4.18-3smp
> >
> > TIA
> >
> >
> >
> >
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-02 18:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-31 23:37 unknown arg --syn Keith Mastin
2003-01-02 9:23 ` Dharmendra.T
2003-01-02 10:37 ` hare ram
2003-01-02 18:35 ` Ranjeet Shetye
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox