Linux Netfilter discussions
 help / color / mirror / Atom feed
* string is not working, any help?
@ 2003-06-10 23:59 Esteban
  2003-06-11  1:16 ` Michael Kearey
  0 siblings, 1 reply; 5+ messages in thread
From: Esteban @ 2003-06-10 23:59 UTC (permalink / raw)
  To: netfilter; +Cc: winfield

root@dejawu:/lib/modules/2.4.20/kernel/net/ipv4/netfilter# lsmod 
Module                  Size  Used by    Tainted: P  
ipt_unclean             6712   0  (unused)
ipt_string              1688   0  (unused)
iptable_nat            18872   0  (autoclean) (unused)
ip_conntrack           24224   1  (autoclean) [iptable_nat]
ip_tables              12952   5  [ipt_unclean ipt_string iptable_nat]
i810_audio             20680   0 
ac97_codec              9992   0  [i810_audio]
8139too                16424   1 
mii                     2272   0  [8139too]
root@dejawu:/lib/modules/2.4.20/kernel/net/ipv4/netfilter# 
root@dejawu:/lib/modules/2.4.20/kernel/net/ipv4/netfilter# 
root@dejawu:/lib/modules/2.4.20/kernel/net/ipv4/netfilter# cd 
root@dejawu:~# 
root@dejawu:~# 
root@dejawu:~# iptables -t mangle -A PREROUTING -p tcp -m --string
"pepee" -j DROP
iptables v1.2.7a: Couldn't load match
`--string':/lib/iptables/libipt_--string.so: cannot open shared object
file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

why is not working --string match??
im using pom version patch-o-matic-20030107 under 2.4.20 kernel.







^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: string is not working, any help?
@ 2003-06-11  0:35 George Vieira
  0 siblings, 0 replies; 5+ messages in thread
From: George Vieira @ 2003-06-11  0:35 UTC (permalink / raw)
  To: Esteban, netfilter; +Cc: winfield

Incorrect syntax


-m string --string "search for this"

Thanks,
____________________________________________
George Vieira
Systems Manager
georgev@citadelcomputer.com.au

Citadel Computer Systems Pty Ltd
http://www.citadelcomputer.com.au

Phone   : +61 2 9955 2644
HelpDesk: +61 2 9955 2698
 

-----Original Message-----
From: Esteban [mailto:eribicic@sinectis.com]
Sent: Wednesday, June 11, 2003 9:59 AM
To: netfilter@lists.netfilter.org
Cc: winfield@freegates.be
Subject: string is not working, any help?


root@dejawu:/lib/modules/2.4.20/kernel/net/ipv4/netfilter# lsmod 
Module                  Size  Used by    Tainted: P  
ipt_unclean             6712   0  (unused)
ipt_string              1688   0  (unused)
iptable_nat            18872   0  (autoclean) (unused)
ip_conntrack           24224   1  (autoclean) [iptable_nat]
ip_tables              12952   5  [ipt_unclean ipt_string iptable_nat]
i810_audio             20680   0 
ac97_codec              9992   0  [i810_audio]
8139too                16424   1 
mii                     2272   0  [8139too]
root@dejawu:/lib/modules/2.4.20/kernel/net/ipv4/netfilter# 
root@dejawu:/lib/modules/2.4.20/kernel/net/ipv4/netfilter# 
root@dejawu:/lib/modules/2.4.20/kernel/net/ipv4/netfilter# cd 
root@dejawu:~# 
root@dejawu:~# 
root@dejawu:~# iptables -t mangle -A PREROUTING -p tcp -m --string
"pepee" -j DROP
iptables v1.2.7a: Couldn't load match
`--string':/lib/iptables/libipt_--string.so: cannot open shared object
file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

why is not working --string match??
im using pom version patch-o-matic-20030107 under 2.4.20 kernel.








^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: string is not working, any help?
  2003-06-10 23:59 string is not working, any help? Esteban
@ 2003-06-11  1:16 ` Michael Kearey
  2003-06-11 16:31   ` SBlaze
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Kearey @ 2003-06-11  1:16 UTC (permalink / raw)
  To: IPtables Users

Esteban wrote:
<snip>
> root@dejawu:~# iptables -t mangle -A PREROUTING -p tcp -m --string
> "pepee" -j DROP
> iptables v1.2.7a: Couldn't load match
> `--string':/lib/iptables/libipt_--string.so: 

The clue is above. You don't have 'so' called libipt_--string, it's 
called libipt_string.so

>cannot open shared object
> file: No such file or directory
> 
> Try `iptables -h' or 'iptables --help' for more information.
> 
> why is not working --string match??
> im using pom version patch-o-matic-20030107 under 2.4.20 kernel.

The correct syntax is :

iptables -t mangle -A PREROUTING -p tcp -m string "pepee" -j DROP

Cheers,
Michael



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: string is not working, any help?
@ 2003-06-11  1:31 George Vieira
  0 siblings, 0 replies; 5+ messages in thread
From: George Vieira @ 2003-06-11  1:31 UTC (permalink / raw)
  To: Michael Kearey, IPtables Users

Incorrect. You specify the module you want to use with a '-m string' and then give it's parameter with a '--string "search this"'

Thanks,
____________________________________________
George Vieira
Systems Manager
georgev@citadelcomputer.com.au

Citadel Computer Systems Pty Ltd
http://www.citadelcomputer.com.au

-----Original Message-----
From: Michael Kearey [mailto:mutk@iprimus.com.au]
Sent: Wednesday, June 11, 2003 11:17 AM
To: IPtables Users
Subject: Re: string is not working, any help?


Esteban wrote:
<snip>
> root@dejawu:~# iptables -t mangle -A PREROUTING -p tcp -m --string
> "pepee" -j DROP
> iptables v1.2.7a: Couldn't load match
> `--string':/lib/iptables/libipt_--string.so: 

The clue is above. You don't have 'so' called libipt_--string, it's 
called libipt_string.so

>cannot open shared object
> file: No such file or directory
> 
> Try `iptables -h' or 'iptables --help' for more information.
> 
> why is not working --string match??
> im using pom version patch-o-matic-20030107 under 2.4.20 kernel.

The correct syntax is :

iptables -t mangle -A PREROUTING -p tcp -m string "pepee" -j DROP

Cheers,
Michael




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: string is not working, any help?
  2003-06-11  1:16 ` Michael Kearey
@ 2003-06-11 16:31   ` SBlaze
  0 siblings, 0 replies; 5+ messages in thread
From: SBlaze @ 2003-06-11 16:31 UTC (permalink / raw)
  To: IPtables Users


--- Michael Kearey <mutk@iprimus.com.au> wrote:
> Esteban wrote:
> <snip>
> > root@dejawu:~# iptables -t mangle -A PREROUTING -p tcp -m --string
> > "pepee" -j DROP
> > iptables v1.2.7a: Couldn't load match
> > `--string':/lib/iptables/libipt_--string.so: 
> 
> The clue is above. You don't have 'so' called libipt_--string, it's 
> called libipt_string.so
> 
> >cannot open shared object
> > file: No such file or directory
> > 
> > Try `iptables -h' or 'iptables --help' for more information.
> > 
> > why is not working --string match??
> > im using pom version patch-o-matic-20030107 under 2.4.20 kernel.
> 
> The correct syntax is :
> 
> iptables -t mangle -A PREROUTING -p tcp -m string "pepee" -j DROP
> 
> Cheers,
> Michael
> 
> 
no offence Michael but I think you are wrong

it's -m string --string "string to match"

Cheers
John

=====
"Winky is not knowing how sir, winky is not knowing how?" -=Winky / Harry Potter and the Goblet of Fire=-"

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-06-11 16:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-10 23:59 string is not working, any help? Esteban
2003-06-11  1:16 ` Michael Kearey
2003-06-11 16:31   ` SBlaze
  -- strict thread matches above, loose matches on Subject: below --
2003-06-11  0:35 George Vieira
2003-06-11  1:31 George Vieira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox