<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.2030.tk" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>security</title>
 <link>http://www.2030.tk/tag/security</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Create sftp only accounts on ubuntu server</title>
 <link>http://www.2030.tk/wiki/Create_sftp_only_accounts_on_ubuntu_server</link>
 <description>&lt;div class=&quot;wiki-content&quot;&gt;&lt;h1&gt; Configuring OpenSSH &lt;/h1&gt;
&lt;p&gt;Edit the file /etc/ssh/sshd_config
and change the line that starts with
&lt;/p&gt;
&lt;pre&gt; Subsystem sftp /.....
&lt;/pre&gt;
&lt;p&gt;to
&lt;/p&gt;
&lt;pre&gt; Subsystem sftp sftp-internal /.....
&lt;/pre&gt;
&lt;p&gt;and add following block at the end of this file:
&lt;/p&gt;
&lt;pre&gt; Match group filetransfer
   ChrootDirectory %h
   X11Forwarding no
   AllowTcpForwarding no
   ForceCommand internal-sftp
&lt;/pre&gt;
&lt;p&gt;Finally restart OpenSSH
&lt;/p&gt;
&lt;pre&gt; /etc/init.d/ssh restart
&lt;/pre&gt;
&lt;h1&gt; Create the sftp only group &lt;/h1&gt;
&lt;pre&gt; addgroup filetransfer
&lt;/pre&gt;
&lt;h1&gt; Create a user and jail it into that group (no SSH login allowed for them) &lt;/h1&gt;
&lt;pre&gt; adduser username
 usermod -G filetransfer username
&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.2030.tk/wiki/Create_sftp_only_accounts_on_ubuntu_server&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.2030.tk/wiki/Create_sftp_only_accounts_on_ubuntu_server#comments</comments>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <category domain="http://www.2030.tk/tag/server">server</category>
 <category domain="http://www.2030.tk/tag/sftp">sftp</category>
 <category domain="http://www.2030.tk/tag/ssh">ssh</category>
 <category domain="http://www.2030.tk/tag/ubuntu">ubuntu</category>
 <pubDate>Fri, 25 Nov 2011 23:52:59 +0100</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">259 at http://www.2030.tk</guid>
</item>
<item>
 <title>Smartcard</title>
 <link>http://www.2030.tk/security/smartcard</link>
 <description>&lt;div class=&quot;wiki-content&quot;&gt;&lt;h1&gt; Links &lt;/h1&gt;
&lt;ul&gt;&lt;li&gt; &lt;a href=&quot;https://berlin.ccc.de/wiki/ChipcardLab&quot;&gt;https://berlin.ccc.de/wiki/ChipcardLab&lt;/a&gt;
&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.runningserver.com/?page=runningserver.content.thelab.datengarten-chipkarten&quot;&gt;http://www.runningserver.com/?page=runningserver.content.thelab.datengarten-chipkarten&lt;/a&gt;
&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.runningserver.com/?page=runningserver.content.thelab.geekkarte&quot;&gt;http://www.runningserver.com/?page=runningserver.content.thelab.geekkarte&lt;/a&gt;
&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.st.com/stonline/products/families/smartcard/sc_app_tv_cp_ics.htm&quot;&gt;http://www.st.com/stonline/products/families/smartcard/sc_app_tv_cp_ics.htm&lt;/a&gt;
&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.crypto.rub.de/practicals_embscm.html&quot;&gt;http://www.crypto.rub.de/practicals_embscm.html&lt;/a&gt;
&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.atmel.com/dyn/products/devices.asp?family_id=662&quot;&gt;http://www.atmel.com/dyn/products/devices.asp?family_id=662&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;</description>
 <comments>http://www.2030.tk/security/smartcard#comments</comments>
 <category domain="http://www.2030.tk/tag/microchip">microchip</category>
 <category domain="http://www.2030.tk/tag/programming">programming</category>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <category domain="http://www.2030.tk/tag/smartcard">smartcard</category>
 <pubDate>Fri, 13 Feb 2009 12:53:01 +0100</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">217 at http://www.2030.tk</guid>
</item>
<item>
 <title>Kryptologie</title>
 <link>http://www.2030.tk/book/kryptologie</link>
 <description>&lt;p&gt;Hier entsteht eine ansammlung von Informationen zu Krypto technicken.&lt;/p&gt;
</description>
 <comments>http://www.2030.tk/book/kryptologie#comments</comments>
 <category domain="http://www.2030.tk/tag/hsz-t">hsz-t</category>
 <category domain="http://www.2030.tk/tag/school">school</category>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <pubDate>Sat, 02 Aug 2008 13:59:28 +0200</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">202 at http://www.2030.tk</guid>
</item>
<item>
 <title>Bluetooth security on headsets</title>
 <link>http://www.2030.tk/bluetooth-security-headsets</link>
 <description>&lt;p&gt;&lt;!--paging_filter--&gt;Just enjoy this video&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.2030.tk/bluetooth-security-headsets&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.2030.tk/bluetooth-security-headsets#comments</comments>
 <category domain="http://www.2030.tk/tag/bluethooth">bluethooth</category>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <pubDate>Tue, 24 Jun 2008 09:22:41 +0200</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">200 at http://www.2030.tk</guid>
</item>
<item>
 <title>Scanning Filesystem for files with weak retriktions</title>
 <link>http://www.2030.tk/security/scanning-filesystem-files-with-weak-retriktions</link>
 <description>&lt;div class=&quot;wiki-content&quot;&gt;&lt;p&gt;Find world writable files that coud be attacked:
&lt;/p&gt;
&lt;pre&gt;$  find / -perm -2&amp;nbsp;! -type l -ls
&lt;/pre&gt;
&lt;/div&gt;</description>
 <comments>http://www.2030.tk/security/scanning-filesystem-files-with-weak-retriktions#comments</comments>
 <category domain="http://www.2030.tk/tag/hacking">hacking</category>
 <category domain="http://www.2030.tk/tag/linux">Linux</category>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <category domain="http://www.2030.tk/tag/shell">shell</category>
 <pubDate>Thu, 05 Jun 2008 14:45:52 +0200</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">194 at http://www.2030.tk</guid>
</item>
<item>
 <title>Encrypt an partition with cryptsetup</title>
 <link>http://www.2030.tk/wiki/Encrypt_an_partition_with_cryptsetup</link>
 <description>&lt;div class=&quot;wiki-content&quot;&gt;&lt;p&gt;This howto log is done on Ubuntu 7.10 64-bit version but should be fine with most debian based distros
&lt;/p&gt;&lt;p&gt;Go to the related link at the end of this article if you want to know what the commands exactly do or if you dont have the same system as I have
&lt;/p&gt;&lt;p&gt;Create a partition GParted (aptitude install gparted), Select Filesystem as &quot;not formatted&quot; and note down the device name (e.g. /dev/sdb1)
&lt;/p&gt;
&lt;h3&gt;Install needed tools&lt;/h3&gt;
&lt;pre&gt; aptitude install cryptsetup
&lt;/pre&gt;
&lt;h3&gt;Load needed modules&lt;/h3&gt;
&lt;p&gt;If you have a 32-bit Pentium, you need to load aes-i586 or simply aes (not optimized) instead of aes-x86_64
&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.2030.tk/wiki/Encrypt_an_partition_with_cryptsetup&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.2030.tk/wiki/Encrypt_an_partition_with_cryptsetup#comments</comments>
 <category domain="http://www.2030.tk/tag/crypto">crypto</category>
 <category domain="http://www.2030.tk/howtos">Howto</category>
 <category domain="http://www.2030.tk/tag/linux">Linux</category>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <category domain="http://www.2030.tk/tag/ubuntu">ubuntu</category>
 <pubDate>Wed, 26 Mar 2008 21:18:49 +0100</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">172 at http://www.2030.tk</guid>
</item>
<item>
 <title>Hacking humans with ICD</title>
 <link>http://www.2030.tk/hacking-humans-icd</link>
 <description>&lt;p&gt;I just want to spread this paper about what can happen if we connect everything wireless with computers...&lt;br /&gt;
&lt;a href=&quot;http://www.secure-medicine.org/icd-study/icd-study.pdf&quot; title=&quot;http://www.secure-medicine.org/icd-study/icd-study.pdf&quot;&gt;http://www.secure-medicine.org/icd-study/icd-study.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Something that did make me think is that 3 of the authors are dead at the time of publishing this paper...&lt;br /&gt;
Did they do self experiments that went wrong...&lt;/p&gt;
</description>
 <comments>http://www.2030.tk/hacking-humans-icd#comments</comments>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <pubDate>Wed, 12 Mar 2008 13:39:11 +0100</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">165 at http://www.2030.tk</guid>
</item>
<item>
 <title>Compromising Reflections - Schlechte news für Brillenträger?</title>
 <link>http://www.2030.tk/compromising-reflections</link>
 <description>&lt;p&gt;&lt;!--paging_filter--&gt;&lt;img src=&quot;http://www.2030.tk/files/imagepicker/r/rac/eye-macro.jpg&quot; alt=&quot;Eye-Reflections Quelle:http://www.infsec.cs.uni-sb.de/projects/reflections&quot; style=&quot;float: right;&quot; /&gt;Beängstigend, was man da so alles aus den Augen ablesen kann...&lt;br /&gt;
Das man aus Fotos die Spiegelung des Unsichtbaren hinter der Kamera extrahieren kann, ist ja seit langem bekannt aber das damit Ganze Dokumente in dieser Qualität rekonstruiert werden können ist irgendwie doch beängstigend für &quot;Schützer der Provatsphäre&quot;.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.2030.tk/compromising-reflections&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.2030.tk/compromising-reflections#comments</comments>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <pubDate>Wed, 20 Feb 2008 11:35:05 +0100</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">158 at http://www.2030.tk</guid>
</item>
<item>
 <title>Bypassing Security Tips</title>
 <link>http://www.2030.tk/security/bypassing-security-tips</link>
 <description>&lt;div class=&quot;wiki-content&quot;&gt;&lt;h2&gt; Get root &lt;/h2&gt;
&lt;ul&gt;&lt;li&gt; Schaut euch die cron jobs an und haltet ausschau nach beschreibbaren dateien&amp;nbsp;;-)
&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;https://www.2030.tk/security/get-root&quot;&gt;Wargame sample&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;h2&gt; Restricted Shell breakout &lt;/h2&gt;
&lt;ul&gt;&lt;li&gt; Hab ich Befehle zur verfügung, mit denen ich andere Befehle überscfhreiben kann...???
&lt;/li&gt;&lt;/ul&gt;
&lt;pre&gt; z.B. tee, cat oder notfals auch nur ein simpler echo...
&lt;/pre&gt;
&lt;h2&gt; Encrypted files (EFS) in Windows Offline Folders &lt;/h2&gt;
&lt;p&gt;Überlegt mal, welcher account (man muss sich mit diesem nicht einloggen können) automatisiert auf diese Files zugreifen muss bzw. diese Ent- und Verschlüsseln kann...
&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.2030.tk/security/bypassing-security-tips&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.2030.tk/security/bypassing-security-tips#comments</comments>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <category domain="http://www.2030.tk/tag/tips">tips</category>
 <pubDate>Tue, 15 Jan 2008 14:35:15 +0100</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">137 at http://www.2030.tk</guid>
</item>
<item>
 <title>SSH Tunneling (Port forwarding)</title>
 <link>http://www.2030.tk/wiki/SSH_Tunneling_%28Port_forwarding%29</link>
 <description>&lt;div class=&quot;wiki-content&quot;&gt;&lt;h1&gt; local forward &lt;/h1&gt;
&lt;pre&gt; ssh -L port:target:targetport host
&lt;/pre&gt;
&lt;p&gt;Dieser Befehl baut eine Verbindung zu host auf und leitet alle Verbindungen zu localhost:port an target:targetport, über die ssh-Verbindung, weiter.
&lt;/p&gt;
&lt;h1&gt; remote forward &lt;/h1&gt;
&lt;pre&gt; ssh -R port:target:targetport host
&lt;/pre&gt;
&lt;p&gt;Dieser Befehl baut eine Verbindung zu host auf und leitet alle Verbindungen zu host:port an target:targetport, über die ssh-Verbindung, weiter. 
&lt;/p&gt;
&lt;h1&gt; X-Forwarding &lt;/h1&gt;
&lt;p&gt;Mittels X-Forwarding ist es möglich, ein oder mehrere Programme auf einem anderen Rechner zu starten aber auf dem eigenen anzeigen zu lassen.
&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.2030.tk/wiki/SSH_Tunneling_%28Port_forwarding%29&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.2030.tk/wiki/SSH_Tunneling_%28Port_forwarding%29#comments</comments>
 <category domain="http://www.2030.tk/howtos">Howto</category>
 <category domain="http://www.2030.tk/tag/linux">Linux</category>
 <category domain="http://www.2030.tk/tag/rsync">rsync</category>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <category domain="http://www.2030.tk/tag/ssh">ssh</category>
 <category domain="http://www.2030.tk/tag/tunnel">tunnel</category>
 <pubDate>Sat, 05 Jan 2008 04:00:55 +0100</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">29 at http://www.2030.tk</guid>
</item>
<item>
 <title>IPTables</title>
 <link>http://www.2030.tk/wiki/IPTables</link>
 <description>&lt;div class=&quot;wiki-content&quot;&gt;&lt;h1&gt; SSH Bruteforce blocken &lt;/h1&gt;
&lt;p&gt;FOO durch den Namen der Firewall Chain und eth0 durch den Richtigen Netzwerkadapter ersetzen und natürlich sudo iptables davor.
&lt;/p&gt;
&lt;pre&gt; # SSH: mehr als 3 neue Verbindungen/60 Sek.: BruteForce loggen
 -A FOO -i eth0 -p tcp --dport 22 -m state --state NEW -m recent --rcheck --seconds 60 --hitcount 3 --rttl --name SSH -j LOG --log-level 7 --log-prefix &quot;SSH_BruteForce &quot;
 # SSH: mehr als 3 neue Verbindungen/60 Sek.: BruteForce droppen
 -A FOO -i eth0 -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 3 --rttl --name SSH -j DROP
&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.2030.tk/wiki/IPTables&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.2030.tk/wiki/IPTables#comments</comments>
 <category domain="http://www.2030.tk/tag/firewall">firewall</category>
 <category domain="http://www.2030.tk/howtos">Howto</category>
 <category domain="http://www.2030.tk/tag/iptables">iptables</category>
 <category domain="http://www.2030.tk/tag/linux">Linux</category>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <pubDate>Wed, 02 Jan 2008 13:21:46 +0100</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">24 at http://www.2030.tk</guid>
</item>
<item>
 <title>Enable AuthenTec Fingerprint Reader as PAM modul</title>
 <link>http://www.2030.tk/wiki/Enable_AuthenTec_Fingerprint_Reader_as_PAM_modul</link>
 <description>&lt;div class=&quot;wiki-content&quot;&gt;&lt;h3&gt; Using fprint library &lt;/h3&gt;
&lt;p&gt;It seems that the fprint packages are now in ubuntu universe repository for interpid and for hardy-backports...
&lt;a href=&quot;http://packages.ubuntu.com/search?lang=de&amp;amp;searchon=names&amp;amp;keywords=fprint&quot;&gt;http://packages.ubuntu.com/search?lang=de&amp;amp;searchon=names&amp;amp;keywords=fprint&lt;/a&gt;
&lt;/p&gt;
&lt;h4&gt; Using Debian packages from Madman2k &lt;/h4&gt;
&lt;p&gt;(Text copy)
&lt;/p&gt;&lt;p&gt;In order to enable fprint authentication on Ubuntu install the libfprint and libpam packages (see attached tar or download from madmans site) and then edit your /etc/pam.d/common-auth so it contains
&lt;/p&gt;
&lt;pre&gt; auth    sufficient      pam_fprint.so
 auth    required        pam_unix.so nullok_secure
&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.2030.tk/wiki/Enable_AuthenTec_Fingerprint_Reader_as_PAM_modul&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.2030.tk/wiki/Enable_AuthenTec_Fingerprint_Reader_as_PAM_modul#comments</comments>
 <category domain="http://www.2030.tk/tag/administration">administration</category>
 <category domain="http://www.2030.tk/tag/fingerprint">fingerprint</category>
 <category domain="http://www.2030.tk/howtos">Howto</category>
 <category domain="http://www.2030.tk/tag/linux">Linux</category>
 <category domain="http://www.2030.tk/tag/pam">PAM</category>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <category domain="http://www.2030.tk/tag/ubuntu">ubuntu</category>
 <enclosure url="http://www.2030.tk/system/files/fprint-packages-madman2k.tar" length="194560" type="application/x-tar" />
 <pubDate>Tue, 01 Jan 2008 14:05:46 +0100</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">18 at http://www.2030.tk</guid>
</item>
<item>
 <title>Apache Force SSL on vhost</title>
 <link>http://www.2030.tk/wiki/Apache_Force_SSL_on_vhost</link>
 <description>&lt;p&gt;Edit your htaccess (or server conf file) to look like this one :&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;div class=&quot;geshifilter-apache&quot; style=&quot;font-family: monospace;&quot;&gt;
&lt;ol&gt;
&lt;li style=&quot;font-family: monospace; font-weight: normal;&quot;&gt;
&lt;div style=&quot;font-family: monospace; font-weight: normal; font-style: normal&quot;&gt;&amp;lt;Files *.ini&amp;gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: monospace; font-weight: normal;&quot;&gt;
&lt;div style=&quot;font-family: monospace; font-weight: normal; font-style: normal&quot;&gt;&lt;span style=&quot;color: #00007f;&quot;&gt;Order&lt;/span&gt; &lt;span style=&quot;color: #00007f;&quot;&gt;Allow&lt;/span&gt;,&lt;span style=&quot;color: #00007f;&quot;&gt;Deny&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: monospace; font-weight: normal;&quot;&gt;
&lt;div style=&quot;font-family: monospace; font-weight: normal; font-style: normal&quot;&gt;&lt;span style=&quot;color: #00007f;&quot;&gt;Deny&lt;/span&gt; &lt;span style=&quot;color: #00007f;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: #00007f;&quot;&gt;all&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: monospace; font-weight: normal;&quot;&gt;
&lt;div style=&quot;font-family: monospace; font-weight: normal; font-style: normal&quot;&gt;&amp;lt;/Files&amp;gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: monospace; font-weight: normal;&quot;&gt;
&lt;div style=&quot;font-family: monospace; font-weight: normal; font-style: normal&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: monospace; font-weight: normal;&quot;&gt;
&lt;div style=&quot;font-family: monospace; font-weight: normal; font-style: normal&quot;&gt;&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteEngine&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;on&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: monospace; font-weight: normal;&quot;&gt;
&lt;div style=&quot;font-family: monospace; font-weight: normal; font-style: normal&quot;&gt;&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteBase&lt;/span&gt; /&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: monospace; font-weight: normal;&quot;&gt;
&lt;div style=&quot;font-family: monospace; font-weight: normal; font-style: normal&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: monospace; font-weight: normal;&quot;&gt;
&lt;div style=&quot;font-family: monospace; font-weight: normal; font-style: normal&quot;&gt;&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;SERVER_PORT&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !&lt;span style=&quot;color: #ff0000;&quot;&gt;443&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-family: monospace; font-weight: normal;&quot;&gt;
&lt;div style=&quot;font-family: monospace; font-weight: normal; font-style: normal&quot;&gt;&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteRule&lt;/span&gt; ^&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;.*&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;?$ https://%&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;SERVER_NAME&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;$&lt;span style=&quot;color: #ff0000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;L,R&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;For thoses of you who don&#039;t know about RewriteCond?, the first one check the server port used to connect. If it&#039;s not 443 (default HTTPS port), it redirects all request to the same https vhost and URI.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Reference&lt;/strong&gt;&lt;/p&gt;
&lt;li&gt; &lt;a href=&quot;https://trac.usvn.info/wiki/Documentation/HTTPSAccess&quot; title=&quot;https://trac.usvn.info/wiki/Documentation/HTTPSAccess&quot;&gt;https://trac.usvn.info/wiki/Documentation/HTTPSAccess&lt;/a&gt;&lt;/li&gt;
</description>
 <comments>http://www.2030.tk/wiki/Apache_Force_SSL_on_vhost#comments</comments>
 <category domain="http://www.2030.tk/tag/administration">administration</category>
 <category domain="http://www.2030.tk/tag/apache">apache</category>
 <category domain="http://www.2030.tk/howtos">Howto</category>
 <category domain="http://www.2030.tk/tag/security">security</category>
 <category domain="http://www.2030.tk/tag/ssl">ssl</category>
 <pubDate>Mon, 31 Dec 2007 11:44:11 +0100</pubDate>
 <dc:creator>rac</dc:creator>
 <guid isPermaLink="false">13 at http://www.2030.tk</guid>
</item>
</channel>
</rss>

