<?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>NewPush &#187; IP</title> <atom:link href="http://newpush.com/tag/ip/feed/" rel="self" type="application/rss+xml" /><link>http://newpush.com</link> <description>Server Hosting, Data Warehouse Hosting, Collaboration</description> <lastBuildDate>Fri, 20 Apr 2012 10:25:44 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>How to install IP-Audit-Web 1.0 on OpenBSD 4.5</title><link>http://newpush.com/2009/05/how-to-install-ip-audit-web-10-on-openbsd-45/</link> <comments>http://newpush.com/2009/05/how-to-install-ip-audit-web-10-on-openbsd-45/#comments</comments> <pubDate>Fri, 29 May 2009 23:53:04 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[OpenBSD]]></category> <category><![CDATA[IP]]></category><guid isPermaLink="false">http://www.wdream.com/?p=202</guid> <description><![CDATA[IP audit web is an excellent tool to monitor traffic on a given interface, and create daily and monthly statistics. It is really made of 2 components: &#8211; IPAudit &#8211; IPAudit-web As of this writing the latest version is IPAudit-Web-1.0BETA9. &#8230; <a href="http://newpush.com/2009/05/how-to-install-ip-audit-web-10-on-openbsd-45/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span class="grey">IP audit web is an excellent tool to monitor traffic on a given interface, and create daily and monthly statistics. It is really made of 2 components: &#8211; IPAudit &#8211; IPAudit-web As of this writing the latest version is <a href="http://prdownloads.sourceforge.net/ipaudit/ipaudit-web-1.0BETA9.tar.gz?download">IPAudit-Web-1.0BETA9</a>.  It contains both packages bundled.</p><p>Here are the steps to follow:</p><pre>wget http://umn.dl.sourceforge.net/sourceforge/ipaudit/ipaudit-web-1.0BETA9.tar.gz
tar xvzf ipaudit-web-1.0BETA9.tar.gz
cd ipaudit-web-1.0BETA9/compile/src
vi ipaudit.c</pre><p>Add anywhere near the top <code>#define DLT_LINUX_SLL   113</code> (this is needed because for some reason DLT_LINUX_SLL is not defined by the configure sript.  Now you can continue as usual:</p><pre>cd ..
./configure
make
sudo useradd -m ipaudit
sudo make install
sudo make install-cron</pre><p>Because IPAudit needs to run perl cgi scripts, we need to make some changes to the way apache is started, as well as the apache configuration.</p><pre>sudo vi /etc/rc.conf</pre><p>Change the httpd parameter to <code>httpd_flags="-u"</code>.  (You will need to kill apache, and restart it with <code>httpd -u</code> manually for the jail to be suppressed immediately.</p><pre>sudo vi /var/www/conf/httpd.conf</pre><p>And add</p><pre># IP Audit settings

Redirect /~ipaudit/ http://athena.thenewpush.com/ipaudit/
Alias /ipaudit /home/ipaudit/public_html
&lt;Directory /home/ipaudit/public_html&gt;
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    &lt;Limit GET POST OPTIONS PROPFIND&gt;
        Order allow,deny
        Allow from all
    &lt;/Limit&gt;
    &lt;Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK&gt;
        Order deny,allow
        Deny from all
    &lt;/Limit&gt;
&lt;/Directory&gt;</pre><p>Once that is done, restart apache:</p><pre>sudo apachectl restart</pre><p>Now we also need to adjust the cron, because openbsd is picky about who can see the interfaces in promiscous mode. Therefore we will run the cron with sudo. First, we adjust the sudoers file:</p><pre>sudo visudo</pre><p>And we add:</p><pre>ipaudit ALL=(ALL)       NOPASSWD:/home/ipaudit/cron/cron30min,/home/ipaudit/cron/cron30min,/home/ipaudit/cron/crondaily,/home/ipaudit/cron/cronclean,/home/ipaudit/cron/cronweekly,/home/ipaudit/cron/cronmonthly</pre><p>Next we modify the crontab:</p><pre>sudo crontab -e -u ipaudit</pre><p>And we change it as follows:</p><pre>0,30 * * * * sudo /home/ipaudit/cron/cron30min
15 0 * * *   sudo /home/ipaudit/cron/crondaily
15 1 * * *   sudo /home/ipaudit/cron/cronclean
45 1 * * 0   sudo /home/ipaudit/cron/cronweekly
45 2 1 * *   sudo /home/ipaudit/cron/cronmonthly</pre><p>Now we need to modify the config slightly:</p><pre>sudo su - ipaudit
vi ipaudit-web.conf</pre><p>And we adjust change <code>CGI_BIN=/ipaudit-cgi</code> and <code>PidFile=/home/ipaudit/run/ipaudit.pid</code> (we cant use $IP_DIR here as it wouldn&#8217;t get expanded).</p><p>Finally, we need to fix the links in the generated html files:</p><pre>cd public_html
for i in `ls`;  do perl -p -i~ -e 's/~ipaudit/cgi-bin/ipaudit-cgi/g' "$i"; done
for i in `ls`;  do perl -p -i~ -e 's/~ipaudit/ipaudit/g' "$i";  done</pre><p></span></p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/how-to-install-ip-audit-web-10-on-openbsd-45/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to make a site IP based Solution:</title><link>http://newpush.com/2006/11/how-to-make-a-site-ip-based-solution/</link> <comments>http://newpush.com/2006/11/how-to-make-a-site-ip-based-solution/#comments</comments> <pubDate>Sun, 12 Nov 2006 09:19:14 +0000</pubDate> <dc:creator>Domonkos</dc:creator> <category><![CDATA[Cloud Computing]]></category> <category><![CDATA[Dedicated Servers]]></category> <category><![CDATA[Hosting Support]]></category> <category><![CDATA[Managed Hosting]]></category> <category><![CDATA[ensim]]></category> <category><![CDATA[IP]]></category><guid isPermaLink="false">http://newpush.com/?p=1559</guid> <description><![CDATA[A) Converting a Name-based site to a ip-based sitelogin as root and run the command: EditVirtDomain -c ipinfo,namebased=0,nbaddrs=\[\],ipaddrs=\[new_ip_addr\] domain_namewherenew_ip_addr is the new ip addressdomain_name is the domain name of the site e.g. EditVirtDomain -c ipinfo,namebased=0,nbaddrs=\[\],ipaddrs=\[10.5.3.2\] mydomain.com B) Converting an ip-based &#8230; <a href="http://newpush.com/2006/11/how-to-make-a-site-ip-based-solution/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><strong>A) Converting a Name-based site to a ip-based site</strong><br />login as root and run the command:</p><p><em>EditVirtDomain -c ipinfo,namebased=0,nbaddrs=\[\],ipaddrs=\[<strong>new_ip_addr</strong>\] <strong>domain_name</strong></em><br />where<br /><strong>new_ip_addr</strong> is the new ip address<br /><strong>domain_name</strong> is the domain name of the site</p><p>e.g. EditVirtDomain -c ipinfo,namebased=0,nbaddrs=\[\],ipaddrs=\[10.5.3.2\] mydomain.com<br /><strong></strong></p><p><strong><br />B) Converting an ip-based site to a Name-based site</strong><br />login as root and run the command:</p><p><em>EditVirtDomain -c ipinfo,namebased=1,ipadrs=\[\] <strong>domain_name</strong></em><br />where<br /><strong>domain_name</strong> is the domain name of the site</p><p>e.g. EditVirtDomain -c ipinfo,namebased=1,ipaddrs=\[\] mydomain.com</p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2006/11/how-to-make-a-site-ip-based-solution/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: newpush.com @ 2012-05-22 11:57:10 by W3 Total Cache -->
