<?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"
	>

<channel>
	<title>SinusPL's Blog</title>
	<atom:link href="http://blog.funil.de/sinuspl/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.funil.de/sinuspl</link>
	<description>Just another :: funil blogs :: weblog</description>
	<pubDate>Thu, 06 Oct 2011 08:58:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>New ham call site qrzcq.com starting</title>
		<link>http://blog.funil.de/sinuspl/2011/10/06/new-ham-call-site-qrzcqcom-starting/</link>
		<comments>http://blog.funil.de/sinuspl/2011/10/06/new-ham-call-site-qrzcqcom-starting/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 08:58:48 +0000</pubDate>
		<dc:creator>Gregor Surmann</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[ham radio]]></category>

		<category><![CDATA[internet]]></category>

		<category><![CDATA[call]]></category>

		<category><![CDATA[ham]]></category>

		<category><![CDATA[qrzcq]]></category>

		<category><![CDATA[qrzcq.com]]></category>

		<category><![CDATA[radio]]></category>

		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://blog.funil.de/sinuspl/?p=34</guid>
		<description><![CDATA[
Just put it online, register will work today!
http://qrzcq.com/
Try if you are a ham radio operator!

]]></description>
			<content:encoded><![CDATA[<div>
<p>Just put it online, register will work today!</p>
<p><a href="http://qrzcq.com/">http://qrzcq.com/</a></p>
<p>Try if you are a ham radio operator!</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.funil.de/sinuspl/2011/10/06/new-ham-call-site-qrzcqcom-starting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My ham radio activities</title>
		<link>http://blog.funil.de/sinuspl/2011/01/04/my-ham-radio-activities/</link>
		<comments>http://blog.funil.de/sinuspl/2011/01/04/my-ham-radio-activities/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 10:04:33 +0000</pubDate>
		<dc:creator>Gregor Surmann</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[blog]]></category>

		<category><![CDATA[do5ssb]]></category>

		<category><![CDATA[ham]]></category>

		<category><![CDATA[radio]]></category>

		<guid isPermaLink="false">http://blog.funil.de/sinuspl/?p=32</guid>
		<description><![CDATA[I would lite to introduce my new blog about my ham radio activities:
http://www.do5ssb.de/blog/
]]></description>
			<content:encoded><![CDATA[<p>I would lite to introduce my new blog about my ham radio activities:</p>
<p><a href="http://www.do5ssb.de/blog/">http://www.do5ssb.de/blog/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.funil.de/sinuspl/2011/01/04/my-ham-radio-activities/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PostgreSQL: create a user, a database and grant accesses</title>
		<link>http://blog.funil.de/sinuspl/2008/09/16/postgresql-create-a-user-a-database-and-grant-accesses/</link>
		<comments>http://blog.funil.de/sinuspl/2008/09/16/postgresql-create-a-user-a-database-and-grant-accesses/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 10:08:31 +0000</pubDate>
		<dc:creator>Gregor Surmann</dc:creator>
		
		<category><![CDATA[english]]></category>

		<category><![CDATA[postgresql]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[password]]></category>

		<category><![CDATA[script]]></category>

		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://blog.funil.de/sinuspl/?p=25</guid>
		<description><![CDATA[The following step-by-step will let you create a user, a database (DB) and grant full access to the user to this DB.

All the commands are executed as the postgres privileged user.
Create the user
For this, you use the command createuser which is provides with the postgreSQL package. Then answer the questions as you see fit :
postgres@hostname:~$ [...]]]></description>
			<content:encoded><![CDATA[<p>The following step-by-step will let you create a user, a database (DB) and grant full access to the user to this DB.<br />
<span id="more-25"></span><br />
All the commands are executed as the <tt>postgres</tt> privileged user.</p>
<h4>Create the user</h4>
<p>For this, you use the command <tt>createuser</tt> which is provides with the postgreSQL package. Then answer the questions as you see fit :</p>
<div class='code'>postgres@hostname:~$ createuser<br />
Enter name of role to add: username<br />
Shall the new role be a superuser? (y/n) n<br />
Shall the new role be allowed to create databases? (y/n) n<br />
Shall the new role be allowed to create more new roles? (y/n) n<br />
CREATE ROLE<br />
postgres@hostname:~$
</div>
<h4>Create the DB</h4>
<p>Use the <tt>createdb</tt> command to create the database :</p>
<div class='code'>postgres@hostname:~$ createdb databasename<br />
CREATE DATABASE<br />
postgres@hostname:~$
</div>
<h4>Grand access for the user to the DB</h4>
<p>And last, using the <tt>psql</tt> command, set a password for the user and grant accesses :</p>
<div class='code'>postgres@hostname:~$ psql<br />
postgres=# alter user username with encrypted password &#8216;password&#8217;;<br />
ALTER ROLE<br />
postgres=# grant all privileges on database databasename to username;<br />
GRANT<br />
postgres@hostname:~$</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.funil.de/sinuspl/2008/09/16/postgresql-create-a-user-a-database-and-grant-accesses/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Thunderbird default sort order for folders</title>
		<link>http://blog.funil.de/sinuspl/2008/09/16/thunderbird-default-sort-order-for-folders/</link>
		<comments>http://blog.funil.de/sinuspl/2008/09/16/thunderbird-default-sort-order-for-folders/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 10:03:20 +0000</pubDate>
		<dc:creator>Gregor Surmann</dc:creator>
		
		<category><![CDATA[english]]></category>

		<category><![CDATA[mozilla]]></category>

		<category><![CDATA[thunderbird]]></category>

		<category><![CDATA[default]]></category>

		<category><![CDATA[folder]]></category>

		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://blog.funil.de/sinuspl/?p=22</guid>
		<description><![CDATA[Want to set Thunderbird to always sort messages in some order?

OK, here&#8217;s some off-the-cuff documentation:
Prefs are named as follows; first three apply to Mail and RSS folders, the
second three to Newsgroups.

mailnews.default_sort_order
mailnews.default_sort_type
mailnews.default_view_flags
mailnews.default_news_sort_order
mailnews.default_news_sort_type
mailnews.default_news_view_flags

In about:config  (Tools &#124; Options &#124; Advanced &#124; General &#124; Config Editor), you can
enter &#8220;news._def&#8221; to filter out all the prefs but these.

sort_order:
  [...]]]></description>
			<content:encoded><![CDATA[<p>Want to set Thunderbird to always sort messages in some order?<br />
<span id="more-22"></span><br />
OK, here&#8217;s some off-the-cuff documentation:</p>
<p>Prefs are named as follows; first three apply to Mail and RSS folders, the<br />
second three to Newsgroups.</p>
<div class='code'>
mailnews.default_sort_order<br />
mailnews.default_sort_type<br />
mailnews.default_view_flags<br />
mailnews.default_news_sort_order<br />
mailnews.default_news_sort_type<br />
mailnews.default_news_view_flags
</div>
<p>In about:config  (Tools | Options | Advanced | General | Config Editor), you can<br />
enter &#8220;news._def&#8221; to filter out all the prefs but these.</p>
<div class='code'>
sort_order:<br />
  byNone        17         byPriority    23      byLocation    29<br />
  byDate        18 *       byStatus      24       byTags        30<br />
  bySubject     19 *       bySize        25       byJunkStatus  31<br />
  byAuthor      20 *       byFlagged     26      byAttachments 32<br />
  byId          21 **      byUnread      27      byAccount     33<br />
  byThread      22         byRecipient   28      byCustom      34<br />
    * = commonly desired values<br />
   ** = by Order Received (?)</p>
<p>sort_type:<br />
  ascending   1<br />
  descending  2</p>
<p>view_flags &#8212; the second group of values can be added to one of the first group<br />
to combine effects, with several limitations:<br />
  Unthreaded       0<br />
  Threaded         1<br />
  Grouped         64  [mail only (?)]</p>
<p>  ShowIgnored      8  [news only]<br />
  ShowUnreadOnly  16<br />
  ShowExpanded    32  [doesn't seem to work]
</p></div>
<p>ShowUnreadOnly will check the View|Threads|Unread menu; this will cause only<br />
unread items to be seen, but doesn&#8217;t force a threaded view.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.funil.de/sinuspl/2008/09/16/thunderbird-default-sort-order-for-folders/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fritz!CARD Software ohne CD-ROM installieren</title>
		<link>http://blog.funil.de/sinuspl/2008/09/16/fritzcard-software-ohne-cd-rom-installieren/</link>
		<comments>http://blog.funil.de/sinuspl/2008/09/16/fritzcard-software-ohne-cd-rom-installieren/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 10:00:22 +0000</pubDate>
		<dc:creator>Gregor Surmann</dc:creator>
		
		<category><![CDATA[deutsch]]></category>

		<category><![CDATA[isdn]]></category>

		<category><![CDATA[windows]]></category>

		<category><![CDATA[avm]]></category>

		<category><![CDATA[fritz]]></category>

		<category><![CDATA[reg]]></category>

		<category><![CDATA[registry]]></category>

		<guid isPermaLink="false">http://blog.funil.de/sinuspl/?p=27</guid>
		<description><![CDATA[Eine gebrauchte Fritz!CARD ISDN gibt es bereits für wenige Euro bei eBay. Die dazugehörige Software und Treiber kann man sich bei AVM runterladen. Leider verlangt die Installation die Original CD-ROM, die man meistens nicht hat. Die Abhilfe schafft eine REG-Datei.


REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\AVM]
[HKEY_LOCAL_MACHINE\SOFTWARE\AVM\FRITZ! 2.0]
@=&#8221;03.07.00&#8243;
[HKEY_LOCAL_MACHINE\SOFTWARE\AVM\FRITZ! 2.0\FRITZ!]
&#8220;SystemDir&#8221;=&#8221;C:\\Programme\\FRITZ!\\&#8221;
&#8220;Sprache&#8221;=&#8221;DEU&#8221;

Diese fügt man dann der Registry zu und startet die Installation.
]]></description>
			<content:encoded><![CDATA[<p>Eine gebrauchte Fritz!CARD ISDN gibt es bereits für wenige Euro bei eBay. Die dazugehörige Software und Treiber kann man sich bei AVM runterladen. Leider verlangt die Installation die Original CD-ROM, die man meistens nicht hat. Die Abhilfe schafft eine REG-Datei.<br />
<span id="more-27"></span></p>
<div class='code'>
REGEDIT4</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\AVM]</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\AVM\FRITZ! 2.0]<br />
@=&#8221;03.07.00&#8243;</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\AVM\FRITZ! 2.0\FRITZ!]<br />
&#8220;SystemDir&#8221;=&#8221;C:\\Programme\\FRITZ!\\&#8221;<br />
&#8220;Sprache&#8221;=&#8221;DEU&#8221;
</p></div>
<p>Diese fügt man dann der Registry zu und startet die Installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.funil.de/sinuspl/2008/09/16/fritzcard-software-ohne-cd-rom-installieren/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Aktion Befreiphone</title>
		<link>http://blog.funil.de/sinuspl/2008/09/11/aktion-befreiphone/</link>
		<comments>http://blog.funil.de/sinuspl/2008/09/11/aktion-befreiphone/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 11:47:54 +0000</pubDate>
		<dc:creator>Gregor Surmann</dc:creator>
		
		<category><![CDATA[befreiphone]]></category>

		<category><![CDATA[deutsch]]></category>

		<category><![CDATA[iphone]]></category>

		<category><![CDATA[befreiung]]></category>

		<guid isPermaLink="false">http://blog.funil.de/sinuspl/?p=26</guid>
		<description><![CDATA[Befreiphone ist eine neuer Trend bei dem iPhone. Normalerweise ist das iPhone gesperrt. Das heisst, man kann keine Software installieren. Man kann nur das machen was der Hersteller, Apple, vorgibt. Zwar gibt es bei neueren Geräten den App Store in dem man Anwendungen für den iPhone bekommt, so ganz befreit wird das iPhone dadurch aber [...]]]></description>
			<content:encoded><![CDATA[<p>Befreiphone ist eine neuer Trend bei dem iPhone. Normalerweise ist das iPhone gesperrt. Das heisst, man kann keine Software installieren. Man kann nur das machen was der Hersteller, Apple, vorgibt. Zwar gibt es bei neueren Geräten den App Store in dem man Anwendungen für den iPhone bekommt, so ganz befreit wird das iPhone dadurch aber nicht wirklich.<br />
<span id="more-26"></span><br />
Es gibt mehrere Möglichkeiten das iPhone zu befreien. Befreiphone ist nur eine davon ;)</p>
<p>Weiteres gibt es in einschlägigen Suchmaschinen zu finden. Leider ist es nicht möglich hier über Befreiphone zu schreiben.</p>
<p>Wenn Ihr an der Aktion Befreiphone teilnehmen möchtet, so seid doch ein bischen kreativ&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.funil.de/sinuspl/2008/09/11/aktion-befreiphone/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cisco IOS DHCP Server</title>
		<link>http://blog.funil.de/sinuspl/2008/09/05/cisco-ios-dhcp-server/</link>
		<comments>http://blog.funil.de/sinuspl/2008/09/05/cisco-ios-dhcp-server/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 13:54:00 +0000</pubDate>
		<dc:creator>Gregor Surmann</dc:creator>
		
		<category><![CDATA[cisco]]></category>

		<category><![CDATA[deutsch]]></category>

		<category><![CDATA[dhcp]]></category>

		<category><![CDATA[ios]]></category>

		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.funil.de/sinuspl/?p=23</guid>
		<description><![CDATA[Cisco Router können als DHCP-Server fungieren.

Folgendes wird angenommen:
Netz: 10.0.0.0/8
DHCP-Bereich: 10.6.0.0 bis 10.8.17.4
DNS: 10.11.12.13
Gateway: 10.0.0.1

!
ip dhcp pool DHCP_POOL
   network 10.0.0.0 255.0.0.0
   default-router 10.0.0.1
   dns-server 10.11.12.13
   class DEFAULT
      address range 10.6.0.0 10.8.17.4
!
!
ip dhcp class DEFAULT
!

Zu beachten ist, dass die ACL für das Netzwerk-Interface folgendes [...]]]></description>
			<content:encoded><![CDATA[<p>Cisco Router können als DHCP-Server fungieren.<br />
<span id="more-23"></span><br />
Folgendes wird angenommen:</p>
<p>Netz: 10.0.0.0/8<br />
DHCP-Bereich: 10.6.0.0 bis 10.8.17.4<br />
DNS: 10.11.12.13<br />
Gateway: 10.0.0.1</p>
<div class='code'>
<pre>!
ip dhcp pool DHCP_POOL
   network 10.0.0.0 255.0.0.0
   default-router 10.0.0.1
   dns-server 10.11.12.13
   class DEFAULT
      address range 10.6.0.0 10.8.17.4
!
!
ip dhcp class DEFAULT
!</pre>
</div>
<p>Zu beachten ist, dass die ACL für das Netzwerk-Interface folgendes mit drin hat:</p>
<div class='code'>
access-list 142 permit udp any any eq bootpc<br />
access-list 142 permit udp any any eq bootps
</div>
<p>Ab jetzt verteilt der Router die IP-Adressen für das Netz.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.funil.de/sinuspl/2008/09/05/cisco-ios-dhcp-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu Light</title>
		<link>http://blog.funil.de/sinuspl/2008/09/04/ubuntu-light/</link>
		<comments>http://blog.funil.de/sinuspl/2008/09/04/ubuntu-light/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 19:10:51 +0000</pubDate>
		<dc:creator>Gregor Surmann</dc:creator>
		
		<category><![CDATA[deutsch]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[hardy]]></category>

		<category><![CDATA[light]]></category>

		<category><![CDATA[mini]]></category>

		<guid isPermaLink="false">http://blog.funil.de/sinuspl/?p=20</guid>
		<description><![CDATA[Ubuntu ist eine aktuelle Linux-Distribution, die auf Debian basiert. Ich beschreibe mal hier, wie man eine Light-Version davon bekommt.


Zuerst laden wir die Mini-CD von

https://help.ubuntu.com/community/Installation/MinimalCD

und installieren &#8216;cli&#8217;. Danach einfach weitere Pakete:

apt-get install xorg gnome-core gdm gnome-media gnome-system-monitor gnome-system-tools gnome-volume-manager gnome-utils gnome-app-install gnome-screensaver synaptic firefox usplash usplash-theme-ubuntu ubuntu-artwork

Das ganze installiert ein Mini-Ubuntu mit ca. 1GB Festplattenplatz. Das [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu ist eine aktuelle Linux-Distribution, die auf Debian basiert. Ich beschreibe mal hier, wie man eine Light-Version davon bekommt.<br />
<a href='http://blog.funil.de/sinuspl/files/2008/09/ubuntulogo.png'><img src="http://blog.funil.de/sinuspl/files/2008/09/ubuntulogo.png" alt="" width="202" height="55" class="alignnone size-medium wp-image-21" /></a><br />
<span id="more-20"></span><br />
Zuerst laden wir die Mini-CD von</p>
<div class='code'>
https://help.ubuntu.com/community/Installation/MinimalCD
</div>
<p>und installieren &#8216;cli&#8217;. Danach einfach weitere Pakete:</p>
<div class='code'>
apt-get install xorg gnome-core gdm gnome-media gnome-system-monitor gnome-system-tools gnome-volume-manager gnome-utils gnome-app-install gnome-screensaver synaptic firefox usplash usplash-theme-ubuntu ubuntu-artwork
</div>
<p>Das ganze installiert ein Mini-Ubuntu mit ca. 1GB Festplattenplatz. Das Paket &#8216;ubuntu-artwork&#8217; ist nicht zwingend erforderlich. Das Paket &#8216;xorg&#8217; ist ein Meta-Package, man kann also seine einzelne Bestandteile abhängig von der verwendeten Hardware installieren und so noch mehr Platz sparen.</p>
<p>Die Pakete &#8216;usplash&#8217; und &#8216;usplash-theme-ubuntu&#8217; braucht man, damit gdm keine Fehler macht.</p>
<p>Am Ende hat man kleinen Desktop, der dann erweitert werden kann. Mit</p>
<div class='code'>
apt-get install ubuntu-desktop
</div>
<p>installiert man darin wieder normales komplettes Standard-Ubuntu. Achtung, groß! ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.funil.de/sinuspl/2008/09/04/ubuntu-light/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Transparent Squid Proxy auf Ubuntu 8.04.1 Server</title>
		<link>http://blog.funil.de/sinuspl/2008/09/03/transparent-squid-proxy-auf-ubuntu-8041-server/</link>
		<comments>http://blog.funil.de/sinuspl/2008/09/03/transparent-squid-proxy-auf-ubuntu-8041-server/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 21:33:21 +0000</pubDate>
		<dc:creator>Gregor Surmann</dc:creator>
		
		<category><![CDATA[deutsch]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[squid]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[hardy]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[proxy]]></category>

		<category><![CDATA[transparent]]></category>

		<guid isPermaLink="false">http://blog.funil.de/sinuspl/?p=17</guid>
		<description><![CDATA[Im Internet kursieren verschiedene Anleitungen, wie man einen transparenten Squid Proxy aufsetzt. Leider sind einige veraltet, beziehen sich auf den alten Squid oder sonst etwas älteres. Ich habe mir vorgenommen eine aktuelle Anleitung zu schreiben, die auf dem Ubuntu Server 8.04.1 (Hardy Heron) basiert.

Der Server braucht mindestens 2 Netzwerkkarten, bevorzugt Inten PRO-1000. Ich nehme an, [...]]]></description>
			<content:encoded><![CDATA[<p>Im Internet kursieren verschiedene Anleitungen, wie man einen transparenten Squid Proxy aufsetzt. Leider sind einige veraltet, beziehen sich auf den alten Squid oder sonst etwas älteres. Ich habe mir vorgenommen eine aktuelle Anleitung zu schreiben, die auf dem Ubuntu Server 8.04.1 (Hardy Heron) basiert.<br />
<span id="more-17"></span><br />
Der Server braucht mindestens 2 Netzwerkkarten, bevorzugt Inten PRO-1000. Ich nehme an, das lokale Netz ist 192.168.0.0/24, der Router hat die IP 192.168.0.1 und unser Proxy bekommt die IP 192.168.0.2 und die Nameserver haben die IPs 193.101.111.20 sowie 193.101.111.10.</p>
<p>Zuerst ist eine Ubuntu-Installation vorzunehmen. Diese wird normal gemacht, aber am Ende wird nur noch der SSH-Server installiert.</p>
<p>Nach der Installation installieren wir einige Pakete:</p>
<div class='code'>
root@mobile:~# apt-cache search squid | grep -e &#8220;^squid &#8221; -e &#8220;^sqcwa &#8221; -e &#8220;^squid-prefetch &#8221; -e &#8220;^bridge-utils &#8221;<br />
squid - Internet object cache (WWW proxy cache)<br />
sqcwa - Workaround for Squid not caching some pages<br />
squid-prefetch - Simple page-prefetch for Squid web proxy<br />
bridge-utils - Utilities for configuring the Linux ethernet bridge<br />
root@mobile:~# apt-get install squid sqcwa squid-prefetch bridge-utils
</div>
<p>In /etc/squid/squid.conf suchen wir die folgende Zeilen:</p>
<div class='code'>
http_port 3128<br />
#acl our_networks src 192.168.1.0/24 192.168.2.0/24<br />
#http_access allow our_networks
</div>
<p>und ändern es in:</p>
<div class='code'>
http_port 3128 transparent<br />
acl our_networks src 192.168.0.0/24<br />
http_access allow our_networks
</div>
<p>Danach ersetzen wir den Inhalt von /etc/network/interfaces durch:</p>
<div class='code'>
# This file describes the network interfaces available on your system<br />
# and how to activate them. For more information, see interfaces(5).</p>
<p># The loopback network interface<br />
auto lo<br />
iface lo inet loopback</p>
<p># The primary network interface<br />
auto br0<br />
iface br0 inet static<br />
        pre-up brctl addbr br0<br />
        pre-up brctl addif br0 eth0<br />
        pre-up brctl addif br0 eth1<br />
        pre-up ifconfig eth0 0.0.0.0<br />
        pre-up ifconfig eth1 0.0.0.0<br />
        post-down brctl delbr br0<br />
        address 192.168.0.2<br />
        netmask 255.255.255.0<br />
        gateway 192.168.0.1<br />
        bridge_fd 0<br />
        bridge_hello 0<br />
        bridge_stp off
</p></div>
<p>Dann noch DNS in /etc/resolv.conf:</p>
<div class='code'>
nameserver 193.101.111.20<br />
nameserver 193.101.111.10
</div>
<p>Vor dem Ende kommt noch die magische iptables-Regel in die /etc/rc.local:</p>
<div class='code'>
/sbin/iptables -t nat -A PREROUTING -i br0 -p tcp &#8211;dport 80 -j REDIRECT &#8211;to-port 3128
</div>
<p>Sollten wir irgendwann einen Packetfilter auf iptables-Basis haben so fügen wir diese Regel dort ein.</p>
<p>Am Ende shutdown. Jetzt stellen wir den Proxy neben dem Router, schliessen eine Netzwerkkarte an den Router direkt und die andere an das Netzwerk. Welche wohin ist vollkommen egal.</p>
<p>Das Ganze ist natürlich beliebig ausbaufähig&#8230;</p>
<p>Einschalten, fertig ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.funil.de/sinuspl/2008/09/03/transparent-squid-proxy-auf-ubuntu-8041-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Das böse ICMP</title>
		<link>http://blog.funil.de/sinuspl/2008/09/03/das-boese-icmp/</link>
		<comments>http://blog.funil.de/sinuspl/2008/09/03/das-boese-icmp/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 21:09:17 +0000</pubDate>
		<dc:creator>Gregor Surmann</dc:creator>
		
		<category><![CDATA[deutsch]]></category>

		<category><![CDATA[icmp]]></category>

		<category><![CDATA[tcp/ip]]></category>

		<category><![CDATA[firewall]]></category>

		<category><![CDATA[internet]]></category>

		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://blog.funil.de/sinuspl/?p=18</guid>
		<description><![CDATA[&#8220;ICMP ist Böse.&#8221; Warum eigentlich?

Frühertm, als das Internet noch aus wenigen (einigen Tausenden) Nodes bestand gab es ein großes Problem, das Ping of Death. Packete, die eine bestimmte größe hatten brachten den IP-Stack mancher Betriebssysteme zum Absturz. Dies wurde auch ausgenutzt.
Heute verrichtet ICMP verschiedene nutzliche Sachen. Es unterrichtet die beiden Seiten einer TCP-Übertragung darüber, dass [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;ICMP ist Böse.&#8221; Warum eigentlich?<br />
<span id="more-18"></span><br />
Früher<sup>tm</sup>, als das Internet noch aus wenigen (einigen Tausenden) Nodes bestand gab es ein großes Problem, das Ping of Death. Packete, die eine bestimmte größe hatten brachten den IP-Stack mancher Betriebssysteme zum Absturz. Dies wurde auch ausgenutzt.</p>
<p>Heute verrichtet ICMP verschiedene nutzliche Sachen. Es unterrichtet die beiden Seiten einer TCP-Übertragung darüber, dass eine Leitung voll ist oder eine Anwendung nicht schnell genug die Daten verarbeitet, ein Router schickt eine Nachricht, dass ein Host nicht erreichbar ist usw&#8230; also im Prinzip nichts böses.</p>
<p>Im Prinzip, also in der Theorie. In der Praxis kann man schon böses damit anstellen. Wenn man nur bischen kriminelle Energie hat ;)</p>
<p>ICMP lebt auf Layer 4 im OSI-Schichtmodell, neben UDP, TCP usw. Es hat die Protokollnummer 1. Nebenbei: TCP hat 6 und UDP 17.</p>
<p>Wie wir bei IANA (http://www.iana.org/assignments/icmp-parameters) nachlesen können gibt es einige Nachrichten, die versandt oder empfangen werden können:</p>
<div class='code'>
<pre>
Type	Name					Reference
----	-------------------------		---------
  0	Echo Reply				 [RFC792]
  1	Unassigned				    [JBP]
  2	Unassigned				    [JBP]
  3	Destination Unreachable			 [RFC792]
  4	Source Quench			 	 [RFC792]
  5	Redirect				 [RFC792]
  6	Alternate Host Address			    [JBP]
  7	Unassigned				    [JBP]
  8	Echo					 [RFC792]
  9	Router Advertisement			[RFC1256]
 10	Router Solicitation			[RFC1256]
 11	Time Exceeded				 [RFC792]
 12	Parameter Problem			 [RFC792]
 13	Timestamp				 [RFC792]
 14	Timestamp Reply				 [RFC792]
 15	Information Request			 [RFC792]
 16	Information Reply			 [RFC792]
 17	Address Mask Request                     [RFC950]
 18	Address Mask Reply			 [RFC950]
 19	Reserved (for Security)			   [Solo]
 20-29	Reserved (for Robustness Experiment)	    [ZSu]
 30	Traceroute				[RFC1393]
 31	Datagram Conversion Error		[RFC1475]
 32     Mobile Host Redirect              [David Johnson]
 33     IPv6 Where-Are-You                 [Bill Simpson]
 34     IPv6 I-Am-Here                     [Bill Simpson]
 35     Mobile Registration Request        [Bill Simpson]
 36     Mobile Registration Reply          [Bill Simpson]
 37     Domain Name Request                     [RFC1788]
 38     Domain Name Reply                       [RFC1788]
 39     SKIP                                    [Markson]
 40     Photuris                                [RFC2521]
 41     ICMP messages utilized by experimental  [RFC4065]
        mobility protocols such as Seamoby
 42-255 Reserved				    [JBP]
</pre>
</div>
<p>Sollte man also ICMP auf der Firewall komplett blocken?</p>
<p>Meine Antwort lautet NEIN. Auf keinen Fall. Eine gut eingerichtete Firewall antwortet wohl auf z.B. ICMP Echo. Nur weil eine, beispielweise, IPSEC Firewall nicht auf &#8220;ping&#8221; antwortet heisst nicht, dass man nicht rausfinden kann ob sie da ist.</p>
<p>ICMP-Typen die auf jeden fall durchgelassen werden sollten sind:</p>
<div class='code'>
0,3,4,5,6,8,11,12,30
</div>
<p>Dann funktioniert die Firewall richtig und es gibt keine merkwürdigen Probleme. Man kann aber durchaus komplett ICMP erlauben. Es ist nicht Böse! ;)</p>
<p>Viel wichtiger ist es z.B. FTP abzusichern, da es &#8220;Löcher&#8221; bohren kann oder aufzupassen, dass die Hosts nicht von Innen nach Aussen Verbindungen aufbauen, was z.B. bei geknackten Rechnern der Fall sein kann, der Tunneling über DNS.</p>
<p>Also, lass uns pingen&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.funil.de/sinuspl/2008/09/03/das-boese-icmp/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

