Snort mailing list archives

Re: memcap maxed out


From: Khanh Tran <ktran () ktran com>
Date: Tue, 16 Sep 2014 11:29:47 -0400 (EDT)

Hi,

I'm getting similar messages even after maxing out memcap, max_tcp and max_udp
 - Per  http://manual.snort.org/node17.html#SECTION00322000000000000000

Are these messages normal?

S5: Session exceeded configured max bytes to queue 1048576 using 1049195 bytes
(client queue). <IP redacted>  53092 --> 66.226.164.9 80 (0) : LWstate 0x40
LWFlags 0x2102
S5: Session exceeded configured max bytes to queue 1048576 using 1050084 bytes
(client queue). <IP redacted> 59595 --> 66.226.164.10 80 (0) : LWstate 0x40
LWFlags 0x2102
S5: Session exceeded configured max segs to queue 2621 using 2621 segs (client
queue). <IP redacted> 65038 --> 205.159.88.54 443 (0) : LWstate 0x40 LWFlags
0x2102
S5: Pruned session from cache that was using 1103949 bytes (stale/timeout). <IP
redacted> 59400 --> 208.85.46.22 80 (0) : LWstate 0xe LWFlags 0x61e002
S5: Session exceeded configured max segs to queue 2621 using 2621 segs (client
queue). <IP redacted> 60339 --> 66.226.164.9 80 (0) : LWstate 0x40 LWFlags
0x2102
S5: Session exceeded configured max bytes to queue 1048576 using 1048855 bytes
(client queue). <IP redacted> 61941 --> 66.226.164.10 80 (0) : LWstate 0x40
LWFlags 0x2102
S5: Session exceeded configured max segs to queue 2621 using 2621 segs (client
queue). <IP redacted> 63946 --> 66.243.69.35 10200 (0) : LWstate 0x40 LWFlags
0x2102



# etc/snort/snort.conf

# Target-Based stateful inspection/stream reassembly. For more information, see
README.stream5

preprocessor stream5_global: track_tcp yes, \

track_udp yes, \
track_icmp no, \
memcap 1073741824 \
max_tcp 1048576, \
max_udp 1048576, \
max_active_responses 2, \
min_response_seconds 5

preprocessor stream5_tcp: policy windows, detect_anomalies, require_3whs 180, \
overlap_limit 10, small_segments 3 bytes 150, timeout 180, \
ports client 21 22 23 25 42 53 70 79 109 110 111 113 119 135 136 137 139 143 \
161 445 513 514 587 593 691 1433 1521 1741 2100 3306 6070 6665 6666 6667 6668
6669 \
7000 8181 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779, \
ports both 36 80 81 82 83 84 85 86 87 88 89 90 110 311 383 443 465 563 555 591
593 631 636 801 808 818 901 972 989 992 993 994 995 1158 1220 1414 1533 1741
1830 1942 2231 2301 2381 2809 2980 3029 3037 3057 3128 3443 3702 4000 4343 4848
5000 5117 5250 5600 6080 6173 6988 7907 7000 7001 7071 7144 7145 7510 7802 7770
7777 7778 7779 \
7801 7900 7901 7902 7903 7904 7905 7906 7908 7909 7910 7911 7912 7913 7914 7915
7916 \
7917 7918 7919 7920 8000 8008 8014 8028 8080 8081 8082 8085 8088 8090 8118 8123
8180 8181 8222 8243 8280 8300 8333 8344 8500 8509 8800 8888 8899 8983 9000 9060
9080 9090 9091 9111 9290 9443 9999 10000 11371 12601 13014 15489 29991 33300
34412 34443 34444 41080 44449 50000 50002 51423 53331 55252 55555 56712
preprocessor stream5_udp: timeout 180



Thanks.



KT



On September 16, 2014 at 10:50 AM Sharif Uddin <Sharif.Uddin () spectrumasa com>
wrote:


 Hello



 I have set stream5 as follows



 preprocessor stream5_global: track_tcp yes, \

    track_udp yes, \

    track_icmp no, \

    memcap 1073741824, \

    max_tcp 262144, \

    max_udp 131072, \

    max_active_responses 2, \

    min_response_seconds 5

 preprocessor stream5_tcp: policy windows, detect_anomalies, require_3whs 180,
max_queued_segs 0, max_queued_bytes 0, \

    overlap_limit 10, small_segments 3 bytes 150, timeout 180, \





 however I still get the following in logs. Is this normal?









 Sep 16 15:45:00 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 137 ssns remain.  memcap: 1073734853/1073741824

 Sep 16 15:45:00 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 132 ssns remain.  memcap: 1073733155/1073741824

 Sep 16 15:45:01 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 156 ssns remain.  memcap: 1073728713/1073741824

 Sep 16 15:45:01 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 151 ssns remain.  memcap: 1073737880/1073741824

 Sep 16 15:45:01 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 147 ssns remain.  memcap: 1073739465/1073741824

 Sep 16 15:45:01 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 143 ssns remain.  memcap: 1073739742/1073741824

 Sep 16 15:45:01 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 138 ssns remain.  memcap: 1073739597/1073741824

 Sep 16 15:45:01 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 133 ssns remain.  memcap: 1073739179/1073741824

 Sep 16 15:45:01 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 128 ssns remain.  memcap: 1073739614/1073741824

 Sep 16 15:45:01 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 123 ssns remain.  memcap: 1073740666/1073741824

 Sep 16 15:45:01 snort snort[1670]: S5: Pruned session from cache that was
using 30689490 bytes (memcap/check). 172.16.0.200 54138 --> 172.16.0.22 445
(0) : LWstate 0x40 LWFlags 0x422101

 Sep 16 15:45:01 snort snort[1670]: S5: Pruned 5 sessions from cache for
memcap. 118 ssns remain.  memcap: 1043016415/1073741824







 Sharif Uddin
 Development/Support Engineer
 -------------------


 Spectrum Geo Ltd
 Dukes Court, Duke Street
 Woking, Surrey
 GU21 5BH
 UNITED KINGDOM


 Tel: +44 (0) 1483 730201
 Fax: +44 (0) 1483 762620



 www.spectrumasa.com <http://www.spectrumasa.com/>




 IMPORTANT - This message and any attached files contain information intended
for the exclusive use of the party or parties to whom it is addressed and may
contain information that is proprietary, privileged, confidential and/or
exempt from disclosure under applicable law. If you are not an intended
recipient, you are hereby notified that any viewing, copying, disclosure or
distribution of this information may be subject to legal restriction or
sanction. Please notify the sender immediately and delete the original message
without making any copies. Copyright in this email and any attachments belong
to Spectrum Geo Limited.
 We cannot guarantee the security or confidentiality of email communications.
We do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email.
 Email communication with Spectrum Geo Ltd., may be monitored as permitted by
UK legislation.
 Spectrum Geo Limited, is a limited company registered in England and Wales.
Registered number: 1979422. Registered office: 95 Aldwych, London WC2B 4JF.




------------------------------------------------------------------------------
 Want excitement?
 Manually upgrade your production database.
 When you want reliability, choose Perforce.
 Perforce version control. Predictably reliable.

http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk_______________________________________________
 Snort-users mailing list
 Snort-users () lists sourceforge net
 Go to this URL to change user options or unsubscribe:
 https://lists.sourceforge.net/lists/listinfo/snort-users
 Snort-users list archive:
 http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

 Please visit http://blog.snort.org to stay current on all the latest Snort
news!


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: