<?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>Packetslave Industries &#187; Uncategorized</title>
	<atom:link href="http://www.packetslave.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.packetslave.com</link>
	<description>This is my blog.  There are many like it, but this one is mine.</description>
	<lastBuildDate>Tue, 20 Jul 2010 19:04:43 +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>Opsview Slaves and &#8220;Host key verification failed&#8221;</title>
		<link>http://www.packetslave.com/2010/07/20/opsview-slaves-and-host-key-verification-failed/</link>
		<comments>http://www.packetslave.com/2010/07/20/opsview-slaves-and-host-key-verification-failed/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 19:03:44 +0000</pubDate>
		<dc:creator>blanders</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[opsview]]></category>

		<guid isPermaLink="false">http://www.packetslave.com/?p=221</guid>
		<description><![CDATA[This is mostly for my own benefit. When setting up a new Opsview slave server, make sure ~nagios/.ssh/known_hosts has an entry for the FQDN of the slave, not just the short name. Otherwise you&#8217;ll spend an hour beating your head against the wall trying to figure out why ssh slavehost date works, but send2slaves -t [...]]]></description>
			<content:encoded><![CDATA[<p>This is mostly for my own benefit.  When setting up a new Opsview slave server, make sure <code>~nagios/.ssh/known_hosts</code> has an entry for the FQDN of the slave, not just the short name.  </p>
<p>Otherwise you&#8217;ll spend an hour beating your head against the wall trying to figure out why <code>ssh slavehost date</code> works, but <code>send2slaves -t slavehost</code> doesn&#8217;t.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.packetslave.com/2010/07/20/opsview-slaves-and-host-key-verification-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BGP Route Manipulation</title>
		<link>http://www.packetslave.com/2009/12/21/bgp-route-manipulation/</link>
		<comments>http://www.packetslave.com/2009/12/21/bgp-route-manipulation/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 04:03:43 +0000</pubDate>
		<dc:creator>blanders</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.packetslave.com/?p=179</guid>
		<description><![CDATA[At $DAYJOB, one of our sites has two WAN circuits from the same provider. Both learn our full global routing table via BGP, and both inbound and outbound traffic are load-balanced using BGP multi-path. In some cases, however, we want specific traffic to always prefer one path over the other (mostly for latency reasons). We [...]]]></description>
			<content:encoded><![CDATA[<p>At $DAYJOB, one of our sites has two WAN circuits from the same provider.  Both learn our full global routing table via BGP, and both inbound and outbound traffic are load-balanced using BGP multi-path.  In some cases, however, we want specific traffic to always prefer one path over the other (mostly for latency reasons).  We could use static routes, but we also want traffic to fail over to the other link in the case of an outage.</p>
<p>In this example, we want to manipulate the routing as follows:</p>
<ul>
<li>Traffic between the 192.168.1.0/24 local network and 10.0.1.0/24 remote network should prefer PATH #1</li>
<li>Traffic between the 192.168.2.0/24 local network and 10.0.2.0/24 remote network should prefer PATH #2</li>
</ul>
<p>Note: for the purpose of this example we will assume that the specified local and remote networks <em>only</em> talk to each other.  We don&#8217;t need to consider traffic between 192.168.1.0/24 and other remote networks, for example.  </p>
<pre>
router bgp 65000
  network 192.168.1.0 mask 255.255.255.0
  network 192.168.2.0 mask 255.255.255.0
  !
  neighbor 1.1.1.1 remote-as 65534
  neighbor 1.1.1.1 send-community
  neighbor 1.1.1.1 route-map PATH1-LEARN in
  neighbor 1.1.1.1 route-map PATH1-ADVERTISE out
  !
  neighbor 2.2.2.2 remote-as 65534
  neighbor 2.2.2.2 send-community
  neighbor 2.2.2.2 route-map PATH2-LEARN in
  neighbor 2.2.2.2 route-map PATH2-ADVERTISE out
!
</pre>
<p>First we need to define our ACLs to specify which traffic prefers which path</p>
<pre>
ip access-list standard PREFER-PATH1-LOCAL
  permit 192.168.1.0 0.0.0.255
!
ip access-list standard PREFER-PATH1-REMOTE
  permit 10.0.1.0 0.0.0.255
!
ip access-list standard PREFER-PATH2-LOCAL
  permit 192.168.2.0 0.0.0.255
!
ip access-list standard PREFER-PATH2-REMOTE
  permit 10.0.2.0 0.0.0.255
!
</pre>
<p>As we learn routes, we raise the local preference on routes coming from the preferred path, so they are chosen over the same routes learned on the other path with a default of 100.</p>
<p>The permit 999 ensures all routes are still learned from both peers, even if they&#8217;re not being manipulated.</p>
<pre>
route-map PATH1-LEARN permit 10
  match ip address PREFER-PATH1-REMOTE
  set local-preference 110
!
route-map PATH1-LEARN permit 999
!
route-map PATH2-LEARN permit 10
  match ip address PREFER-PATH2-REMOTE
  set local-preference 110
!
route-map PATH2-LEARN permit 999
!
</pre>
<p>For incoming traffic, we need to influence the ISP&#8217;s  routing decisions.  There are several ways of doing this, including the MED.  In our case, we&#8217;ll use the ISP&#8217;s pre-defined community values to force them to set a local preference on certain routes.</p>
<p>Again, the permit 999 rules ensure that we’re still sending all our routes to both peers, even if they don’t get tagged.</p>
<pre>
route-map PATH1-ADVERTISE permit 10
  match ip address PREFER-PATH1-LOCAL
  set community 65534:110
!
route-map PATH1-ADVERTISE permit 999
!
route-map PATH2-ADVERTISE permit 15
  match ip address PREFER-PATH2-LOCAL
  set community 65534:110
!
route-map PATH2-ADVERTISE permit 999
!
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.packetslave.com/2009/12/21/bgp-route-manipulation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notes to Self:  IPexpert Security Lab A</title>
		<link>http://www.packetslave.com/2009/02/09/notes-to-self-ipexpert-security-lab-a/</link>
		<comments>http://www.packetslave.com/2009/02/09/notes-to-self-ipexpert-security-lab-a/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 14:11:48 +0000</pubDate>
		<dc:creator>blanders</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.packetslave.com/?p=161</guid>
		<description><![CDATA[These are mostly notes for my own benefit as I work through various labs. In this case, I only worked on specific sections of lab A, as I was a bit short on time. Section 1: Layer 2 configuration - when creating an SVI for a given VLAN, always make sure the VLAN itself exists [...]]]></description>
			<content:encoded><![CDATA[<p>These are mostly notes for my own benefit as I work through various labs.  In this case, I only worked on specific sections of lab A, as I was a bit short on time.</p>
<h3>Section 1:  Layer 2 configuration</h3>
<p>- when creating an SVI for a given VLAN, always make sure the VLAN itself exists on all switches in the transit path for that VLAN.</p>
<p>- if the lab specifies restricting &#8220;management access&#8221;, don&#8217;t forget to check if the HTTP server is enabled and add a similar access class to it as to the VTY&#8217;s.</p>
<p>- Filtering traffic by ethertype</p>
<pre>mac access-list extended F0_15
  deny   any any 0x1234 0x0
  permit any any
!
int fa0/15
  mac access-group F0_15 in
!</pre>
<p>- VLAN filtering by MAC address</p>
<pre>mac access-list extended VL123
  permit host 0000.1234.4321 host 0000.4321.1234
!
vlan access-map VL123 10
  action forward
  match mac address VL123
vlan access-map VL123 999
  action drop
!
vlan filter VL123 vlan-list 123</pre>
<p>No real problems with this section other than interpretation on the VLAN filtering.  In a lab, I&#8217;d ask the proctor if they meant traffic from this *range* of MAC addresses or just between the two.</p>
<h3>Section 2:  Pix / ASA Configuration</h3>
<p>- When originating a default route and running RIP on both inside &amp; outside, use a route-map with &#8216;match interface&#8217; to control which side we send the default route to.</p>
<p>- don&#8217;t be so quick to assume an answer.  Configured HTTP/HTTPS and missed that the question said a &#8220;Web/SMTP/DNS&#8221; server so left out a bunch of the ACL.</p>
<p>- when configuring AAA through a firewall, don&#8217;t forget to set the source int on the remote device if required.</p>
<p>- remember that a transparent firewall will not pass anything inbound by default (except ARP) without an access-list.  Just like a routed firewall.</p>
<p>- a transparent firewall must have a management IP address configured or it will not pass any traffic, even if that traffic would otherwise be allowed.</p>
<p>- always check for required single/multiple changes, since it needs a reboot of the device and wastes time.</p>
<p>- basic process for setting up contexts</p>
<pre>admin-context FOO
context FOO
  config-url disk0:/FOO.txt
!
context BAR
  config-url disk0:/BAR.txt
  allocate-interface eth0/0
  allocate-interface eth0/1
!</pre>
<p>- when configuring local authentication on the ASA, don&#8217;t forget to explicitly enable it, for ssh/telnet</p>
<pre>hostname ASA1
domain-name ipexpert.com
crypto key generate rsa general-keys
ssh 1.2.3.0 255.255.255.0 inside
username cisco password cisco
aaa authentication ssh console LOCAL</pre>
<h3>Section 3:  IDS Configuration</h3>
<p>- I need to spend time learning the IDS command line.  I&#8217;m fairly solid through IDM but not through the CLI.</p>
<p>- IOS IPS basic config</p>
<pre>ip ips name FOO
ip ips notify log
logging host 1.2.3.4
logging on
int se0/1/0
ip ips FOO in
!</pre>
<h3>Section 7:  VPN Configuration</h3>
<p>- when configuring L2L VPN&#8217;s on the VPN3000 through the GUI, be careful when configuring the interesting traffic.  The mask is specified as a *wildcard* mask, e.g. 0.0.0.255, not a subnet mask.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.packetslave.com/2009/02/09/notes-to-self-ipexpert-security-lab-a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting closer and closer&#8230;</title>
		<link>http://www.packetslave.com/2008/11/26/getting-closer-and-closer/</link>
		<comments>http://www.packetslave.com/2008/11/26/getting-closer-and-closer/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 02:00:49 +0000</pubDate>
		<dc:creator>blanders</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.packetslave.com/?p=138</guid>
		<description><![CDATA[What I&#8217;ve been up to: IPExpert&#8217;s one week R&#38;S bootcamp in San Jose IPExpert&#8217;s one week mock lab workshop in San Jose InternetworkExpert&#8217;s &#8220;Open Lecture&#8221; multicast troubleshooting (in progress) InternetworkExpert&#8217;s 5-day lab bootcamp CoD (in progress) InternetworkExpert&#8217;s Adv. Technology CoD on redistribution (in progress) Working through IEWB3 to get better at core technology, especially redistribution]]></description>
			<content:encoded><![CDATA[<p>What I&#8217;ve been up to:</p>
<ul>
<li>IPExpert&#8217;s one week R&amp;S bootcamp in San Jose</li>
<li>IPExpert&#8217;s one week mock lab workshop in San Jose</li>
<li>InternetworkExpert&#8217;s &#8220;Open Lecture&#8221; multicast troubleshooting (in progress)</li>
<li>InternetworkExpert&#8217;s 5-day lab bootcamp CoD (in progress)</li>
<li>InternetworkExpert&#8217;s Adv. Technology CoD on redistribution (in progress)</li>
<li>Working through IEWB3 to get better at core technology, especially redistribution</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.packetslave.com/2008/11/26/getting-closer-and-closer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
