<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3"
    xmlns="http://purl.org/atom/ns#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xml:lang="en">


    <title>Machine Room Cacophony</title>
    <link rel="alternate" type="text/html" href="http://secsup.net/" />
    <tagline>Loud rambling noise</tagline>
    <modified>2009-04-29T04:15:32-05:00</modified>
    <generator url="http://www.pmachine.com/" version="1.4.0">ExpressionEngine</generator>
    <copyright>Copyright (c) 2009, chris</copyright>



    <entry>
      <title>TV Show Schedules - Sanely</title>
      <link rel="alternate" type="text/html" href="http://secsup.net/index.php/shaded_grey/comments/tv_show_schedules_sanely/" /> 
      <id>tag:http://secsup.net/,2009:/1.37</id>
      <issued>2009-04-29T04:07:32-05:00</issued>
      <modified>2009-04-29T04:15:32-05:00</modified>
      <summary>Of all the TV guide-esque sites out there, this one really gets the information out clearly and concisely.</summary>
      <created>2009-04-29T04:07:32-05:00</created>
		<author>
		  <name>chris</name>
		  <email>chris@as701.net</email>
		  		</author>
      <dc:subject></dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>Register for an account (just email that works and a password), set the shows you want to follow, enjoy the resulting output&#8230; seriously, how hard is it for people to make output that&#8217;s useful?? I&#8217;m looking at you TVGuide.com
</p>]]></content>
    </entry>

    <entry>
      <title>DMCrypt - Encrypting your thumbs (drives)</title>
      <link rel="alternate" type="text/html" href="http://secsup.net/index.php/shaded_grey/comments/dmcrypt_encrypting_your_thumbs_drives/" /> 
      <id>tag:http://secsup.net/,2009:/1.36</id>
      <issued>2009-03-21T19:41:51-05:00</issued>
      <modified>2009-03-21T20:25:51-05:00</modified>
      <summary>Using DMCrypt to create, create an encrypted filesystem, mappable and mountable filesystem and mount same.</summary>
      <created>2009-03-21T19:41:51-05:00</created>
		<author>
		  <name>chris</name>
		  <email>chris@as701.net</email>
		  		</author>
      <dc:subject>Security, Unix</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>Using <a href="http://www.saout.de/misc/dm-crypt/" title="DMCrypt">DMCrypt</a> to create an encrypted partition on your thumbdrive.
<br />
 
<br />
   Remove all partitions from the current ThumbDrive:
<br />
     <blockquote>parted -s &#8216;rm 1&#8217; DEVICE</blockquote>
<p>
   Find partitionable size:
<br />
     <blockquote>~$ sudo fdisk -l /dev/sdc | grep bytes | head -1  | sed &#8216;s/^.* \([0123456789]*\) bytes/\1 \/ 1000000/&#8217; | bc
<br />
                        16039
<br />
     </blockquote>
<p>
   Partition the ThumbDrive:
<br />
     <blockquote>parted -s &#8216;mkpart primary 0  16039&#8217; DEVICE</blockquote>
<p>
   Create the DeviceMapper device: 
<br />
     <blockquote>sudo cryptsetup create NAME DEVICE
<br />
                         passphrase:
<br />
     </blockquote>
<p>
   Make a filesystem on the mapped device (non-journaled FS&#8217;s only):
<br />
    <blockquote>
<br />
      mke2fs /dev/mapper/NAME
<br />
    </blockquote>
<p>
   Mount the filesystem where appropriate:
<br />
   <blockquote>
<br />
     mount /dev/mapper/NAME /map-point
<br />
   </blockquote></p>]]></content>
    </entry>

    <entry>
      <title>Making and Installing a SSL Cert from StartSSL</title>
      <link rel="alternate" type="text/html" href="http://secsup.net/index.php/shaded_grey/comments/making_and_installing_a_ssl_cert_from_startssl/" /> 
      <id>tag:http://secsup.net/,2009:/1.35</id>
      <issued>2009-01-10T06:11:27-05:00</issued>
      <modified>2009-02-25T17:59:27-05:00</modified>
      <summary>StartSSL offers free 1 yr SSL certs with 256-bit encryption capable for web/email/other servers. These are convenient (free!) useful and FREE! (and they work in all current browsers I use save Opera).</summary>
      <created>2009-01-10T06:11:27-05:00</created>
		<author>
		  <name>chris</name>
		  <email>chris@as701.net</email>
		  		</author>
      <dc:subject>Security, Unix</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p><a href="http://www.startssl.com/" title="StartSSL">StartSSL</a> offers SSL Certificates for free, 1 yr limited and not 100% functional in <a href="http://www.opera.com/" title="Opera">Opera</a> (their CA cert is missing in Opera). I setup certs on my services (web/imap/smtp) and have (aside from <a href="http://www.opera.com/" title="Opera">Opera</a>) been very happy with their performance. 
</p>
<p>
Here&#8217;s a quick tutorial for:
</p>
<p>
* setting up a CSR (Certificate Signing Request)
<br />
* submitting the CSR
<br />
* installing the intermediate CA certs
</p>
<p>
This assumes you already have ssl enabled <a href="http://www.apache.org/" title="web">web</a>/<a href="http://www.postfix.org/" title="mail">mail</a> services, that you have <a href="http://www.openssl.org/" title="openssl">openssl</a> accessible on a system under your control and that you actually want a decent SSL certificate installed.
</p>
<p>
Start out by going to the <a href="http://www.startssl.com/" title="StartSSL">StartSSL</a> website, register to be a user, download and install the client-certificate they created for you. Now, we can start making our certificates:
</p>
<p>
Create an RSA encoded PEM key
<br />
<blockqupte>
<br />
%openssl genrsa -des3 -out my-domain.net.key 1024
<br />
Generating RSA private key, 1024 bit long modulus
<br />
............++++++
<br />
...++++++
<br />
e is 65537 (0x10001)
<br />
Enter pass phrase for my-fictitious-domain.com.key:
<br />
Verifying - Enter pass phrase for my.fictitious-domain.com.key:
<br />
</blockquote>
<p>
Generate the CSR:
<br />
<blockquote>
<br />
%openssl req -new -key my-domain.key -out blah.my-domain.csr
<br />
... answer questions&#8230;
<br />
</blockquote>
<p>
Copy/Paste the CSR into the provided text box on <a href="http://www.startssl.com/" title="StartSSL">StartSSL</a>, follow the prompts, validate your email address and then download your Certificate file. Install the Certificate file someplace you&#8217;ll find it later (/usr/local/ssl/certs, /etc/ssl/certs, /usr/local/apache/certs/). Download the CA certs from <a href="http://www.startssl.com" title="StartSSL">StartSSL</a> be sure to download these at least:
</p>
<blockquote>
<br />
Class 1 Intermediate Server CA
<br />
</blockquote>
<p>
Save this where you saved the certificate for your host.
</p>
<p>
Add the following lines to your Apache SSL config:
</p>
<blockquote>
<br />
SSLCertificateFile /location/to/your/cert/file.pem
<br />
SSLCertificateKeyFile /location/to/your/keyfile.key
<br />
SSLCertificateChainFile /location/to/startcom.class1.server.ca.crt
<br />
</blockquote>
<p>
NOTE WELL: the use of an encrypted key file is &#8216;recommended&#8217; so that if someone unsavory gets ahold of your cert file and key file they can&#8217;t become your webserver. This does, however, mean that the service will not auto-start since apache will require you to type the passphrase into a dialog to decrypt the key. This can be avoided, at the expense of some security with:
</p>
<blockquote>
<br />
openssl rsa -in your-domain.key -out your.domain.decr.key
<br />
</blockquote>
<p>
and making the line referencing the key in the apache config:
</p>
<blockquote>
<br />
SSLCertificateKeyFile /location/to/your/keyfile/your.domain.decr.key
<br />
</blockquote>
<p>
Now, restart your web service and rejoice.
</p>]]></content>
    </entry>

    <entry>
      <title>Onkyo TX SR605 Rear Panel</title>
      <link rel="alternate" type="text/html" href="http://secsup.net/index.php/shaded_grey/comments/onkyo_tx_sr605_rear_panel/" /> 
      <id>tag:http://secsup.net/,2009:/1.34</id>
      <issued>2009-01-01T01:25:56-05:00</issued>
      <modified>2009-01-01T01:26:56-05:00</modified>
      <summary>Rear panel layout for TX SR605.</summary>
      <created>2009-01-01T01:25:56-05:00</created>
		<author>
		  <name>chris</name>
		  <email>chris@as701.net</email>
		  		</author>
      <dc:subject></dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>Here&#8217;s the back panel/cable layout
</p>
<p>
<img src="http://www.son-video.com/Rayons/HomeCinema/AmpliAV/Onkyo/TXSR805/TXSR805_dos_TG.jpg" />
</p>]]></content>
    </entry>

    <entry>
      <title>Searching for Deferred Messages in postfix logs</title>
      <link rel="alternate" type="text/html" href="http://secsup.net/index.php/shaded_grey/comments/searching_for_deferred_messages_in_postfix_logs/" /> 
      <id>tag:http://secsup.net/,2008:/1.33</id>
      <issued>2008-10-12T14:24:05-05:00</issued>
      <modified>2008-10-12T14:32:05-05:00</modified>
      <summary>Little command-line utils to find deferred/bounced/lost emails to specific providers</summary>
      <created>2008-10-12T14:24:05-05:00</created>
		<author>
		  <name>chris</name>
		  <email>chris@as701.net</email>
		  		</author>
      <dc:subject>Networking, Unix</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>Looking for ATT users with &#8216;restricted sms deliver&#8217; problems:
<br />
<blockquote><p>
user $> grep &#8220;restricted SMS e-mail&#8221; /var/log/mail.log | sed &#8216;s/^.* to=//&#8217; | sed &#8216;s/,.*$//&#8217; | sed &#8216;s/[<>]//g' | sed 's/@.*$//' | sort -rn | uniq -c | sort -rn | more
<br />
      1 6307282195
<br />
      1 6307213667
<br />
      1 6306997321
<br />
      1 6306990660
<br />
      1 6306676641
<br />
      1 6306247678
</p>
</blockquote>
<p>
Looking for bounced VZW users:
<br />
<blockquote>
<br />
user $> grep vtext /var/log/doit-mail.log  | grep -v &#8220;status=sent&#8221; | grep &#8220;status=deferred&#8221; | sed &#8216;s/^.* to=//&#8217; | sed &#8216;s/, .*$//&#8217; | sed &#8216;s/[<>]//' | sed 's/@.*$//' | sort -rn | uniq -c | sort -rn | more
<br />
     11 3123392171
<br />
     10 8123202309
<br />
      9 6302941108
<br />
      8 8477076867
<br />
      8 7733320757
<br />
      8 6179534027
<br />
      7 8152631645
<br />
</blockquote>
<p>
- more in a bit -
</p>]]></content>
    </entry>

    <entry>
      <title>Garmin ETrex Legend + Linux</title>
      <link rel="alternate" type="text/html" href="http://secsup.net/index.php/shaded_grey/comments/garmin_etrex_legend_linux/" /> 
      <id>tag:http://secsup.net/,2008:/1.32</id>
      <issued>2008-08-19T03:30:38-05:00</issued>
      <modified>2008-08-26T17:40:38-05:00</modified>
      <summary>A quick reminder/tutorial on downloading track information from a Garmin ETrex Legend.</summary>
      <created>2008-08-19T03:30:38-05:00</created>
		<author>
		  <name>chris</name>
		  <email>chris@as701.net</email>
		  		</author>
      <dc:subject>Unix</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>You&#8217;ll need to install at least:
</p>
<blockquote>
<br />
gpstrans - communicate with Garmin GPS receiver
<br />
</blockquote>
<p>
you may also have better luck with the more robust (seemingly)
<br />
<blockquote>
<br />
gpsbabel - Universal GPS format translator
<br />
</blockquote>
<p>
Either will let you connect via a USB-Serial dongle to the serial port on the Garmin.
<br />
(what model GPS is this?)
</p>
<blockquote>
<br />
morrowc@tweezer:~$ gpstrans  -p /dev/ttyUSB0 -i 
<br />
GPStrans (ASCII) - Version 0.40
<br />
Copyright (c) 2005 by Carsten Tschach (tschach@zedat.fu-berlin.de)
<br />
Linux/KKJ mods by     Janne Sinkkonen <janne@iki.fi> (1996)
<br />
Copyright (c) 2000 German Grid by Andreas Lange <andreas.lange@rhein-main.de>
<br />
Copyright (c) 1998,2000 Mayko-mXmap mods by Matthias Kattanek <mattes@ugraf.com>
<br />
Copyright (c) 2001 Development by Joao Seabra-CT2GNL <seabra@ci.AAC.uc.pt>
<br />
Copyright (c) 2005 Development by Jim Van Zandt <jrvz@comcast.removeme.net>
<br />
Warning: device with product ID 411 is unknown - assuming it&#8217;s like a GPS II.
<br />
Connected GPS [/dev/ttyUSB0] is: Garmin eTrex Legend Software Version - V3.7
<br />
</blockquote>
<p>
Lets download some waypoints:
</p>
<blockquote>
<br />
morrowc@tweezer:~$ gpstrans  -p /dev/ttyUSB0 -dt
<br />
Warning: device with product ID 411 is unknown - assuming it&#8217;s like a GPS II.
<br />
Format: DMS  UTC Offset:&nbsp;  0.00 hrs  Datum[100]: WGS 84
<br />
Type    Date                    Latitude        Longitude       
<br />
H       -1075874956
<br />
T       08/17/2008 11:35:00     XX°52&#8217;25.5&#8221;     -YY°58&#8217;53.3&#8221;
<br />
T       08/17/2008 11:35:40     XX°52&#8217;25.4&#8221;     -YY°58&#8217;53.2&#8221;
<br />
T       08/17/2008 11:36:23     XX°52&#8217;25.3&#8221;     -YY°58&#8217;53.1&#8221;
<br />
.
<br />
.
<br />
.
<br />
</blockquote>
<p>
Success! Now, take your output, push that through a php script and apply it to google-maps!
</p>
<p>
The gpsbabel version of getting content/tracks off the GPS device is:
<br />
<blockquote>
<br />
gpsbabel -t - i garmin -f /dev/ttyUSB0 -o kml -F /tmp/track_output.kml
<br />
</blockquote>
<p>
The kml file can then be loaded directly in <a href="http://earth.google.com/" title="google-earth">google-earth</a> and you can watch your icon roll along the path of the GPS route.
</p>
]]></content>
    </entry>

    <entry>
      <title>Enabling Malware Blocking via DNS</title>
      <link rel="alternate" type="text/html" href="http://secsup.net/index.php/shaded_grey/comments/enabling_malware_blocking_via_dns/" /> 
      <id>tag:http://secsup.net/,2008:/1.31</id>
      <issued>2008-06-26T04:55:23-05:00</issued>
      <modified>2008-06-26T05:27:23-05:00</modified>
      <summary>Often Malware can be downloaded from websites as an accident (hidden iframe content on compromised websites) or may need to communicate to an update server or control server across the Internet. This can be cut off with the use of the DNS and your local cache &amp;amp; recursive resolver.</summary>
      <created>2008-06-26T04:55:23-05:00</created>
		<author>
		  <name>chris</name>
		  <email>chris@as701.net</email>
		  		</author>
      <dc:subject></dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>There are quite a few lists of malware download sites available, <a href="http://dns-bh.sagadc.org/" title="http://dns-bh.sagadc.org/">this one</a> seems to have a decently comprehensive list and it comes in a good format <a href="http://www.isc.org/sw/bind/" title="bind">bind</a> configuration format:
</p>
<blockquote>
<br />
zone &#8220;007arcadegames.com&#8221;  {type master; file &#8220;/etc/namedb/blockeddomain.hosts&#8221;;};
<br />
zone &#8220;008i.com&#8221;  {type master; file &#8220;/etc/namedb/blockeddomain.hosts&#8221;;};
<br />
zone &#8220;008k.com&#8221;  {type master; file &#8220;/etc/namedb/blockeddomain.hosts&#8221;;};
<br />
</blockquote>
<p>
SAGA-dc.org even provides the <a href="http://dns-bh.sagadc.org/files/blockeddomain.hosts" title="empty zone file">empty zone file</a>, to do this in an automated fashion:
</p>
<p>
put in your root crontab:
<br />
<blockquote>
<br />
31 0,6,12,18 * * * /usr/bin/wget -q -O - <a href="http://secsup.net/index.php?URL=http://dns-bh.sagadc.org%2Ffiles%2Fspywaredomains.zones" target="_blank" >http://dns-bh.sagadc.org/files/spywaredomains.zones</a> | sed &#8216;s/\/namedb\//\/bind\//&#8217; > /etc/bind/spywaredomains.zones 2>&amp;1  &amp;&amp; pkill -HUP named
<br />
</blockquote>
<p>
setup named to read this new zone info, add to the bottom of your named.conf:
<br />
<blockquote>
<br />
include &#8220;/etc/bind/spywaredomains.zones&#8221;;
<br />
</blockquote>
<p>
Now, anyone that uses your recursive resolver should better protected than before&#8230;
</p>]]></content>
    </entry>

    <entry>
      <title>SSH Key authentication and Tunneling to a proxy host</title>
      <link rel="alternate" type="text/html" href="http://secsup.net/index.php/shaded_grey/comments/ssh_key_authentication_and_tunneling_to_a_proxy_host/" /> 
      <id>tag:http://secsup.net/,2008:/1.30</id>
      <issued>2008-06-23T20:00:34-05:00</issued>
      <modified>2008-06-23T20:28:34-05:00</modified>
      <summary>Someone asked how to set this up quickly and easily&amp;#8230; the idea being:

1) you have a host somewhere on the interwebs that&amp;#8217;s accessible via SSH and runs a squid/proxy for you

2) you have a macintosh

3) you don&amp;#8217;t normally do unix-y things

4) you&amp;#8217;d like a command-line quick and easy setup to allow you to proxy your traffic (web/chat) through your ssh host and sqiud</summary>
      <created>2008-06-23T20:00:34-05:00</created>
		<author>
		  <name>chris</name>
		  <email>chris@as701.net</email>
		  		</author>
      <dc:subject>Macintosh, Networking, Security, Unix</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>Mac&#8217;s are unix these days, they have a shell application called: &#8220;Terminal.app&#8221; you&#8217;ll use this to setup the keys and to do the proxy-things later on. Follow these steps
</p>
<p>
1) open Terminal.app (Applications/Utilities/Terminal.all or if you see below and install quicksilver: Cmd-space Term)
</p>
<p>
2) use ssh-keygen to make a key:
</p>
<blockquote>
<br />
mba:~ you$ ssh-keygen -t dsa -f .ssh/id_dsa
<br />
Generating public/private dsa key pair.
<br />
Enter passphrase (empty for no passphrase): (put in your passphrase here)
<br />
Enter same passphrase again: (repeat passphrase)
<br />
Your identification has been saved in .ssh/id_dsa.
<br />
Your public key has been saved in .ssh/id_dsa.pub.
<br />
The key fingerprint is:
<br />
d6:d3:54:79:16:14:ab:42:cf:80:52:6f:9b:55:5e:4e morrowc@mba.local
<br />
</blockquote>
<p>
3) scp that id_dsa.pub to your ssh bastion host
</p>
<blockquote>
<br />
mba:~ you$ scp .ssh/id_dsa.pub you@bastion:.ssh/mba_id_dsa.pub
<br />
Password: (your passwd here)
<br />
</blockquote>
<p>
4) ssh to the bastion and append the mba_id_dsa.pub to your .ssh/authorized_keys file
</p>
<blockquote>
<br />
	bastion:~ you$ cat .ssh/mba_id_dsa.pub >> .ssh/authorized_keys
<br />
	bastion:~ you$ chmod 400 .ssh/authorized_keys
<br />
</blockquote>
<p>
5) exit the ssh and attempt an ssh again, you should be prompted for your passPHRASE not passWORD.
</p>
<p>
All good! Now for the tunneling bits, I suggest:
</p>
<p>
1) 8080 for web traffic (http/https/ftp)
<br />
2) 8000 for chat traffic (aim/gtalk don&#8217;t like squid for some reason, but don&#8217;t mind socks proxying)
</p>
<p>
We&#8217;ll be setting up an alias command that does all the hard work for us, this alias lives in your ~/.bash_profile file, here&#8217;s the setup:
</p>
<p>
1) edit ~/.bash_profile  (vi ~/.bash_profile)
<br />
2) add this
</p>
<blockquote>
<br />
	alias proxy="ssh you@ssh-bastion -D127.0.0.1:8000 -L8080:127.0.0.1:3128&#8221;
<br />
</blockquote>
<p>
Now, to test this, do:
</p>
<blockquote>
<br />
	mba:~ you$ . .bash_profile
<br />
	mba:~ you$ proxy
<br />
</blockquote>
<p>
which should log you into your bastion host and setup the tunnels, which you can verify with firefox/safari provided you setup the proxy-bits on those applications.
</p>
<p>
All this said, i&#8217;d get the following additional applications for your Mac:
</p>
<p>
1) <a href="http://www.adiumx.com/" title="Adium-X">Adium-X</a> the all-over-goodness chat client (yahoo/msn/gtalk/aim and more protocols available)
<br />
2)  <a href="http://mac.softpedia.com/get/Utilities/Quicksilver.shtml" title="QuickSilver">QuickSilver</a> a replacement to the horrid Spotlight searching, includes app launching capabilties as well
</p>]]></content>
    </entry>

    <entry>
      <title>Ubuntu Hardy Heron TCP/Firewall State Table tweaks</title>
      <link rel="alternate" type="text/html" href="http://secsup.net/index.php/shaded_grey/comments/ubuntu_hardy_heron_tcp_firewall_state_table_tweaks/" /> 
      <id>tag:http://secsup.net/,2008:/1.29</id>
      <issued>2008-06-04T21:01:23-05:00</issued>
      <modified>2008-06-04T21:10:23-05:00</modified>
      <summary>Hardy Heron installs just nicely, but it&amp;#8217;s got some issues when it comes to moderate traffic loads and NAT state maintenance&amp;#8230;</summary>
      <created>2008-06-04T21:01:23-05:00</created>
		<author>
		  <name>chris</name>
		  <email>chris@as701.net</email>
		  		</author>
      <dc:subject></dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>After installation if Hardy Heron, if you use <a href="http://netfilter.org/" title="netfilter/iptables">netfilter/iptables</a> to provide both security and NAT services you may run into issues with nf_conntrack not expiring connection state entries fast enough. After some poking around on <a href="http://www.google.com/" title="google">google</a> I was resigned to rebooting every day, that seemed crappy and almost microsoft-like. So, taking a closer look at the system level variables at my disposal with sysctl I found:
<br />
<blockquote>
<br />
########
<br />
# special additions for tcp speedups
<br />
net/ipv4/tcp_tw_reuse = 1
<br />
net/ipv4/tcp_tw_recycle = 1
<br />
net/core/somaxconn = 1024
<br />
net/ipv4/ip_local_port_range = 2048 65000
<br />
#
<br />
# nf_conntrack additions
<br />
net/netfilter/nf_conntrack_generic_timeout = 300
<br />
net/netfilter/nf_conntrack_tcp_timeout_established = 14400
<br />
net/netfilter/nf_conntrack_tcp_timeout_fin_wait = 20
<br />
net/netfilter/nf_conntrack_tcp_timeout_close_wait = 20
<br />
net/netfilter/nf_conntrack_tcp_timeout_last_ack = 10
<br />
net/netfilter/nf_conntrack_tcp_timeout_time_wait = 20
<br />
net/netfilter/nf_conntrack_tcp_timeout_close = 10
<br />
net/netfilter/nf_conntrack_udp_timeout = 10
<br />
net/netfilter/nf_conntrack_udp_timeout_stream = 30
<br />
net/netfilter/nf_conntrack_icmp_timeout = 5
<br />
</blockquote>
<p>
This reduces some conntrack timeouts significantly, take:
</p>
<blockquote>
<br />
net/netfilter/nf_conntrack_tcp_timeout_established = 14400
<br />
</blockquote>
<p>
for instance which was set to something on the order of: 432000 which is about (432000/86400 = 5 days). So, anything that didn&#8217;t end properly (apparently lots of spambots fall into this category) would stick around for almost 5 days time. With a limit of 65k sessions in the nf_conntrack state-table this is obviously a bad thing. So, add the above text to your /etc/sysctl.conf and reload that with sysctl -p /etc/sysctl.conf&#8230;
<br />

</p>]]></content>
    </entry>

    <entry>
      <title>Firewall Rules to drop Internet Nuisance Networks</title>
      <link rel="alternate" type="text/html" href="http://secsup.net/index.php/shaded_grey/comments/firewall_rules_to_drop_internet_nuisance_networks/" /> 
      <id>tag:http://secsup.net/,2008:/1.28</id>
      <issued>2008-05-22T18:33:37-05:00</issued>
      <modified>2008-05-22T18:54:37-05:00</modified>
      <summary>There are a host of well known (to security folks at the least) nuisance networks. This is a set of simple iptables rules to drop those networks as sources.</summary>
      <created>2008-05-22T18:33:37-05:00</created>
		<author>
		  <name>chris</name>
		  <email>chris@as701.net</email>
		  		</author>
      <dc:subject></dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>For ease of use, you can <a href="http://www.gnu.org/software/wget/" title="wget">wget</a> to grab the listing which is in the form:
</p>
<blockquote>
<br />
-A INPUT -s ip-block/mask -j DROP
<br />
-A INPUT -s ip-block/mask -j DROP
<br />
-A INPUT -s ip-block/mask -j DROP
<br />
</blockquote>
<p>
downloads available at:
</p>
<p>
<a href="http://secsup.net/files/fw-drop-list.txt" title="linky-loo">linky-loo</a>
</p>
<p>
Obviously you can sed/awk/perl your way into the final listing that fits your model better. Some other resources on blocking known bad traffic can be found over at:
</p>
<p>
<a href="http://www.dshield.org/" title="DShield">DShield</a>
<br />
<a href="http://www.mynetwatchman.com/" title="MyNetWatchman">MyNetWatchman</a>
</p>
<p>
Note that the list I have isn&#8217;t from either of these&#8230; but they are great resources none-the-less.
</p>]]></content>
    </entry>


</feed>