<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Powered By Apathy</title>
	<atom:link href="http://poweredbyapathy.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://poweredbyapathy.com</link>
	<description></description>
	<lastBuildDate>Tue, 10 Aug 2010 02:46:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Useful SNMP OIDs</title>
		<link>http://poweredbyapathy.com/useful-snmp-oidsoids/</link>
		<comments>http://poweredbyapathy.com/useful-snmp-oidsoids/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 02:25:49 +0000</pubDate>
		<dc:creator>PBA</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Network Managment]]></category>

		<guid isPermaLink="false">http://poweredbyapathy.com/?p=327</guid>
		<description><![CDATA[I&#8217;ll be adding more to the list as I discover them, but I wanted to record this somewhere outside of Cacti as it was somewhat of a challenge to track down. Cisco Active NAT Translations OID enterprises.9.10.77.1.2.3.0 # snmpget -Of -v2c -c skynet 10.250.10.1 enterprises.9.10.77.1.2.3.0 .iso.org.dod.internet.private.enterprises.9.10.77.1.2.3.0 = Gauge32: 102 Resources Cisco SNMP Object Navigator Cisco [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll be adding more to the list as I discover them, but I wanted to record this somewhere outside of Cacti as it was somewhat of a challenge to track down.</p>
<p><strong>Cisco Active NAT Translations OID</strong></p>
<p><code>enterprises.9.10.77.1.2.3.0</code></p>
<pre><code># snmpget -Of -v2c -c skynet 10.250.10.1 enterprises.9.10.77.1.2.3.0
.iso.org.dod.internet.private.enterprises.9.10.77.1.2.3.0 = Gauge32: 102</code></pre>
<p><strong>Resources</strong></p>
<p><a href="http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en">Cisco SNMP Object Navigator</a><br />
<a href="http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml">Cisco MIB Repository and misc notes</a><br />
<a href="http://www.cisco.com/en/US/tech/tk648/tk362/technologies_q_and_a_item09186a00800b69ac.shtml">Cisco SNMP Counters: Frequently Asked Questions</a></p>
]]></content:encoded>
			<wfw:commentRss>http://poweredbyapathy.com/useful-snmp-oidsoids/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating to nfdump 1.6.1 and nfsen 1.3.4</title>
		<link>http://poweredbyapathy.com/updating-to-nfdump-1-6-1-and-nfsen-1-3-4/</link>
		<comments>http://poweredbyapathy.com/updating-to-nfdump-1-6-1-and-nfsen-1-3-4/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 02:12:34 +0000</pubDate>
		<dc:creator>PBA</dc:creator>
				<category><![CDATA[Linux/BSD]]></category>

		<guid isPermaLink="false">http://poweredbyapathy.com/?p=321</guid>
		<description><![CDATA[After updating to CentOS 5.5 I received the following when attempting to start nfsen: Starting nfsendPANIC nfsend dies: RRD version '1.4004' not yet supported! RRD version '1.4004' not yet supported! Previously I had worked around this issue by editing the NfSenRRD.pm file to allow the RRD version I had installed, which obviously isn&#8217;t an ideal [...]]]></description>
			<content:encoded><![CDATA[<p>After updating to CentOS 5.5 I received the following when attempting to start nfsen:</p>
<pre><code>Starting nfsendPANIC nfsend dies: RRD version '1.4004' not yet supported!

RRD version '1.4004' not yet supported!</code></pre>
<p>Previously I had worked around this issue by editing the <code>NfSenRRD.pm</code> file to allow the RRD version I had installed, which obviously isn&#8217;t an ideal solution. Both nfdump and nfsen had been updated since I last checked, and the changelog included support for RRD 1.4x. The update process was quite painless:</p>
<p>nfdump</p>
<p>Download and extract<br />
check the INSTALL file</p>
<pre><code>./configure --enable-nfprofile --with-rrdpath=/usr/bin
make
make install

/usr/local/bin/nfdump -V
/usr/local/bin/nfdump: Version: 1.6.1 $LastChangedDate: 2010-03-05 07:50:35 +0100 (Fri, 05 Mar 2010) $</pre>
<p></code></p>
<p>Nfsen</p>
<p>Download and extract<br />
check the README file</p>
<pre><code>./install.pl [path/to/your/nfsen/etc/nfsen.conf]

/usr/local/nfsen/bin/nfsen -V
/usr/local/nfsen/bin/nfsen: 1.3.4 $Id: nfsen 65 2010-07-04 19:40:16Z haag $</pre>
<p></code></p>
<pre><code>/usr/local/nfsen/bin/nfsen start
Starting nfcapd:(starwish)
Run: /usr/local/bin/nfcapd -w -D -p 9991 -u apache -g apache -B 200000 -S 1 -P /usr/local/nfsen/var/run/starwish.pid   -I starwish -l /usr/local/nfsen/profiles-data/live/starwish
[10182]
Starting nfsend.</pre>
<p></code></p>
<p>All done.</p>
]]></content:encoded>
			<wfw:commentRss>http://poweredbyapathy.com/updating-to-nfdump-1-6-1-and-nfsen-1-3-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Networking Maths</title>
		<link>http://poweredbyapathy.com/networkin-maths/</link>
		<comments>http://poweredbyapathy.com/networkin-maths/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 11:29:07 +0000</pubDate>
		<dc:creator>PBA</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://poweredbyapathy.com/?p=263</guid>
		<description><![CDATA[Quick reference for some common and simple equations used in networking, I&#8217;ll be adding more as I use/forget them. Number of hosts or subnets: Number of &#8220;usable&#8221; hosts or subnets: (n being the number of borrowed bits) Number of links required for a full mesh network: or (n being the number of nodes in the [...]]]></description>
			<content:encoded><![CDATA[<p>Quick reference for some common and simple equations used in networking, I&#8217;ll be adding more as I use/forget them.</p>
<p><span style="text-decoration: underline;">Number of hosts or subnets:</span> <img class="alignnone size-full wp-image-271" title="2^n" src="http://poweredbyapathy.com/wp-content/uploads/2010/02/hosts1.png" alt="2^n" width="16" height="12" /><br />
<span style="text-decoration: underline;">Number of &#8220;usable&#8221; hosts or subnets:</span> <img class="alignnone size-full wp-image-272" title="2^n - 2" src="http://poweredbyapathy.com/wp-content/uploads/2010/02/hosts2.png" alt="2^n - 2" width="37" height="12" /></p>
<p><span style="color: #c0c0c0;"><em>(n being the number of borrowed bits)</em></span></p>
<p><span style="text-decoration: underline;">Number of links required for a full mesh network:</span> <img class="alignnone size-full wp-image-273" title="n(n-1)/2" src="http://poweredbyapathy.com/wp-content/uploads/2010/02/mesh1.png" alt="n(n-1)/2" width="64" height="15" /> or <img class="alignnone size-full wp-image-274" title="(n^2 - n)/2" src="http://poweredbyapathy.com/wp-content/uploads/2010/02/mesh2.png" alt="(n^2 - n)/2" width="62" height="17" /></p>
<p><span style="color: #c0c0c0;"><em>(n being the number of nodes in the topology)</em></span></p>
<p><span style="text-decoration: underline;">Classful networks</span></p>
<pre><code><strong>Class	Leading Bits	Start		End		   Networks          Addresses</strong>
A	     0		0.0.0.0		127.255.255.255	   128 (2^7)         16,777,216 (2^24)
B	     10		128.0.0.0	191.255.255.255	   16,384 (2^14)     65,536 (2^16)
C	     110	192.0.0.0	223.255.255.255	   2,097,152 (2^21)  256 (2^8)
D (mc)	     1110	224.0.0.0	239.255.255.255	   n/a               n/a
E (reserved) 1111	240.0.0.0	255.255.255.255	   n/a               n/a</code></pre>
<p><span style="text-decoration: underline;"><br />
EIGRP Metric</span></p>
<p>I doubt this will be used often, but it may be useful when trying to tweak the metric of a particular route by changing the delay (or bandwidth).</p>
<p>The full metic:</p>
<p><img class="alignnone size-full wp-image-298" title="[K1 * bandwidth + (K2 * bandwidth) / (256 - load) + K3 * delay] * [K5 / (reliability + K4)]" src="http://poweredbyapathy.com/wp-content/uploads/2010/02/eigrp-metric1.jpg" alt="[K1 * bandwidth + (K2 * bandwidth) / (256 - load) + K3 * delay] * [K5 / (reliability + K4)]" width="606" height="18" /></p>
<p>However,  the bandwidth and delay values aren&#8217;t taken directly from the show commands, rather:</p>
<p><img title="bandwidth = (10^7 / InterfaceBandwidth) * 256" src="http://poweredbyapathy.com/wp-content/uploads/2010/02/eigrp-bandwidth.png" alt="bandwidth = (10^7 / InterfaceBandwidth) * 256" width="274" height="17" /></p>
<p><img class="alignnone size-full wp-image-303" title="delay = (InterfaceDelay / 10) * 256" src="http://poweredbyapathy.com/wp-content/uploads/2010/02/eigrp-delay.png" alt="delay = (InterfaceDelay / 10) * 256" width="208" height="15" /> <span style="color: #888888;"><em>(this gives us the delay in tens of microseconds * 256)</em></span></p>
<p><span style="color: #888888;"><em>(InterfaceBandwidth and InterfaceDelay refer to the vlaues given from sh interface) </em></span></p>
<p>Given the default K values of: K<sub>1</sub> = 1, K<sub>2</sub> = 0, K<sub>3</sub> = 1, K<sub>4</sub>=  0, K<sub>5</sub> = 0, the metric becomes much simpler: <img class="alignnone size-full wp-image-299" title="bandwidth + delay" src="http://poweredbyapathy.com/wp-content/uploads/2010/02/eigrp-metric2.png" alt="bandwidth + delay" width="113" height="15" /></p>
<p>Another interesting fact, taken from the <a href="http://www.cisco.com/en/US/tech/tk365/technologies_white_paper09186a0080094cb7.shtml#eigrpmetrics">Cisco EIGRP docs</a>:</p>
<blockquote><p>Cisco routers do not perform floating point math, so at each stage in the calculation, you need to round down to the nearest integer to properly calculate the metrics.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://poweredbyapathy.com/networkin-maths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare &#8211; Block Size and VMFS 3 Filesize Limts</title>
		<link>http://poweredbyapathy.com/vmware-block-size-and-vmfs-3-filesize-limts/</link>
		<comments>http://poweredbyapathy.com/vmware-block-size-and-vmfs-3-filesize-limts/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 06:01:12 +0000</pubDate>
		<dc:creator>PBA</dc:creator>
				<category><![CDATA[Virtualisation]]></category>

		<guid isPermaLink="false">http://poweredbyapathy.com/?p=260</guid>
		<description><![CDATA[Quick reference post to remind me of the relationship between block size and max VHD size. Block Size Max VHD Size 1 MB 256 GB 2 MB 512 GB 4 MB 1 TB 8 MB 2 TB]]></description>
			<content:encoded><![CDATA[<p>Quick reference post to remind me of the relationship between block size and max VHD size. </p>
<pre><code>Block Size	Max VHD Size

1 MB		256 GB
2 MB		512 GB
4 MB		1 TB
8 MB		2 TB</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://poweredbyapathy.com/vmware-block-size-and-vmfs-3-filesize-limts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loopback GPOs &#8211; Applying user policies to specific computers</title>
		<link>http://poweredbyapathy.com/loopback-gpos-applying-user-policies-to-specific-computers/</link>
		<comments>http://poweredbyapathy.com/loopback-gpos-applying-user-policies-to-specific-computers/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 02:12:47 +0000</pubDate>
		<dc:creator>PBA</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://poweredbyapathy.com/?p=250</guid>
		<description><![CDATA[Say you need to create a GPO which modifies user settings, but you only want them to apply when a user logs on to a specific machine. Essentially, you need to link user GPOs to machine accounts. This can be extremely useful when users log into multiple environments, for example, a user may log into [...]]]></description>
			<content:encoded><![CDATA[<p>Say you need to create a GPO which modifies user settings, but you only want them to apply when a user logs on to a specific machine. Essentially, you need to link user GPOs to machine accounts. This can be extremely useful when users log into multiple environments, for example, a user may log into their desktop, and then also log into a terminal server. </p>
<p>The solution is to create a GPO with the required user settings, linked to the OU of the machine account, and enable the <code>User Group Policy loopback processing mode</code> policy within the GPO. This setting applies policies defined in the User portion of the GPO to users logging into machines under the GPO.</p>
<p>The policy is located in <code>Computer Configuration > Policies > Administrative Templates > System > Group Policy</code>.</p>
<p>There are two modes with this policy: <code>Merge</code> and <code>Replace</code>. </p>
<p>Replace will overwrite all user settings with policies within the computer GPO. This means that only the settings within the computer GPO will be applied to users logging into that machine. </p>
<p>Merge will combine whatever GPOs are normally applied to the user with the computer GPO, if a conflict exists, the computer GPO will take precedence. </p>
<p>Reference: <a href="http://support.microsoft.com/?kbid=231287">http://support.microsoft.com/?kbid=231287</a></p>
]]></content:encoded>
			<wfw:commentRss>http://poweredbyapathy.com/loopback-gpos-applying-user-policies-to-specific-computers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Showing uptime of DSL connections</title>
		<link>http://poweredbyapathy.com/showing-uptime-of-dsl-connections/</link>
		<comments>http://poweredbyapathy.com/showing-uptime-of-dsl-connections/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 09:20:47 +0000</pubDate>
		<dc:creator>PBA</dc:creator>
				<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://poweredbyapathy.com/?p=238</guid>
		<description><![CDATA[Quick one today. My usual method of determining ADSL connection uptime has been grepping logs for %LINEPROTO-5-UPDOWN:, %DIALER-6, or most commonly Di0 and looking at the latest timestamps. No more! I knew there had to be a nice and clean show *magic-word* command to make it easier, and there is! Router#sh caller ? full Provide [...]]]></description>
			<content:encoded><![CDATA[<p>Quick one today. My usual method of determining ADSL connection uptime has been grepping logs for <code>%LINEPROTO-5-UPDOWN:</code>, <code>%DIALER-6</code>, or most commonly <code>Di0</code> and looking at the latest timestamps. No more! I knew there had to be a nice and clean <code>show *magic-word*</code> command to make it easier, and there is!</p>
<pre><code>Router#sh caller ?
  full       Provide expanded caller information
  interface  Provide information on one interface
  ip         Display IP information
  line       Provide information on one line
  summary    Display total users logged and total ISDN/Analog users
  timeouts   Display session and idle limits and disconnect time
  user       Display information for a particular user
  |          Output modifiers
  &lt;cr&gt;</code></pre>
<p>And the output</p>
<pre><code>Router#sh caller
                                                  Active    Idle
  Line           User               Service       Time      Time
  vty 194        admin             VTY           00:03:45  00:00:00
  Vi2            &lt;unknown phone number&gt; \
                                    PPPoE         5d11h     00:00:04</code></pre>
<pre><code>Router#sh caller full

  User: admin, line vty 194, service VTY
        Active time 00:03:48
  Timeouts:    Limit     Remaining Timer Type
               00:30:00  00:29:59  Idle Exec
  VTY: Line 194, remote 10.250.1.100
  Line: Baud rate (TX/RX) is 9600/9600
  Status: PSI Enabled, Ready, Active, No Exit Banner
  Modem State: Ready

  User: , line Vi2, service PPPoE
        Connected for 5d11h, Idle for 00:00:00
  Timeouts:    Limit     Remaining Timer Type
               -         -         -
  PPP: LCP Open, CHAP (-&gt;), IPCP
  Dialer: Connected to &lt;unknown phone number&gt;, inbound
          Type is DIALER PPPOE, group Di0
  IP: Local xxx.xxx.xxx.xxx/32, remote xxx.xxx.xxx.xxx
  Counts: 3523433 packets input, 3912371236 bytes, 4 no buffer
          0 input errors, 0 CRC, 0 frame, 0 overrun
          2624812 packets output, 624201855 bytes, 0 underruns
          0 output errors, 0 collisions, 0 interface resets</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://poweredbyapathy.com/showing-uptime-of-dsl-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting sendmail queue</title>
		<link>http://poweredbyapathy.com/deleting-sendmail-queue/</link>
		<comments>http://poweredbyapathy.com/deleting-sendmail-queue/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 23:45:22 +0000</pubDate>
		<dc:creator>PBA</dc:creator>
				<category><![CDATA[Linux/BSD]]></category>

		<guid isPermaLink="false">http://poweredbyapathy.com/?p=233</guid>
		<description><![CDATA[Our monitoring system has gone a bit haywire (my fault), and has started sending me a metric asston of email notifications which should have been suppressed. Luckily, a few more asstons of emails were queued by sendmail and we were able to delete them before it launched a second offensive. There are a few ways [...]]]></description>
			<content:encoded><![CDATA[<p>Our monitoring system has gone a bit haywire (my fault), and has started sending me a metric asston of email notifications which should have been suppressed. </p>
<p>Luckily, a few more asstons of emails were queued by sendmail and we were able to delete them before it launched a second offensive.</p>
<p>There are a few ways to view the mail queue. </p>
<pre><code>mailq</code></pre>
<pre><code>sendmail -bp</code></pre>
<pre><code>ll /var/spool/mqueue/
ll /var/spool/clientmqueue</code></pre>
<p>There are also several ways to delete emails from the queue. </p>
<pre><code>sendmail -v -q</code></pre>
<p>Alternatively, the sendmail service can be stopped, all items from <code>/var/spool/mqueue/</code> and <code>/var/spool/clientmqueue</code> can be deleted, and the sendmail service restarted. </p>
<p>Confirm the queue has been cleared with <code>mailq</code> or one of the other commands.</p>
]]></content:encoded>
			<wfw:commentRss>http://poweredbyapathy.com/deleting-sendmail-queue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic backup of Cisco configurations</title>
		<link>http://poweredbyapathy.com/automatic-backup-of-cisco-configurations/</link>
		<comments>http://poweredbyapathy.com/automatic-backup-of-cisco-configurations/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 09:17:36 +0000</pubDate>
		<dc:creator>PBA</dc:creator>
				<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://poweredbyapathy.com/?p=221</guid>
		<description><![CDATA[There are several ways to get configs archived and documented, one of the more popular tools seems to be RANCID (I&#8217;m yet to try it), another less known tool is config-monitor from iagu networks, but Cisco also provide an inbuilt set of commands which allows a copy of the configuration to be saved remotely via [...]]]></description>
			<content:encoded><![CDATA[<p>There are several ways to get configs archived and documented, one of the more popular tools seems to be RANCID (I&#8217;m yet to try it), another less known tool is config-monitor from iagu networks, but Cisco also provide an inbuilt set of commands which allows a copy of the configuration to be saved remotely via FTP, SCP, or other methods.</p>
<p>There are downsides to the Cisco method, for one, following a reload, it tends to start naming files back at 1, which causes it to overwrite older configs, but the beauty is that it it will only back up a config when the changes are committed to NVRAM; ie. <code>wr mem</code>. Other tools either rely on scheduled checks, or in some cases, can be configured to periodically read a syslog file and grab a copy of the config when they see a new <code>%SYS-5-CONFIG_I: Configured from console </code>entry logged.</p>
<p>The biggest downside though is the need to store FTP/SCP credentials in the router itself, it&#8217;s not something I like doing for a number of reasons. However, it does work well for small networks or home lab environments where having recent changes documented is useful.</p>
<p>Enough talk, this is how it&#8217;s down with FTP:</p>
<pre><code>ip ftp username &lt;username&gt;
ip ftp password &lt;password&gt;
archive
 log config
  hidekeys
 path ftp://serverIP/desired/path/$h.
 write-memory</code></pre>
<p>There are also additional <code>ip ftp</code> commands, such as source-interface. If the <code>ip ftp username|password</code> commands are left out, an anonymous login will be used.</p>
<p>And SCP:</p>
<pre><code>archive
 log config
  hidekeys
 path scp://username:password@serverIP//desired/path/to/configs/$h.
 write-memory</code></pre>
<p>In both examples I&#8217;ve used <code>$h.</code> as the name of the file, there are two parts to this. The <code>$h</code> creates sets the filename to the hostname of the router. When writing files, the router appends -[number] to the end of the filename, it starts at 1 and increments to 14 before returning to 1, so the filename will actually end up being <code>hostname.-[number]</code>. The <code>.</code> is just there so it creates an extension which windows users can map to WordPad (don&#8217;t use Notepad, it doesn&#8217;t open the files properly). Anything can be used for the filename, but this method works very well.</p>
<p>To view a list of archived configurations, and to show the most recent:</p>
<pre><code><strong>#sh archive</strong>
The next archive file will be named ftp://10.250.1.11/lab/adelaide.-6
 Archive #  Name
   0
   1       ftp://10.250.1.11/lab/adelaide.-1
   2       ftp://10.250.1.11/lab/adelaide.-2
   3       ftp://10.250.1.11/lab/adelaide.-3
   4       ftp://10.250.1.11/lab/adelaide.-4
   5       ftp://10.250.1.11/lab/adelaide.-5 &lt;- Most Recent
   6
   7
   8
   9
   10
   11
   12
   13
   14</code></pre>
<p>To view the differences between the running config, and an archived config (this is a spankingly delicious):</p>
<pre><code><strong>#sh archive config differences system:running-config ftp://10.250.1.11/lab/adelaide.-1
</strong>Loading lab/adelaide.-1 !
[OK - 10792/4096 bytes]

Contextual Config Diffs:
+ip route 10.1.50.0 255.255.255.0 Tunnel2
+ip nat inside source static tcp 10.1.90.10 80 interface Dialer0 80
+ip nat inside source static tcp 10.1.90.10 443 interface Dialer0 443
interface FastEthernet1
 -ip address 10.1.50.254 255.255.255.0 secondary
-ip nat inside source static tcp 10.1.90.15 80 interface Dialer0 80
-ip nat inside source static tcp 10.1.90.15 443 interface Dialer0 443
-access-list 120 permit tcp any host 203.134.160.154 eq 443</code></pre>
<p>To restore a configuration:</p>
<pre><code><strong>#copy ftp://10.250.1.11/lab/adelaide.-5 startup-config
</strong>Destination filename [startup-config]?
Accessing ftp://10.250.1.11/lab/adelaide.-5...
Loading lab/adelaide.-5 !
[OK - 10860/4096 bytes]
[OK]
10860 bytes copied in 11.476 secs (946 bytes/sec)</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://poweredbyapathy.com/automatic-backup-of-cisco-configurations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NfSen Installation Guide</title>
		<link>http://poweredbyapathy.com/nfsen-installation-guide/</link>
		<comments>http://poweredbyapathy.com/nfsen-installation-guide/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 13:48:50 +0000</pubDate>
		<dc:creator>PBA</dc:creator>
				<category><![CDATA[Linux/BSD]]></category>

		<guid isPermaLink="false">http://poweredbyapathy.com/?p=211</guid>
		<description><![CDATA[NfSen displays graphs and stats generated from collected NetFlow data through a web interface. Having recently started playing with it and having already installed it twice, I thought it would be a good time to throw up a quick guide for future reference while it&#8217;s still fresh in my head. Even thought the netflow collector [...]]]></description>
			<content:encoded><![CDATA[<p>NfSen displays graphs and stats generated from collected NetFlow data through a web interface. Having recently started playing with it and having already installed it twice, I thought it would be a good time to throw up a quick guide for future reference while it&#8217;s still fresh in my head.</p>
<p>Even thought the netflow collector (nfdump) and Nfsen are seperate packages, Nfsen will configure and start all the necessary nfdump processes as required.</p>
<p>Firstly, read and check the prerequisites at <a href="http://nfsen.sourceforge.net">http://nfsen.sourceforge.net</a>. An assumption is being made that Apache, PHP and Perl are already installed.</p>
<p><strong>Download necessary Perl Modules</strong></p>
<pre>cpan Mail::Header
cpan Mail::Internet</pre>
<p><strong>Install RRDTool and flex</strong> (required for nfdump to compile)</p>
<pre><code>yum install perl-rrdtool rrdtool rrdtool-devel flex</code></pre>
<p><strong>Download and install nfdump</strong></p>
<p>Download latest version from <a href="http://sourceforge.net/projects/nfdump">http://sourceforge.net/projects/nfdump</a>. At the time of writing, this was nfdump-1.6b-snapshot-20090619.tar.gz.</p>
<p>Extract, and compile as follows (your rrdpath may differ, use <code>which rrdtool</code>):</p>
<pre><code>./configure --enable-nfprofile --with-rrdpath=/usr/bin
make
make install</code></pre>
<p><strong>Download and install NfSen</strong></p>
<p>Download latest version from <a href="http://sourceforge.net/projects/nfsen">http://sourceforge.net/projects/nfsen</a>. At the time of writing, this was nfsen-1.3.2.tar.gz.</p>
<p>Once extracted, make a copy of the <code>etc/nfsen-dist.conf</code> and call it <code>nfsen.conf</code></p>
<p>For CentOS 5.3, with a standard Apache install, the following changes can to be made to the nfsen.conf. Some are optional, but the user, wwwuser and wwwgroup are mandatory.</p>
<pre><code>$BASEDIR = "/usr/local/nfsen";
$HTMLDIR    = "/var/www/html/nfsen/";
$USER    = "apache";
$WWWUSER  = "apache";
$WWWGROUP = "apache";</code></pre>
<p>Remove the default sample netflow devices, and add you own. The syntax is fairly self explanatory: the name of the device, what port it&#8217;s sending flows to, the colour which will represent the device on the web interface, and the type.</p>
<pre><code> 'starwish'        =&gt; { 'port'    =&gt; '9996', 'col' =&gt; '#ff0000', 'type' =&gt; 'netflow'  },</code></pre>
<p>Run the install script</p>
<pre><code>./install.pl etc/nfsen.conf</code></pre>
<p>And we&#8217;re done. The control script is located in <code>/usr/local/nfsen/bin/nfsen</code>. NfSen will automagically configure and start the necessary nfdump processes.</p>
<p>Now you should be able to browse to http://yourserver/nfsen/nfsen.php and see a bunch of empty graphs, which will hopefully be populated with many pretty colours over time.</p>
<p>Last thing we can do is set nfsen.php to be the default page for /nfsen in Apache.</p>
<p>Create and edit <code>/etc/httpd/conf.d/nfsen.conf</code></p>
<pre><code>&lt;Directory /var/www/html/nfsen/&gt;
    DirectoryIndex nfsen.php
&lt;/Directory&gt;</code></pre>
<p>That&#8217;s it for now.</p>
<p>Reference: <a href="http://www.first.org/conference/2006/program/netflow_tools_nfsen_and_nfdump.html">http://www.first.org/conference/2006/program/netflow_tools_nfsen_and_nfdump.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://poweredbyapathy.com/nfsen-installation-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Framed Routes, PAT, and ICMP</title>
		<link>http://poweredbyapathy.com/framed-routes-pat-and-icmp/</link>
		<comments>http://poweredbyapathy.com/framed-routes-pat-and-icmp/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 03:01:41 +0000</pubDate>
		<dc:creator>PBA</dc:creator>
				<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://poweredbyapathy.com/?p=208</guid>
		<description><![CDATA[One of our customers receives their static /29 addresses in the form of a framed route from their ISP. Essentially the ISP sets the next hop for their range to the address assigned to their DSL link. If traffic to this /29 is PATted though various internal hosts, there won&#8217;t be anything on the network [...]]]></description>
			<content:encoded><![CDATA[<p>One of our customers receives their static /29 addresses in the form of a framed route from their ISP. Essentially the ISP sets the next hop for their range to the address assigned to their DSL link. </p>
<p>If traffic to this /29 is PATted though various internal hosts, there won&#8217;t be anything on the network which has those addresses assigned, and therefore nothing to respond to pings or other ICMP traffic. </p>
<p>The simplest solution is to create a Loopback interface on the router and assign it the /29 addresses:</p>
<pre><code>interface Loopback100
 description -- STATIC IPS --
 ip address 150.101.x.x 255.255.255.255 secondary
 ip address 150.101.x.x 255.255.255.255
 ip address ....</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://poweredbyapathy.com/framed-routes-pat-and-icmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
