<?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>Hacktopia &#187; Uncategorized</title>
	<atom:link href="http://www.hacktopia.net/wp/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hacktopia.net/wp</link>
	<description>The zen of hacking</description>
	<lastBuildDate>Thu, 26 Jan 2012 17:35:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Disable IPv6 on Red Hat Enterprise linux 6</title>
		<link>http://www.hacktopia.net/wp/disable-ipv6-on-red-hat-enterprise-linux-6/</link>
		<comments>http://www.hacktopia.net/wp/disable-ipv6-on-red-hat-enterprise-linux-6/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 17:35:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=236</guid>
		<description><![CDATA[You might be saying that IPv6 is the bees knees, and I must be crazy for wanting to disable it.  Well that is partially true.  In this case I need to disable it because my machinne is on a network that can only handle IPv4 packets.  It also slowed down connections on the machine because [...]]]></description>
			<content:encoded><![CDATA[<p>You might be saying that IPv6 is the bees knees, and I must be crazy for wanting to disable it.  Well that is partially true.  In this case I need to disable it because my machinne is on a network that can only handle IPv4 packets.  It also slowed down connections on the machine because of how the network was set up.  So basically it was necessary in order to speed up the networking on the server.</p>
<p>add the &#8220;options single-request&#8221; to the /etc/resolv.conf file</p>
<blockquote><p>nameserver 4.2.2.1<br />
nameserver 4.2.2.2<br />
options single-request</p></blockquote>
<p>add &#8220;NETWORKING_IPV6=off&#8221; to /etc/sysconfig/network</p>
<blockquote><p>NETWORKING_IPV6=off</p></blockquote>
<p>next edit the /etc/modprobe.d/ECS.conf file and add &#8220;alias ipv6 off&#8221; and &#8220;net-pf-10&#8243;</p>
<blockquote><p>alias ipv6 off<br />
alias net-pf-10 off</p></blockquote>
<p>remove the running module</p>
<blockquote><p><code> # rmmod ipv6</code></p></blockquote>
<p>Then restart network by</p>
<blockquote><p><code># service network restart</code></p></blockquote>
<p>or reboot to box to make sure it works after a reboot with</p>
<blockquote><p><code># reboot</code></p></blockquote>
<p>To test to make sure that the changes have worked, you should not get anything returned</p>
<blockquote><p><code># lsmod | grep ipv6</code></p></blockquote>
<p>You can also run &#8220;ifconfig -a&#8221; and make sure you do not see the fowling</p>
<blockquote><p>lo        Link encap:Local Loopback<br />
inet addr:127.0.0.1  Mask:255.0.0.0<br />
inet6 addr: ::1/128 Scope:Host<br />
UP LOOPBACK RUNNING  MTU:16436  Metric:1</p></blockquote>
<p>should see</p>
<blockquote><p>lo        Link encap:Local Loopback<br />
inet addr:127.0.0.1  Mask:255.0.0.0<br />
UP LOOPBACK RUNNING  MTU:16436  Metric:1</p></blockquote>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/disable-ipv6-on-red-hat-enterprise-linux-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>scp for Centos</title>
		<link>http://www.hacktopia.net/wp/scp-for-centos/</link>
		<comments>http://www.hacktopia.net/wp/scp-for-centos/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 18:22:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=230</guid>
		<description><![CDATA[For some reason my new CentOS install has a working ssh but I could not find any scp. &#160; So the package that contains openssh-clients &#160; [root@localhost ~]# whereis scp scp: [root@localhost ~]# yum install openssh-clients Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.seas.harvard.edu * epel: mirror.cogentco.com * extras: centos.mirror.nac.net * [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason my new CentOS install has a working ssh but I could not find any scp.</p>
<p>&nbsp;</p>
<p>So the package that contains openssh-clients</p>
<p>&nbsp;</p>
<blockquote><p>[root@localhost ~]# whereis scp<br />
scp:<br />
[root@localhost ~]# yum install openssh-clients<br />
Loaded plugins: fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
* base: mirrors.seas.harvard.edu<br />
* epel: mirror.cogentco.com<br />
* extras: centos.mirror.nac.net<br />
* updates: mirrors.seas.harvard.edu<br />
Setting up Install Process<br />
Resolving Dependencies<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package openssh-clients.x86_64 0:5.3p1-20.el6_0.3 set to be updated<br />
&#8211;&gt; Processing Dependency: libedit.so.0()(64bit) for package: openssh-clients-5.3p1-20.el6_0.3.x86_64<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package libedit.x86_64 0:2.11-4.20080712cvs.1.el6 set to be updated<br />
&#8211;&gt; Finished Dependency Resolution</p>
<p>Dependencies Resolved</p>
<p>===================================================================================================================================================================================<br />
Package                                      Arch                                Version                                               Repository                            Size<br />
===================================================================================================================================================================================<br />
Installing:<br />
openssh-clients                              x86_64                              5.3p1-20.el6_0.3                                      updates                              351 k<br />
Installing for dependencies:<br />
libedit                                      x86_64                              2.11-4.20080712cvs.1.el6                              base                                  74 k</p>
<p>Transaction Summary<br />
===================================================================================================================================================================================<br />
Install       2 Package(s)<br />
Upgrade       0 Package(s)</p>
<p>Total download size: 425 k<br />
Installed size: 1.2 M<br />
Is this ok [y/N]: y<br />
Downloading Packages:<br />
(1/2): libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm                                                                                                          |  74 kB     00:00<br />
(2/2): openssh-clients-5.3p1-20.el6_0.3.x86_64.rpm                                                                                                          | 351 kB     00:00<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Total                                                                                                                                              1.0 MB/s | 425 kB     00:00<br />
Running rpm_check_debug<br />
Running Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction<br />
Installing     : libedit-2.11-4.20080712cvs.1.el6.x86_64                                                                                                                     1/2<br />
Installing     : openssh-clients-5.3p1-20.el6_0.3.x86_64                                                                                                                     2/2</p>
<p>Installed:<br />
openssh-clients.x86_64 0:5.3p1-20.el6_0.3</p>
<p>Dependency Installed:<br />
libedit.x86_64 0:2.11-4.20080712cvs.1.el6</p>
<p>Complete!<br />
[root@localhost ~]# whereis scp<br />
scp: /usr/bin/scp /usr/share/man/man1/scp.1.gz</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/scp-for-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protecting directories and files with Apache</title>
		<link>http://www.hacktopia.net/wp/protecting-directories-and-files-with-apache/</link>
		<comments>http://www.hacktopia.net/wp/protecting-directories-and-files-with-apache/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 17:36:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=156</guid>
		<description><![CDATA[If you have Apache directories that you want only certain IP to be able to access.  Say you have a management interface that you only want employees to have access to. Once you have properly put the fowling code into /etc/apache2/sites-available/default and you are not comming from one of the allowed IP you will be [...]]]></description>
			<content:encoded><![CDATA[<p>If you have Apache directories that you want only certain IP to be able to access.  Say you have a management interface that you only want employees to have access to.</p>
<p>Once you have properly put the fowling code into<br />
/etc/apache2/sites-available/default</p>
<p>and you are not comming from one of the allowed IP you will be greated with a page that says.</p>
<h1 style="padding-left: 30px;">Forbidden</h1>
<p style="padding-left: 30px;">You don&#8217;t have permission to access /directory/onwebserver/index.php on this server.</p>
<p>﻿Otherwise the normal web page will show up.</p>
<p style="padding-left: 30px;">&lt;Directory /var/www/super/secret/&gt;<br />
order deny,allow<br />
deny from all<br />
allow from 10.10.0.100 192.168.77.44<br />
&lt;/Directory&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/protecting-directories-and-files-with-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>force dhcpd to log to it&#8217;s own file with syslog-ng</title>
		<link>http://www.hacktopia.net/wp/force-dhcpd-to-log-to-its-own-file-with-syslog-mg/</link>
		<comments>http://www.hacktopia.net/wp/force-dhcpd-to-log-to-its-own-file-with-syslog-mg/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 18:33:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=174</guid>
		<description><![CDATA[So I did not want my dhcpd messages to be lumped in with all the other /var/log/syslog messages.  I am running Debian 5 with comes running with syslog-ng.  While syslog-ng is much more customizable then plain syslog, it can also be very confusing.  Below is a example of all that I had to add to [...]]]></description>
			<content:encoded><![CDATA[<p>So I did not want my dhcpd messages to be lumped in with all the other /var/log/syslog messages.  I am running Debian 5 with comes running with syslog-ng.  While syslog-ng is much more customizable then plain syslog, it can also be very confusing.  Below is a example of all that I had to add to make syslog send all dhcpd messages to /var/log/dhcpd.log.  All I had to do was add those lines to the end of the /etc/syslog-ng/syslog-ng.conf configuration file, and then restart syslog-ng with /etc/init.d/syslog-ng  restart.  Did not even have to touch /var/log/dhcpd.log, syslog-ng took care of creating that while writing the first log entry.</p>
<blockquote><p>filter f_daemon     {facility(daemon); };<br />
filter f_dhcpd       {match(&#8220;dhcpd&#8221;); };<br />
destination dhcpmessages { file(&#8220;/var/log/dhcpd.log&#8221;); };<br />
log { source(s_all); filter(f_daemon);  filter(f_dhcpd); destination(dhcpmessages); };</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/force-dhcpd-to-log-to-its-own-file-with-syslog-mg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>remove passowrd from Apache SSL Certificate</title>
		<link>http://www.hacktopia.net/wp/remove-passowrd-from-apache-ssl-certificate/</link>
		<comments>http://www.hacktopia.net/wp/remove-passowrd-from-apache-ssl-certificate/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 13:51:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=161</guid>
		<description><![CDATA[So you need to restart Apache that has a SSL certificate, but you don&#8217;t want to give the other admins the password, or for other reasons.  My reason for taking it out was that logrotate wants to restart Apache after log rotation.  Well with Apache sitting waiting for a password, it screws everything up, because [...]]]></description>
			<content:encoded><![CDATA[<p>So you need to restart Apache that has a SSL certificate, but you don&#8217;t want to give the other admins the password, or for other reasons.  My reason for taking it out was that logrotate wants to restart Apache after log rotation.  Well with Apache sitting waiting for a password, it screws everything up, because it sits and waits for a password that is never entered.</p>
<blockquote><p>server:/etc/apache2/keys# openssl rsa -in website.key  -out website.key.nopass<br />
Enter pass phrase for website.key:<br />
writing RSA key</p></blockquote>
<p>Make sure you edit /etc/apache2/sites-enabled/000-default or where ever you set up SSL on apache to make it use the new website.key.nopass key.  Look how wonderfully it restarts apache with out bothering you for a password now.</p>
<p>So it now looks like</p>
<blockquote><p>SSLCertificateKeyFile /etc/apache2/keys/roadwarriorvpn.key.nopass</p></blockquote>
<p>Yaha it restarted with out having to enter a password.</p>
<blockquote><p>front:/etc/apache2# /etc/init.d/apache2ssl  restart<br />
Restarting web server: apache2 &#8230; waiting .<br />
front:/etc/apache2#</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/remove-passowrd-from-apache-ssl-certificate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

