Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to enable statitic module in iptables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
harrywang
n00b
n00b


Joined: 21 Oct 2011
Posts: 1

PostPosted: Fri Oct 21, 2011 9:58 am    Post subject: how to enable statitic module in iptables Reply with quote

The following commands will have two results on my two machines.

[cmd]
iptables -A PREROUTING -t mangle -i eth0 -p tcp -s 10.10.1.10 -d 10.10.1.20 --dport 7890 -m state --state NEW -m statistic --mode nth --every 1 --packet 0 -j CONNMARK --set-mark 0x1ed20100

[RESULT#1]
[root@Rhel5-1 dfm2]# service iptables status
Table: mangle
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination
1 CONNMARK tcp -- 10.10.1.10 10.10.1.20 tcp dpt:7890 state NEW statistic mode nth every 1 CONNMARK set 0x1ed20100
[RESULT#2]
[root@test235 dfmserver]# service iptables status
Table: mangle
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination
1 CONNMARK tcp -- 10.10.1.10 10.10.1.20 tcp dpt:7890 state NEW UNKNOWN match `statistic' CONNMARK set 0x1ed20100

why is "UNKNOW match" reported in RESULT#2?


how to enalbe statitic module in iptables?

Did you have such a question?
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Fri Oct 21, 2011 10:28 am    Post subject: Reply with quote

Is the appropriate module loaded? What does you kernel .config look like?
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum