summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org>2005-05-17 11:38:37 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org>2005-05-17 11:38:37 +0000
commit5c14f27ef46e65317ca4da8657f7c1a1a91da4c4 (patch)
treeabc22db769c30b45127c793012b357a6b03df2d2 /test.sh
parenta75bb977ff16c9f3b3bdccdcd4173e9ef033463f (diff)
downloadconntrack-tools-5c14f27ef46e65317ca4da8657f7c1a1a91da4c4.tar.gz
conntrack-tools-5c14f27ef46e65317ca4da8657f7c1a1a91da4c4.zip
o Added descriptive error messages.
o Fix wrong flags check in [tcp|udp] proto helpers.
Diffstat (limited to 'test.sh')
-rw-r--r--test.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/test.sh b/test.sh
index 379f950..5999a8f 100644
--- a/test.sh
+++ b/test.sh
@@ -44,13 +44,11 @@ case $1 in
--reply-src $DST --reply-dst $SRC -p tcp \
--orig-port-src $SPORT --orig-port-dst $DPORT \
--reply-port-src $DPORT --reply-port-dst $SPORT \
- --state TIME_WAIT -u ASSURED -t 500
+ --state TIME_WAIT -u ASSURED,SEEN_REPLY -t 500
;;
delete)
- # 66.111.58.52 dst=85.136.125.64 sport=22 dport=60239
- $CONNTRACK -D conntrack --orig-src 66.111.58.1 \
- --orig-dst 85.136.125.64 -p tcp --orig-port-src 22 \
- --orig-port-dst 60239
+ $CONNTRACK -D --orig-src $SRC --orig-dst $DST \
+ -p tcp --orig-port-src $SPORT --orig-port-dst $DPORT
;;
output)
proc=$(cat /proc/net/ip_conntrack | wc -l)