<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8200638605161253887</id><updated>2024-09-07T07:59:34.604+05:30</updated><category term="LINUX"/><category term="PROTECT YOUR COMPUTER"/><category term="CISCO"/><category term="ZIMBRA"/><category term="HACKER_NEWS"/><category term="BlackBerry"/><category term="DNS"/><category term="RHCSS"/><title type='text'>LINUX GURU</title><subtitle type='html'>Good Relations Are Like Needles of clock,&#xa;They only meet for Sometime but&#xa;Always stay connected</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jigneshdhameliya.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>55</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-4263808200606136996</id><published>2011-03-10T20:24:00.002+05:30</published><updated>2011-03-10T20:27:56.473+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Data Measurement Chart</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;#595959&quot; colspan=&quot;3&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Measurement Chart&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data                          Measurement&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Size&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Bit&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Single Binary Digit (1 or                          0)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Byte&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;8 bits&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Kilobyte                          (KB)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,024 Bytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Megabyte                          (MB)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,024 Kilobytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Gigabyte                          (GB)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,024 Megabytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Terabyte                          (TB)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,024 Gigabytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Petabyte                          (PB)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,024 Terabytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Exabyte                          (EB)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,024                      Petabytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp; &amp;nbsp;                    &lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#595959&quot; colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Connection Speed Chart&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Internet                          Technology&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;28.8K                          Modem&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;28.8 Kbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;28,800 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3,600 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3.5 Kilobytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;36.6K                          Modem&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;36.6 Kbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;36,600 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;4,575 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;4.4 Kilobytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;56K                          Modem&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;56 Kbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;56,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;7,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;6.8 Kilobytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;ISDN&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;128 Kbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;128,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;16,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;15 Kilobytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;T1&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1.544 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,544,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;193,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;188 Kilobytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;DSL&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;512 Kbps to 8 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;8,000,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,000,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;976 Kilobytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Cable                          Modem&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;512 Kbps to 52 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;53,000,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;6,625,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;6,469 Kilobytes                          (6.3MB/sec)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;T3&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;44.736 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;44,736,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5,592,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5,460 Kilobytes                          (5.3MB/sec)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Gigabit                          Ethernet&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1 Gbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,000,000,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;125,000,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;122,070 Kilobytes                          (119MB/sec)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;OC-256&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;13.271 Gbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;13,271,000,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,658,875,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,619,995 Kilobytes                          (1.5GB/sec)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;                    &lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#595959&quot; colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Computer Technology Chart&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Computer                          Technology&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;ADB&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;256 Kbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;256,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;32,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;31.2 Kilobytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;USB&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;12 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;12,000,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,500,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,464 Kilobytes                          (1.42MB/sec)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;USB                          2.0&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;480 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;480,000,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;60,000,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;58,593 Kilobytes                          (&lt;/span&gt;57.2MB/sec&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;FireWire                          (a.k.a. &quot;IEEE 1394&quot; or &quot;i.Link&quot;)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;400 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;400,000,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;50,000,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;48,828 Kilobytes                          (47.6MB/sec)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Ultra ATA/33                          (a.k.a. Ultra DMA/33)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;33 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Ultra ATA/66                          (a.k.a. Ultra DMD/66 or Fast ATA-2)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;66 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;SCSI-1&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;SCSI-2&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5-10 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Fast                          SCSI-2&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;10-20 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Wide                          SCSI-2&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;20 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Fast Wide                          SCSI-2&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;20 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Ultra SCSI-3                          (8-bit)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;20 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Ultra SCSI-3                          (16-bit)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;40 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Ultra-2                          SCSI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;40 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Wide Ultra-2                          SCSI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;80 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Ultra-3                          SCSI&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;160 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Serial ATA                          (Gen 1)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;150 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3; color: black;&quot;&gt;1.2 Gbps&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Serial ATA                          (Gen 2)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;300 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3; color: black;&quot;&gt;2.4 Gbps&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Serial ATA                          (Gen 3)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;600 MB/sec&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3; color: black;&quot;&gt;4.8 Gbps&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;                    &lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#595959&quot; colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Video Format Chart&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Video Formats&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;NTSC Resolution                        (525 Vertical Lines)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;8mm&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;250 Horizontal Lines&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;VHS&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;250 Horizontal Lines&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;VHS-C&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;250 Horizontal Lines&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Hi8&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;400 Horizontal Lines&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;S-VHS&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;400 Horizontal Lines&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;DV&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;500 Horizontal Lines&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;DVD&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;500 Horizontal Lines&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;                    &lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#595959&quot; colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Audio/Video Chart&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Audio/Video                          Technology&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Rate                          (per second)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;CD&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1.4112 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,411,200 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;176,400 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;172 Kilobytes&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;DVD&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;10 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;10,000,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,250,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,220 Kilobytes                          (1.1MB/sec)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;DV&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;30.1 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;30,195,712 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3,774,464 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3,686 Kilobytes                          (3.6MB/sec)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;DLP&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;37 Mbps to 43 Mbps&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;43,000,000 Bits&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5,375,000 Bytes&lt;/span&gt;&lt;/td&gt;                       &lt;td style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5,249 Kilobytes                          (5.2MB/sec)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;                                                              &lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#7f7f7f&quot; colspan=&quot;8&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Data Comparison Chart&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#000000&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Kilobits                          (Kbps)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#000000&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Bits                          (bps)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#000000&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Megabits                          (Mbps)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#000000&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Bytes                          (Bps)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#000000&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Kilobytes                          (KBps)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#000000&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Megabytes                          (MBps)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#000000&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Minutes On                          650MB CD&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#000000&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;Minutes On                          4.7GB DVD&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;28&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;28,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.028&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3,500&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3.41&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.00334&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3,245&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;24,031&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;30,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.03&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3,750&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3.66&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.00358&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3,029&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;22,429&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;56&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;56,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.056&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;7,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;6.83&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.00668&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,622&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;12,015&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;80&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;80,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.08&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;10,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;9.76&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.00954&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,135&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;8,410&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;100&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;100,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.1&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;12,500&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;12.20&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.01192&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;908&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;6,728&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;150&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;150,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.15&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;18,750&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;18.31&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.01788&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;605&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;4,485&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;200&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;200,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.2&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;25,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;24.41&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.02384&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;454&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3,364&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;300&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;300,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.3&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;37,500&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;36.62&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.03576&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;302&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;2,242&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;500&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;500,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.5&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;62,500&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;61.03&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.05960&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;181&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,345&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;800&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;800,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.8&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;100,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;97.65&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.09537&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;113&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;841&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;900&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;900,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.9&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;112,500&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;109.86&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.10729&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;100&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;747&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,000,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;125,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;122.07&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.11921&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;90&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;672&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;2,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;2,000,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;250,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;244.14&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.23842&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;45&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;336&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;4,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;4,000,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;4&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;500,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;488.28&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.47684&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;22&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;168&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5,000,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;625,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;610.35&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;0.59605&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;18&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;134&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;10,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;10,000,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,250,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,220.70&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1.19209&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;9&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;67&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;15,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;15,000,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;15&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,875,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1,831.05&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1.78814&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;6&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;44&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;30,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;30,000,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3,750,000&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3,662.10&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3.57628&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;/td&gt;                       &lt;td bgcolor=&quot;#eeeeee&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;22&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4263808200606136996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4263808200606136996'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/03/data-measurement-chart.html' title='Data Measurement Chart'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-3553213823637695283</id><published>2011-02-07T09:09:00.002+05:30</published><updated>2011-02-07T09:09:48.506+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Tacacs  Server Configuration in Debian</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: xx-small;&quot;&gt;&lt;h2&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #cc0066;&quot;&gt;Introduction&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;     &lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-weight: 400;&quot;&gt;A TACACS server      provides a centralized location for Authentication,      Authorization and accounting for Cisco devices.&amp;nbsp; User      authentication on Cisco devices can be done in one of 2 ways;      via a local database of users on the device, or by a TACACS      server.&amp;nbsp; The TACACS model provides additional functionality such      as authorizing which commands can be run by the user as well as      logging of commands and incidents.&amp;nbsp; This document outlines the      installation and configuration of a TACACS+ server (tac-plus)      under Linux as well as a list of some of the Cisco IOS      configuration commands with basic descriptions. &lt;/span&gt;&lt;/span&gt;     &lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;     &lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #cc0066;&quot;&gt;&lt;b&gt;Server configuration&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;span style=&quot;color: #cc0066;&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;en-us&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;TACACS&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;      Installation&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     Under Debian the installation is particularly straight forward.&amp;nbsp;      The following command will install the tac-plus service:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;     &lt;span style=&quot;color: #cc0066; font-size: x-small;&quot;&gt;#apt-get install tac-plus&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;/usr/sbin/tac_plus      -C /etc/tac-plus/tacacs.conf -d 16&lt;br /&gt;
&lt;br /&gt;
The following command shows debugging information of the tac-plus      service&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     &lt;br /&gt;
tail -f /var/tmp/tac-plus.log&lt;br /&gt;
&lt;br /&gt;
to kill....&lt;br /&gt;
kill -USR1 `cat /etc/tac-plus.pid`&lt;br /&gt;
&lt;br /&gt;
To restart...&lt;br /&gt;
/etc/init.d/tac-plus restart&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cc0066;&quot;&gt;&lt;b&gt;&lt;u&gt;Files&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cc0066;&quot;&gt;/var/log/tac-plus/account.log (must make      this file writable)&lt;br /&gt;
/var/tmp/tac_plus.log (service logfile)&lt;br /&gt;
/etc/init.d/tac-plus (startup script)&lt;br /&gt;
/etc/tac-plus/tacacs.conf (users and global settings)&lt;br /&gt;
/usr/sbin/tac_plus (executable)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
create des encrypted password: htpasswd -n debianhelp&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #cc0066;&quot;&gt;&lt;b&gt;&lt;u&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     Server Config file&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     &lt;span style=&quot;color: #cc0066;&quot;&gt;/etc/tac-plus/tacacs.conf&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
#This user can do anything&lt;br /&gt;
&lt;br /&gt;
user = admins {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; default service = permit&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; login = des 70e4lCVGyWSKM&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
#this user can only run &#39;show ip&#39; and ‘show interface’ commands&lt;br /&gt;
&lt;br /&gt;
user = users {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; default service = deny&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; login = cleartext test&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd = show&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; permit ip&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; permit interface&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deny .*&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;
&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;     &lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #cc0066;&quot;&gt;Router configuration&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     Each AAA command specified in the router describes the      authentication and authorization and the order in which these      methods are attempted.&lt;br /&gt;
Config for Cisco router&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;aaa new-model&lt;/b&gt;&lt;br /&gt;
#Authentication order&lt;br /&gt;
&lt;b&gt;aaa authentication login default tacacs+ enable&lt;br /&gt;
aaa authentication enable default tacacs+ enable&lt;/b&gt;&lt;br /&gt;
#For ISDN connections (until tested with TACAcs+ will get to      stage where use TACACS then local if unavailable)....&lt;br /&gt;
&lt;b&gt;aaa authentication ppp RAS local&lt;br /&gt;
aaa authorization exec tacacs+ if-authenticated&lt;/b&gt;&lt;br /&gt;
#Must have the following 2 lines to explicitly authorize      commands&lt;br /&gt;
#User level commands will be allowed even if tacacs server      unavailable assuming user has been authenticated&lt;br /&gt;
&lt;b&gt;aaa authorization commands 1 tacacs+ if-authenticated&lt;/b&gt;&lt;br /&gt;
{#If TACACS server is unavailable Enable level commands can only      be run from a console (e.g. configire terminal, copy cmd etc) }&lt;br /&gt;
&lt;b&gt;aaa authorization commands 15 tacacs+ if-authenticated&lt;br /&gt;
aaa authorization network tacacs+&lt;/b&gt;&lt;br /&gt;
#Enable passwd if tacacs server unavailable&lt;br /&gt;
&lt;b&gt;aaa accounting exec start-stop tacacs+&lt;br /&gt;
aaa accounting commands 1 start-stop tacacs+&lt;br /&gt;
aaa accounting commands 15 start-stop tacacs+&lt;br /&gt;
aaa accounting network start-stop tacacs+&lt;br /&gt;
aaa accounting system start-stop tacacs+&lt;br /&gt;
enable password tester&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If the tacacs server is unavailable you will be prompted with      the standard Cisco login however instead of using a VTY password      and an enable password you would use the &#39;enable&#39; password for      both login and to enable to router.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     For example:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;&lt;b&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     User Access Verification&lt;br /&gt;
Password:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;
As apposed to :&lt;br /&gt;
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;User Access Verification&lt;br /&gt;
Username:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     &amp;nbsp;NOTE: Username and password are case-sensitive&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     &amp;nbsp;The following cmd allows any commands if TACACS unavailable&lt;br /&gt;
&lt;b&gt;aaa authorization exec tacacs+ none&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;     &lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;     Building configuration...&lt;br /&gt;
&lt;br /&gt;
Current configuration:&lt;br /&gt;
!&lt;br /&gt;
version 11.1&lt;br /&gt;
service config&lt;br /&gt;
no service udp-small-servers&lt;br /&gt;
no service tcp-small-servers&lt;br /&gt;
!&lt;br /&gt;
hostname tacacstest&lt;br /&gt;
!&lt;br /&gt;
aaa new-model&lt;br /&gt;
aaa authentication login default tacacs+ enable&lt;br /&gt;
aaa authentication enable default tacacs+ enable&lt;br /&gt;
aaa authentication ppp RAS local&lt;br /&gt;
aaa authorization exec tacacs+ if-authenticated&lt;br /&gt;
aaa authorization commands 1 tacacs+ if-authenticated&lt;br /&gt;
aaa authorization commands 15 tacacs+ if-authenticated&lt;br /&gt;
aaa authorization network tacacs+&lt;br /&gt;
aaa accounting exec start-stop tacacs+&lt;br /&gt;
aaa accounting commands 1 start-stop tacacs+&lt;br /&gt;
aaa accounting commands 15 start-stop tacacs+&lt;br /&gt;
aaa accounting network start-stop tacacs+&lt;br /&gt;
aaa accounting system start-stop tacacs+&lt;br /&gt;
enable secret 5 $1$y1cB$sSAl.2azaTPo9GoPO3fp0.&lt;br /&gt;
&lt;br /&gt;
!&lt;br /&gt;
!&lt;br /&gt;
interface Ethernet0&lt;br /&gt;
ip address 192.168.100.58 255.255.255.0&lt;br /&gt;
no cdp enable&lt;br /&gt;
!&lt;br /&gt;
interface Serial0&lt;br /&gt;
no ip address&lt;br /&gt;
shutdown&lt;br /&gt;
no fair-queue&lt;br /&gt;
!&lt;br /&gt;
interface Serial1&lt;br /&gt;
no ip address&lt;br /&gt;
shutdown&lt;br /&gt;
no cdp enable&lt;br /&gt;
!&lt;br /&gt;
interface BRI0&lt;br /&gt;
no ip address&lt;br /&gt;
shutdown&lt;br /&gt;
!&lt;br /&gt;
no ip classless&lt;br /&gt;
ip route 0.0.0.0 0.0.0.0 192.168.100.5&lt;br /&gt;
logging buffered&lt;br /&gt;
tacacs-server host 172.18.1.2&lt;br /&gt;
tacacs-server host 192.168.100.59&lt;br /&gt;
!&lt;br /&gt;
line con 0&lt;br /&gt;
exec-timeout 0 0&lt;br /&gt;
password whatever&lt;br /&gt;
login authentication conmethod&lt;br /&gt;
line aux 0&lt;br /&gt;
line vty 0 4&lt;br /&gt;
exec-timeout 0 0&lt;br /&gt;
!&lt;br /&gt;
end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/3553213823637695283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/3553213823637695283'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/02/tacacs-server-configuration-in-debian.html' title='Tacacs  Server Configuration in Debian'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-4715362454822856241</id><published>2011-02-06T10:30:00.001+05:30</published><updated>2011-02-06T10:32:05.437+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Tacacs+ Install Guide</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;pre&gt;Tacacs+ Install Guide
This document try to basicly explain how to install and use tacacs+
It&#39;s not prepared very well. I am sorry for this reason.

First off all there are 4 kind of installation methods for tacacs+.These are:
1)First time rpm install
2)Binary packet(rpm) upgrade 
3)src.rpm compile and install 
4)Tarball install

So lets describe it.

1)First time install

When you want to use tacacs+ at your RPM based system. You must use this choice.
It is very easy process.Just do following things:

Get lastest tacacs+ binary rpm file from http://www.gazi.edu.tr/tacacs.
Login as a root or switch user to root.
Type;
 rpm -ivh tac_plus.xxx.i386.rpm

By this command tacacs+ must install your system.

Try to query if tacacs+ correctly install
 rpm -q tac_plus

If this command give a output like :
 tac_plus-F4.0.3.alpha-7

Viola . You succesfully installed tacacs+ :).

Otherwise if not there are some problem either system or tacacs+ packet.
 
2) Binary packet(rpm) upgrade

When you use this choice, tacacs+ rpm must installed your system before.
I haven&#39;t add any check to avoid to erase for old config files.&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;So please backupnecessary files before this operation.&lt;/pre&gt;&lt;pre&gt;(RPM backup old files but sometimes not)

So only just type:
 rpm -Fvh tac_plus.xxx.i386.rpm

Before upgrade tacacs+ please backup of your config files for all probable error.

3)src.rpm compile and install 

This type of installation are very complicated but i try to figure in basic way
If you want to use tacacs+ other features like db authentication etc. you must 
recompile tacacs+ rpm packet.

So first of all you must get lastest src.rpm file from my site.

Install it by command:
 rpm -ivh tac_plus.xxxx.src.rpm

By this command rpm installed tac_plus files to required location. On Redhat 
systems it&#39;s put files to /usr/src/redhat directory.

So find SPEC directory then edit tacacs.spec file

Change configure options for your requirements.

Next try to compile by typing:
 rpm -bb tacacs.spec

If the compiling is success it&#39;s write binary rpm to RPMS/i386 directory

Then go back and read stage 1 or 2.

Thats all..
 
4)Tarball install

These section is for other than RPM based systems.

For this type of installation you must get lastest tarball distro from my site 

Then unpack it by command:
 tar zxvf tac_plus_xxx.tgz

Then change directory to unpacked dir
For configure tac_plus type:
 ./configure 
If you like to add more feature like db AA or pam 
 ./configure --help   shows configure options

For compile ;
 make tac_plus

then for installing
 make install or manullay install files
&lt;/pre&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4715362454822856241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4715362454822856241'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/02/tacacs-install-guide.html' title='Tacacs+ Install Guide'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-129077770639874804</id><published>2011-01-18T12:32:00.002+05:30</published><updated>2011-01-18T12:32:46.227+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Monitoring hard disk health with smartd under Linux</title><content type='html'>smartd is SMART Disk Monitoring Daemon for Linux. SMART is acronym  for Self-Monitoring, Analysis and Reporting Technology (SMART) system  built into many ATA-3 and later ATA, IDE and SCSI-3 hard drives. The  purpose of SMART is to monitor the reliability of the hard drive and  predict drive failures, and to carry out different types of drive  self-tests.&lt;br /&gt;
smartd works with following operating systems:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Linux&lt;/li&gt;
&lt;li&gt;*BSD&lt;/li&gt;
&lt;li&gt;Windows&lt;/li&gt;
&lt;li&gt;Solaris etc&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;How do I Install smartd?&lt;/h3&gt;However, smartd is not installed by default. Following are distribution specific steps to install smartd:&lt;br /&gt;
Debian Linux:&lt;br /&gt;
&lt;code&gt;# apt-get install smartmontools&lt;/code&gt;&lt;br /&gt;
Red hat/Fedora Linux:&lt;br /&gt;
&lt;code&gt;# rpm –ivh kernel-utils&lt;/code&gt;&lt;br /&gt;
OR&lt;br /&gt;
&lt;code&gt;# up2date kernel-utils&lt;/code&gt;&lt;br /&gt;
OR if you are using Fedora Linux&lt;br /&gt;
&lt;code&gt;# yum kernel-utils&lt;/code&gt;&lt;br /&gt;
FreeBSD:&lt;br /&gt;
&lt;code&gt;# pkg_add -r  -v  smartmontools&lt;/code&gt;&lt;br /&gt;
Before configuring hard disk for SMART monitoring make sure your hard disk is SMART capable:&lt;br /&gt;
&lt;code&gt;# smartctl -i /dev/hda&lt;/code&gt;&lt;br /&gt;
Output: &lt;br /&gt;
&lt;pre&gt;smartctl version 5.34 [i686-pc-linux-gnu] Copyright (C) 2002-5 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG SV2002H
Serial Number:    0395J1FR904324
Firmware Version: RA100-04
User Capacity:    20,060,651,520 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   6
ATA Standard is:  ATA/ATAPI-6 T13 1410D revision 1
Local Time is:    Tue May  2 15:44:09 2006 IST

SMART support is: Available - device has SMART capability.
SMART support is: Enabled

You can configure the smartd daemon by editing the file /etc/smartd.conf. &lt;/pre&gt;In above output the lines:&lt;br /&gt;
SMART support is: Available - device has SMART capability.&lt;br /&gt;
SMART support is: Enabled&lt;br /&gt;
Indicates that it is SMART capable and it is enabled.&lt;br /&gt;
&lt;h3&gt;Configure SMARTD&lt;/h3&gt;Debian Linux&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Enable smart by editing /etc/default/smartmontools file. &lt;/li&gt;
&lt;li&gt;Smart Configuration file: /etc/smartd.conf&lt;/li&gt;
&lt;li&gt;Start/Stop smart: /etc/init.d/smartmontools start | stop&lt;/li&gt;
&lt;/ul&gt;Red Hat Linux&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Enable smart by editing /etc/smartd.conf file. &lt;/li&gt;
&lt;li&gt;Smart Configuration file: /etc/smartd.conf&lt;/li&gt;
&lt;li&gt;Start/Stop smart: /etc/init.d/smartd start | stop&lt;/li&gt;
&lt;/ul&gt;FreeBSD&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Enable smart by editing /etc/rc.conf file (add line smartd_enable=”YES&quot;). &lt;/li&gt;
&lt;li&gt;Smart Configuration file: /etc/smartd.conf&lt;/li&gt;
&lt;li&gt;Start/Stop smart: /usr/local/etc/rc.d/smartd.sh start | stop&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;Example&lt;/h3&gt;You can put following directives in Smart Configuration file:&lt;br /&gt;
(a) Send an email to alert@nixcraft.in for /dev/sdb:&lt;br /&gt;
&lt;code&gt;/dev/sdb -m alert@nixcraft.in&lt;/code&gt;&lt;br /&gt;
(b) Read error log:&lt;br /&gt;
&lt;code&gt;# smartctl -l error /dev/hdb&lt;/code&gt;&lt;br /&gt;
(c) Testing hard disk (short or long test):&lt;br /&gt;
&lt;code&gt;# smartctl -t short /dev/hdb&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;# smartctl -t long /dev/hdb&lt;/code&gt;&lt;br /&gt;
Caution smartd is a monitoring tool not a backup solution. Always perform data backup.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/129077770639874804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/129077770639874804'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/monitoring-hard-disk-health-with-smartd.html' title='Monitoring hard disk health with smartd under Linux'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-6253826455430690348</id><published>2011-01-12T10:38:00.002+05:30</published><updated>2011-01-12T10:38:57.838+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Using TCP Wrappers to secure Linux</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 180%;&quot;&gt;T&lt;/span&gt;CP Wrappers can be used to &lt;span style=&quot;font-family: courier new;&quot;&gt;GRANT&lt;/span&gt; or &lt;span style=&quot;font-family: courier new;&quot;&gt;DENY&lt;/span&gt;  access to various services on your machine to the outside network or  other machines on the same network. It does this by using simple Access  List Rules which are included in the two files &lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;/etc/hosts.allow&lt;/span&gt; and &lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;/etc/hosts.deny&lt;/span&gt; .&lt;/div&gt;&lt;br /&gt;
Let us consider this scenario: A remote machine &lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;remote_mc&lt;/span&gt; trying to connect to your local machine &lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;local_mc&lt;/span&gt; using &lt;span style=&quot;font-family: courier new;&quot;&gt;ssh&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
When the request from the &lt;span style=&quot;font-family: courier new;&quot;&gt;remote_mc&lt;/span&gt;  is received by the tcp wrapped service (&lt;span style=&quot;font-family: courier new;&quot;&gt;SSH&lt;/span&gt; in this case), it takes the following basic steps:&lt;br /&gt;
&lt;ol&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;It checks the &lt;span style=&quot;font-family: courier new;&quot;&gt;/etc/hosts.allow&lt;/span&gt;  file and applies the first rule specified for that service. If it finds  a matching rule , it allows the connection. If no rule is found, it  moves on to step 2.&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;It checks the &lt;span style=&quot;font-family: courier new;&quot;&gt;/etc/hosts.deny&lt;/span&gt; file and if a matching rule is found, it deny&#39;s the connection.&lt;/li&gt;
&lt;/ol&gt;&lt;span style=&quot;color: #000099; font-size: 130%;&quot;&gt;Points to remember&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt; &lt;ul&gt;&lt;li&gt;Rules in &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.allow&lt;/span&gt; takes precedence over rules in &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.deny&lt;/span&gt; . Which means if a matching rule is found in &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.allow&lt;/span&gt; file, the &lt;span style=&quot;font-family: courier new;&quot;&gt;remote_mc&lt;/span&gt; is allowed access to the service even if there is a matching deny rule in &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.deny&lt;/span&gt; file.&lt;/li&gt;
&lt;li&gt;You can have only one rule per service in hosts.allow and hosts.deny file.&lt;/li&gt;
&lt;li&gt;If  there are no matching rules in either of the files or if the files  don&#39;t exist, then the remote_mc is allowed access to the service.&lt;/li&gt;
&lt;li&gt;Any changes to &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.allow&lt;/span&gt; and &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.deny&lt;/span&gt; file takes immediate effect.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;span style=&quot;color: #000099; font-size: 130%;&quot;&gt;Rule Syntax&lt;/span&gt;&lt;br /&gt;
The syntax for both &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.allow&lt;/span&gt; and &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.deny&lt;/span&gt; file takes the following form:&lt;br /&gt;
&lt;pre style=&quot;font-weight: bold;&quot;&gt;&lt;code&gt;daemon : client [:option1:option2:...]&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Where &lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;daemon&lt;/span&gt; can be a combination of ssh daemon, ftp daemon, portmap daemon and so on. Basically any service which has support for &lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;libwrap.a&lt;/span&gt; library compiled into it is a good candidate for utilizing the services of TCP Wrappers.&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;client&lt;/span&gt;  is a comma separated list of hostnames, host IP addresses, special  patterns or special wildcards which identify the hosts effected by that  rule.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;options&lt;/span&gt;  is an optional action like say sending mail to the administrator when  this rule is matched, log to a particular file and so on. It can be a  colon separated list of actions too.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #000099; font-size: 130%;&quot;&gt;Examples of using TCP Wrappers&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;I want to allow &lt;span style=&quot;font-family: courier new;&quot;&gt;SSH&lt;/span&gt; access to hosts in a particular domain say &lt;span style=&quot;font-family: courier new;&quot;&gt;xyz.com&lt;/span&gt; and deny access to all the others. I enter the following rule in the hosts.allow file.&lt;/div&gt;&lt;pre style=&quot;font-weight: bold;&quot;&gt;&lt;code&gt;sshd : &lt;span style=&quot;color: #990000; font-size: 180%;&quot;&gt;.&lt;/span&gt;xyz.com&lt;/code&gt;&lt;/pre&gt;... and in the &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.deny&lt;/span&gt; file I include the rule:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;&lt;code&gt;sshd : ALL&lt;/code&gt;&lt;/pre&gt;The next rule denys FTP access to all the hosts in the &lt;span style=&quot;font-family: courier new;&quot;&gt;abc.co.in&lt;/span&gt; domain as well as hosts in  the &lt;span style=&quot;font-family: courier new;&quot;&gt;192.168.1.0&lt;/span&gt; network.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
#FILE: /etc/hosts.deny
&lt;span style=&quot;font-weight: bold;&quot;&gt;vsftpd : 192.168.1. , .abc.co.in &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;: spawn /bin/echo  `/bin/date` access denied &amp;gt;&amp;gt; /var/log/vsftpd.log &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;: deny&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;The backslash (&lt;span style=&quot;color: #000099; font-family: courier new; font-weight: bold;&quot;&gt;\&lt;/span&gt;) in the above rule is used to break the line and prevents the failure of the rule due to length.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;spawn&lt;/span&gt; and &lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;deny&lt;/span&gt; are options. &lt;span style=&quot;font-family: courier new;&quot;&gt;Spawn&lt;/span&gt; launches a shell command as a child process. In the above rule, spawn logs a message to the &lt;span style=&quot;font-family: courier new;&quot;&gt;vsftpd&lt;/span&gt; log file each time the rule matches. &lt;span style=&quot;font-family: courier new;&quot;&gt;deny&lt;/span&gt; is optional if you are including this rule in the &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.deny&lt;/span&gt; file.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Note:&lt;/span&gt; The last line in the files &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.allow&lt;/span&gt; and &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.deny&lt;/span&gt; must be a new line character. Or else the rule will fail.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;For example, you can use &lt;span style=&quot;font-family: courier new;&quot;&gt;spawn&lt;/span&gt; option to send mail to the admin when ever a deny rule is matched.&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000099; font-size: 130%;&quot;&gt;Wildcards&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;You  can use wildcards in the client section of the rule to broadly classify  a set of hosts. These are the valid wildcards that can be used.&lt;/div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: #000099; font-family: courier new; font-weight: bold;&quot;&gt;ALL&lt;/span&gt; - Matches everything&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #000099; font-family: courier new; font-weight: bold;&quot;&gt;LOCAL&lt;/span&gt; - Matches any host that does not contain a dot (.) like localhost.&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #000099; font-family: courier new; font-weight: bold;&quot;&gt;KNOWN&lt;/span&gt; - Matches any host where the hostname and host addresses are known or where the user is known.&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #000099; font-family: courier new; font-weight: bold;&quot;&gt;UNKNOWN&lt;/span&gt; - Matches any host where the hostname or host address are unknown or where the user is unknown.&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #000099; font-family: courier new; font-weight: bold;&quot;&gt;PARANOID&lt;/span&gt; - Matches any host where the hostname does not match the host address.&lt;/li&gt;
&lt;/ul&gt;&lt;span style=&quot;color: #000099; font-size: 130%;&quot;&gt;Patterns&lt;/span&gt;&lt;br /&gt;
You can also use patterns in the client section of the rule . Some examples are as follows:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;ALL : .xyz.com&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;Matches all hosts in the xyz.&lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD2&quot;&gt;com domain&lt;/span&gt; . Note the dot (.) at the beginning.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;ALL : 123.12.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;Matches all the hosts in the 123.12.0.0 network. Note the dot (.) in the end of the rule.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;ALL : 192.168.0.1/255.255.255.0&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;IP address/Netmask can be used in the rule.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;ALL : *.xyz.com&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;Asterisk * matches entire groups of hostnames or IP addresses.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;sshd : /etc/sshd.deny&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;If the client list begins with a slash (&lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;/&lt;/span&gt;), it is treated as a filename. In the above rule, TCP wrappers looks up the file sshd.deny for all SSH connections.&lt;/div&gt;&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;sshd : ALL EXCEPT 192.168.0.15&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;If the above rule is included in the &lt;span style=&quot;font-family: courier new;&quot;&gt;/etc/hosts.deny&lt;/span&gt;  file, then it will allow ssh connection for only the machine with the  IP address 192.168.0.15 and block all other connections. Here &lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;EXCEPT&lt;/span&gt; is an operator.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Note:&lt;/span&gt;  If you want to restrict use of NFS and NIS then you may include a rule  for portmap . Because NFS and NIS depend on portmap for their successful  working. In addition, changes to portmap rules may not take effect  immediately.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;Suppose I want to log all connections made to SSH with a priority of emergency. &lt;a href=&quot;http://linuxhelp.blogspot.com/2005/09/system-logging-explained-in-linux.html&quot; target=&quot;_blank&quot;&gt;See my previous post to know more on logging&lt;/a&gt;. I could do the following:&lt;/div&gt;&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;sshd : .xyz.com : severity emerg&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Note:&lt;/span&gt; You can use the options &lt;span style=&quot;font-family: courier new;&quot;&gt;allow&lt;/span&gt; or &lt;span style=&quot;font-family: courier new;&quot;&gt;deny&lt;/span&gt; to allow or restrict on a per client basis in either of the files &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.allow&lt;/span&gt; and &lt;span style=&quot;font-family: courier new;&quot;&gt;hosts.deny&lt;/span&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;in.telnetd : 192.168.5.5 : &lt;span style=&quot;color: #990000;&quot;&gt;deny&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;in.telnetd : 192.168.5.6 : &lt;span style=&quot;color: #990000;&quot;&gt;allow&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000099; font-size: 130%;&quot;&gt;Shell &lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD4&quot;&gt;Commands&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;As mentioned above, you can couple the rules to certain shell commands by using the following two options.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;spawn&lt;/span&gt; - This option launches a shell command as a child process. For example, look at the following rule:&lt;/div&gt;&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;sshd : 192.168.5.5 &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;: &lt;span style=&quot;color: #990000;&quot;&gt;spawn&lt;/span&gt; /bin/echo `/bin/date` from %h &amp;gt;&amp;gt; /var/log/ssh.log &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;: deny&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;Each time the rule is satisfied, the current date and the clients hostname &lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;%h&lt;/span&gt; is appended to the &lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;ssh.log&lt;/span&gt; file.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;twist&lt;/span&gt;  - This is an option which replaces the request with the specified  command. For example, if you want to send to the client trying to  connect using ssh to your machine, that they are prohibited from  accessing SSH, you can use this option.&lt;/div&gt;&lt;pre&gt;&lt;code&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;sshd : client1.xyz.com &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;: &lt;span style=&quot;color: #990000;&quot;&gt;twist&lt;/span&gt; /bin/echo &quot;You are prohibited from accessing this service!!&quot; &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;: deny&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
When using &lt;span style=&quot;font-family: courier new;&quot;&gt;spawn&lt;/span&gt; and &lt;span style=&quot;font-family: courier new;&quot;&gt;twist&lt;/span&gt;, you can &lt;span style=&quot;font-weight: bold;&quot;&gt;use a set of expressions&lt;/span&gt;. They are as follows :&lt;br /&gt;
&lt;span style=&quot;color: #000099; font-size: 130%;&quot;&gt;&lt;span style=&quot;font-family: courier new; font-weight: bold;&quot;&gt;   %a &lt;/span&gt;&lt;/span&gt;— The client&#39;s IP address.&lt;br /&gt;
&lt;span style=&quot;color: #000099; font-size: 130%; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;   %A&lt;/span&gt;&lt;/span&gt; — The server&#39;s IP address.&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #000099; font-size: 130%; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;   %c&lt;/span&gt;&lt;/span&gt; — Supplies a variety of client information, such as the username and hostname, or the username and IP address.&lt;/div&gt;&lt;span style=&quot;color: #000099; font-size: 130%; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;   %d&lt;/span&gt;&lt;/span&gt; — The daemon process name.&lt;br /&gt;
&lt;span style=&quot;color: #000099; font-size: 130%; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;   %h&lt;/span&gt;&lt;/span&gt; — The client&#39;s hostname (or IP address, if the hostname is unavailable).&lt;br /&gt;
&lt;span style=&quot;color: #000099; font-size: 130%; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;   %H&lt;/span&gt;&lt;/span&gt; — The server&#39;s hostname (or IP address, if the hostname is unavailable).&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #000099; font-size: 130%; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;%n &lt;/span&gt;&lt;/span&gt;— The client&#39;s hostname. If unavailable, unknown is printed. If the client&#39;s hostname and host address do not match, &lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD3&quot;&gt;paranoid&lt;/span&gt; is printed.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #000099; font-size: 130%; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;%N&lt;/span&gt;&lt;/span&gt; — The server&#39;s hostname. If unavailable, unknown is printed. If the server&#39;s hostname and host address do not match, paranoid is printed.&lt;/div&gt;&lt;span style=&quot;color: #000099; font-size: 130%; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;%p&lt;/span&gt;&lt;/span&gt; — The daemon process ID.&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #000099; font-size: 130%; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;%s&lt;/span&gt;&lt;/span&gt; — Various types of server information, such as the daemon process and the host or IP address of the server.&lt;/div&gt;&lt;span style=&quot;color: #000099; font-size: 130%; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;%u&lt;/span&gt;&lt;/span&gt; — The client&#39;s username. If unavailable, unknown is printed.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/6253826455430690348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/6253826455430690348'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/using-tcp-wrappers-to-secure-linux.html' title='Using TCP Wrappers to secure Linux'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-3072615021051346722</id><published>2011-01-12T09:43:00.000+05:30</published><updated>2011-01-12T09:43:11.345+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Automatically rotating your Log Files</title><content type='html'>&lt;blockquote&gt;             &lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               &lt;span lang=&quot;en-us&quot;&gt;Uncontrolled growing of log files may fill up important               filesystems like /var. One, not documented features under Linux is &lt;b&gt;logrotate,&lt;/b&gt;               which belongs to the standard RedHat Linux distribution.&lt;/span&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               &lt;span lang=&quot;en-us&quot;&gt;&lt;b&gt;Logrotate&lt;/b&gt; is designed to ease administration of systems               that generate large numbers of log files. It allows automatic rotation, compression,               removal, and mailing of log files. Each log file may be handled daily, weekly,               monthly, or when it grows too large. Normally, logrotate is run as a daily cron job.               It will not modify a log multiple times in one day unless the criterium for that log               is based on the log’s size and logrotate is being run multiple times each day,               or unless the -f or -force option is used.&lt;/span&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               &lt;span lang=&quot;en-us&quot;&gt;Any number of config files may be given on the command line. Later               config files may override the options given in earlier files, so the order in which               the logrotate config files are listed in is important. Normally, a single config file               which includes any other config files which are needed should be used.&lt;/span&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;div align=&quot;left&quot; class=&quot;header&quot;&gt;             &lt;span lang=&quot;en-us&quot;&gt;Configuration File&amp;nbsp;&lt;/span&gt;           &lt;/div&gt;&lt;blockquote&gt;             &lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               &lt;span lang=&quot;en-us&quot;&gt;The configuration file for logrotate can be found in               &lt;i&gt;/etc/logrotate.conf&lt;/i&gt;&lt;/span&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               &lt;span lang=&quot;en-us&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;# rotate log files daily&lt;/span&gt;&lt;br /&gt;
daily&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# keep 1 day of backlogs&lt;/span&gt;&lt;br /&gt;
rotate 1&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# send errors to&lt;/span&gt;&lt;br /&gt;
errors martin dot zahn at akadia dot ch&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# create new (empty) log files after rotating old               ones&lt;/span&gt;&lt;br /&gt;
create&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# uncomment this if you want your log files               compressed&lt;/span&gt;&lt;br /&gt;
compress&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# RPM packages drop log rotation information into this               directory&lt;/span&gt;&lt;br /&gt;
include /etc/logrotate.d&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# no packages own lastlog or wtmp -- we&#39;ll rotate them               here&lt;/span&gt;&lt;br /&gt;
/var/log/wtmp {&lt;br /&gt;
&amp;nbsp; monthly&lt;br /&gt;
&amp;nbsp; create 0664 root utmp&lt;br /&gt;
&amp;nbsp; rotate 1&lt;br /&gt;
}&lt;/span&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               &lt;span lang=&quot;en-us&quot;&gt;Included Files from &lt;i&gt;/etc/logrotate.d&lt;/i&gt; (e.g. apache)&lt;/span&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               &lt;span lang=&quot;en-us&quot;&gt;/var/log/httpd/akadia.log {&lt;br /&gt;
&amp;nbsp; missingok&lt;br /&gt;
&amp;nbsp; postrotate&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /bin/kill -HUP `cat /var/run/httpd.pid 2&amp;gt;/dev/null`&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;gt; /dev/null || true&lt;br /&gt;
&amp;nbsp; endscript&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/var/log/httpd/error.log {&lt;br /&gt;
&amp;nbsp; missingok&lt;br /&gt;
&amp;nbsp; postrotate&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /bin/kill -HUP `cat /var/run/httpd.pid 2&amp;gt;/dev/null`&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;gt; /dev/null || true&lt;br /&gt;
&amp;nbsp; endscript&lt;br /&gt;
}&lt;/span&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               &lt;span lang=&quot;en-us&quot;&gt;For more information type the following commands:&lt;/span&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               &lt;span lang=&quot;en-us&quot;&gt;# &lt;b&gt;man logrotate&lt;/b&gt;&lt;br /&gt;
# &lt;b&gt;man logrotate | col -b &amp;gt; logrotate.txt&lt;/b&gt;&lt;br /&gt;
# &lt;b&gt;man -t logrotate &amp;gt; logrotate.ps&lt;/b&gt;&lt;/span&gt;             &lt;/div&gt;&lt;/blockquote&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/3072615021051346722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/3072615021051346722'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/automatically-rotating-your-log-files.html' title='Automatically rotating your Log Files'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-2255040072281174838</id><published>2011-01-12T09:38:00.000+05:30</published><updated>2011-01-12T09:38:12.313+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Postfix -- the Sendmail Replacement</title><content type='html'>&lt;h1 align=&quot;left&quot;&gt;             Architecture           &lt;/h1&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               Some mail systems such as Sendmail are implemented as one large monolithic program               that does everything. One large program certainly makes it easy to share data between               different parts of the system. Unfortunately, one large program also makes it easy to               make fatal mistakes.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               Postfix is based on semi-resident, mutually-cooperating, processes that perform               specific tasks for each other, &lt;b&gt;without any particular parent-child               relationship.&lt;/b&gt; Postfix is implemented as a &lt;b&gt;resident master server&lt;/b&gt; that runs               Postfix daemon processes on demand: daemon processes to send or receive network mail               messages, daemon processes to deliver mail locally. Postfix is intended to be a               &lt;b&gt;sendmail replacement&lt;/b&gt;. For this reason it tries to be compatible with existing               infrastructure.             &lt;/div&gt;&lt;/blockquote&gt;&lt;div align=&quot;center&quot; class=&quot;normal&quot;&gt;             &lt;img border=&quot;0&quot; height=&quot;758&quot; src=&quot;http://www.akadia.com/img/postfix_architecture.gif&quot; width=&quot;566&quot; /&gt;           &lt;/div&gt;&lt;div class=&quot;big&quot;&gt;             Mail queues           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               Postfix has four different queues: &lt;b&gt;maildrop&lt;/b&gt;, &lt;b&gt;incoming&lt;/b&gt;, &lt;b&gt;active&lt;/b&gt;               and &lt;b&gt;deferred&lt;/b&gt;. Locally-posted mail is deposited into the &lt;b&gt;maildrop&lt;/b&gt;, and               is copied to the &lt;b&gt;incoming&lt;/b&gt; queue after some cleaning up. The &lt;b&gt;incoming&lt;/b&gt;               queue is for mail that is still arriving or that the queue manager hasn&#39;t looked at               yet. The &lt;b&gt;active&lt;/b&gt; queue is a limited-size queue for mail that the queue manager               has opened for delivery. Mail that can&#39;t be delivered goes to the &lt;b&gt;deferred&lt;/b&gt;               queue, so that it does not get in the way of other deliveries.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               The queue manager &lt;b&gt;qmgr&lt;/b&gt; keeps information in memory about the &lt;b&gt;active&lt;/b&gt;               queue only. The active queue size is limited on purpose: &lt;i&gt;the queue manager should               never run out of working memory because of a peak message workload&lt;/i&gt;. Whenever               there is space in the &lt;b&gt;active&lt;/b&gt; queue, the queue manager lets in one message from               the &lt;b&gt;incoming&lt;/b&gt; queue and one from the &lt;b&gt;deferred&lt;/b&gt; queue. This guarantees               that new mail will get through even when there is a large backlog.             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Sendmail           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               The &lt;b&gt;sendmail&lt;/b&gt; program implements the Postfix to Sendmail compatibility               interface. For the sake of compatibility with existing applications, some Sendmail               command-line options are recognized but silently ignored.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               By default, sendmail reads a message from standard input until EOF or until it reads               a line with only a . character, and arranges for delivery. sendmail attempts to               create a queue file in the maildrop directory. The command &lt;b&gt;mailq&lt;/b&gt; List the mail               queue. Each entry shows the queue file ID, message size, arrival time, sender, and               the recipients that still need to be delivered. The command &lt;b&gt;newaliases&lt;/b&gt;               initialize the alias database.             &lt;/div&gt;&lt;ul&gt;&lt;li&gt;                 &lt;div class=&quot;header&quot;&gt;                   Sending local email with the sendmail interface.                 &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;               &lt;div class=&quot;normal&quot;&gt;                 Suppose, you have the following file to_akadia .....               &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;                 From: &lt;martin.zahn@plenaxx.ch&gt;&lt;br /&gt;
To: &lt;rene.steiner@akadia.ch&gt;&lt;br /&gt;
Subject: This is a Postfix Sendmail Test&lt;br /&gt;
&lt;br /&gt;
This message is sent with the sendmail front end from the postfix mail system&lt;br /&gt;
&lt;br /&gt;
-- Regards Martin               &lt;/rene.steiner@akadia.ch&gt;&lt;/martin.zahn@plenaxx.ch&gt;&lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;                 .... then you can send this local email in the known sendmail syntax as follows:               &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;                 # &lt;b&gt;cat to_akadia | /usr/sbin/sendmail -t -bm -v&lt;br /&gt;
&lt;/b&gt; sendmail: open maildrop/746D52C01F               &lt;/div&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;                 &lt;div class=&quot;header&quot;&gt;                   &lt;b&gt;Show the mail queue&lt;/b&gt;                 &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;               &lt;div class=&quot;courier&quot;&gt;                 # &lt;b&gt;mailq&lt;/b&gt;&amp;nbsp; or &lt;b&gt;sendmail -bp&lt;/b&gt;               &lt;/div&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;                 &lt;div class=&quot;header&quot;&gt;                   Initialize the alias database                 &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;               &lt;div class=&quot;courier&quot;&gt;                 # &lt;b&gt;newaliases&lt;/b&gt; or &lt;b&gt;sendmail -bi&lt;/b&gt;               &lt;/div&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             &lt;b&gt;Pickup&lt;/b&gt;           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               The &lt;b&gt;pickup&lt;/b&gt; daemon waits for hints that new mail has been dropped into the               world-writable &lt;b&gt;maildrop&lt;/b&gt; directory, and feeds it into the &lt;b&gt;cleanup&lt;/b&gt;               daemon. This program expects to be run from the &lt;b&gt;master&lt;/b&gt; process manager. The               &lt;b&gt;pickup&lt;/b&gt; daemon does not interact with the outside world. It daemon &lt;b&gt;runs with               superuser privileges&lt;/b&gt; so that it 1) can open a queue file with the rights of the               submitting user and 2) can access the Postfix private IPC channels. Pickup does some               sanity checks, in order to protect the rest of the Postfix system.             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Smtpd           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               The SMTP server accepts network connection requests and performs zero or more SMTP               transactions per connection. Each received message is piped through the               &lt;b&gt;cleanup&lt;/b&gt; daemon, and is placed into the &lt;b&gt;incoming&lt;/b&gt; queue as one single               queue file. For this mode of operation, the program expects to be run from the               &lt;b&gt;master&lt;/b&gt; process manager. Alternatively, the SMTP server takes an established               connection on standard input and deposits messages directly into the &lt;b&gt;maildrop&lt;/b&gt;               queue. In this so-called stand-alone mode, the SMTP server can accept mail even while               the mail system is not running.             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Cleanup           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               The cleanup daemon implements the final processing stage for new mail. It adds               missing &lt;b&gt;From:&lt;/b&gt; and other message headers, arranges for address rewriting to the               standard &lt;i&gt;user@fully.qualified.domain&lt;/i&gt; form, and optionally extracts recipient               addresses from message headers. The cleanup daemon inserts the result as a single               queue file into the &lt;b&gt;incoming&lt;/b&gt; queue, and notifies the queue manager of the               arrival of new mail. The cleanup daemon can be configured to transform addresses on               the basis of &lt;b&gt;canonical&lt;/b&gt; and &lt;b&gt;virtual&lt;/b&gt; table lookups.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               On request by the &lt;b&gt;cleanup&lt;/b&gt; daemon, the &lt;b&gt;trivial-rewrite&lt;/b&gt; daemon rewrites               addresses to the standard &lt;i&gt;user@fully.qualified.domain&lt;/i&gt; form. The initial               Postfix version does not implement a rewriting language. Implementing one would take               a lot of effort, and most sites do not need it. Instead, Postfix makes extensive use               of &lt;b&gt;table lookups&lt;/b&gt;.             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Qmgr           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               The queue manager is the &lt;b&gt;heart of the Postfix mail system&lt;/b&gt;. It contacts the               &lt;b&gt;local&lt;/b&gt;, &lt;b&gt;smtp&lt;/b&gt;, or &lt;b&gt;pipe&lt;/b&gt; delivery agents, and sends a delivery               request with queue file pathname information, the message sender address, the host to               deliver to if the destination is remote, and one or more message recipient addresses.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               The queue manager maintains a separate &lt;b&gt;deferred&lt;/b&gt; queue for mail that cannot be               delivered, so that a large mail backlog will not slow down normal queue accesses.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               The queue manager maintains a small &lt;b&gt;active&lt;/b&gt; queue with just the few messages               that it has opened for delivery. The &lt;b&gt;active&lt;/b&gt; queue acts as a limited window on               the potentially much larger &lt;b&gt;incoming&lt;/b&gt; or &lt;b&gt;deferred&lt;/b&gt; queues. The small               &lt;b&gt;active&lt;/b&gt; queue prevents the queue manager from running out of memory under heavy               load.             &lt;/div&gt;Optionally, the queue manager bounces mail for recipients that are listed in the               &lt;b&gt;relocated&lt;/b&gt; table. This table contains contact information for users or even               entire domains that no longer exist.             &lt;br /&gt;
&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Resolve           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               On request by the queue manager, the &lt;b&gt;resolve&lt;/b&gt; daemon resolves destinations. By               default, it only distinguishes between &lt;i&gt;local&lt;/i&gt; and &lt;i&gt;remote&lt;/i&gt; destinations.               Additional routing information can be specified with the optional &lt;b&gt;transport&lt;/b&gt;               table.             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Bounce and Defer           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               On request by the queue manager, the bounce or defer daemon generates non-delivery               reports when mail cannot be delivered, either due to an unrecoverable error or               because the destination is unreachable for an extended period of time.             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Local           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               The local delivery agent understands UNIX-style mailboxes, sendmail-style system-wide               alias databases, and sendmail-style per-user .forward files. Multiple local delivery               agents can be run in parallel, but parallel delivery to the same user is usually               limited. Together with the &lt;a href=&quot;http://www.postfix.org/sendmail.1.html&quot;&gt;sendmail&lt;/a&gt; mail posting agent, the local               delivery agent implements the familiar Sendmail user interface.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               The local delivery agent has hooks for alternative forms of local delivery: you can               configure it to &lt;b&gt;deliver to mailbox file&lt;/b&gt;s in user home directories, and you can               even configure it to delegate mailbox &lt;b&gt;delivery to an external command&lt;/b&gt; such as               the popular &lt;a href=&quot;http://www.postfix.org/faq.html#procmail&quot;&gt;procmail&lt;/a&gt; program.             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Smtp           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               The SMTP client looks up a list of mail exchangers for the destination host, sorts               the list by preference, and tries each address in turn until it finds a server that               responds. On a busy Postfix system you will see several SMTP client processes running               in parallel.             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Pipe           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               The pipe mailer is the outbound interface to other mail transports (the &lt;a href=&quot;http://www.postfix.org/sendmail.1.html&quot;&gt;sendmail&lt;/a&gt; program is the inbound               interface) such as UUCP.             &lt;/div&gt;&lt;/blockquote&gt;&lt;h1 align=&quot;left&quot;&gt;             Basic Postfix Configuration           &lt;/h1&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               All of the many configuration parameters can be found in the main.cf file, located in               the ./conf directory in the postfix source. You need not change every parameter, as               they are set to sensible defaults. Here are the details on some of the more important               parameters, which will affect the performance of Postfix the most. Please note that               if you change the main.cf file after installation, you must issue the postfix reload               command.             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               # &lt;b&gt;postconf -d&amp;nbsp;&lt;/b&gt; (Show default values)&lt;br /&gt;
# &lt;b&gt;postconf -n&amp;nbsp;&lt;/b&gt; (Show non default values)             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             B&lt;b&gt;asic Parameters&lt;/b&gt;           &lt;/div&gt;&lt;ul&gt;&lt;li&gt;               &lt;div class=&quot;normal&quot;&gt;                 &lt;b&gt;queue_directory&lt;/b&gt; - the location of the Postfix queue as well as the root dir                 of the postfix daemons that run chrooted. This field should be left with the                 default /var/spool/postfix.               &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;             &lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;# Mail Queue&lt;br /&gt;
&lt;/span&gt; queue_directory = /usr/local/postfix/spool&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;               &lt;div class=&quot;normal&quot;&gt;                 &lt;b&gt;daemon_directory&lt;/b&gt; - the location of the daemon programs such as smptd,                 pickup, cleanup, etc.               &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;             &lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;# Daemon Directory&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;daemon_directory = /usr/local/postfix/bin&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;               &lt;div class=&quot;normal&quot;&gt;                 &lt;b&gt;mail_owner&lt;/b&gt; - the owner of Postfix&#39;s queue and most of the daemon processes.                 For this you must add a user to your machine, this has to be a user that owns no                 other files or processes (so using nobody here is a very bad idea for security                 reasons).               &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;             &lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;# Mail Owner&lt;br /&gt;
&lt;/span&gt; mail_owner = postfix&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;               &lt;div class=&quot;normal&quot;&gt;                 &lt;b&gt;myorigin&lt;/b&gt; - the origin is set to $myhostname by default, which defaults to                 the local hostname of the machine. This should not be used unless you are running a                 very small site. Most people want to change myorigin to $mydomain which will                 default to the parent domain of the machine name (i.e. if the hostname is                 rabbit.akadia.com and you are using $myhostname, the origin will be                 rabbit.akadia.com. On the other hand if you were using $mydomain, the origin will                 be akadia.com.)               &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;             &lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;# My own domain name&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;mydomain = akadia.com&lt;/b&gt;             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;# What domain to use in outbound mail&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;myorigin = $mydomain&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;               &lt;div class=&quot;normal&quot;&gt;                 &lt;b&gt;inet_interfaces&lt;/b&gt; - the inet_interfaces parameter defines which network                 interface addresses that the stmp daemon will listen on. By default this is set to                 all, which will listen on any active interface on the machine. This will control                 the delivery to users@&lt;ip&gt;.               &lt;/ip&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;             &lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;# Listen to&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;inet_interfaces = all&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;               &lt;div class=&quot;normal&quot;&gt;                 &lt;b&gt;mydestination&lt;/b&gt; - this parameter specifies the list of domains that the                 machine considers itself. The default of $myhostname and localhost.$mydomain should                 do here. Don&#39;t specify the virtual domains that are hosted on the machine here!               &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;             &lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;# What domains to receive mail for&lt;br /&gt;
&lt;/span&gt; mydestination = $myhostname, localhost.$mydomain&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;               &lt;div class=&quot;normal&quot;&gt;                 &lt;b&gt;mailbox_command&lt;/b&gt; - this parameter defines the external command to use instead                 of local mailbox delivery. It is a completely optional parameter. If you&#39;re                 interested in having procmail to do your mail, this is where you set it.               &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;               &lt;div class=&quot;normal&quot;&gt;                 &lt;b&gt;mynetworks&lt;/b&gt; - mynetworks specifies a certain list of network addresses that                 are local to this machine. The list is used to distinguish lusers from strangers.                 The addresses go in the format of X.X.X.0/X and can be separated by a comma. By                 default the list of all of the networks attached to the machine is a complete class                 A network (X.0.0.0/8), a complete class B network (X.X.0.0/16), a complete class C                 network (X.X.X.0/24), and so on. You can also specify a path of a pattern file                 instead of listing the patterns here.               &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;             &lt;div class=&quot;courier&quot;&gt;               &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;# Accept Mail only from&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt; &lt;b&gt;mynetworks = 192.168.32.32/32, 195.65.134.0/26, 127.0.0.0/8&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;               &lt;div class=&quot;normal&quot;&gt;                 &lt;b&gt;notify_classes -&lt;/b&gt; You should set up a postmaster alias that points to a human                 person. This alias is required to exist, so that people can report mail delivery                 problems. The Postfix system itself also reports problems to the postmaster alias.                 You may not be interested in all types of trouble reports, so this reporting                 mechanism is configurable. The default is to report only serious problems                 (resource, software) to postmaster:               &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;                 &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;# Notify Errors to&lt;/span&gt;&lt;br /&gt;
notify_classes = bounce,delay,policy,protocol,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;                 resource,software&lt;/b&gt;               &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h1 align=&quot;left&quot;&gt;             Address Manipulation with Postfix           &lt;/h1&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               Although the initial Postfix release has &lt;b&gt;no address rewriting language&lt;/b&gt;, it can               do quite a bit of &lt;b&gt;address manipulation via table lookup&lt;/b&gt;. While a message flows               through the Postfix system, its addresses are mangled in the order described in this               document. Unless indicated otherwise, all parameters described here are in the               &lt;b&gt;main.cf&lt;/b&gt; file. If you change parameters of a running Postfix system, don&#39;t               forget to issue a &lt;b&gt;postfix reload&lt;/b&gt; command.             &lt;/div&gt;&lt;ul&gt;&lt;li&gt;                 &lt;div class=&quot;normal&quot;&gt;                   Canonical address mapping                 &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;                 &lt;div class=&quot;normal&quot;&gt;                   Address masquerading                 &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;                 &lt;div class=&quot;normal&quot;&gt;                   Virtual address mapping                 &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;                 &lt;div class=&quot;normal&quot;&gt;                   Relocated users table                 &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;                 &lt;div class=&quot;normal&quot;&gt;                   Mail transport switch                 &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Canonical address mapping           &lt;/div&gt;&lt;blockquote&gt;             Before the cleanup daemon stores inbound mail into the &lt;b&gt;incoming&lt;/b&gt; queue, it uses             the canonical table to rewrite all addresses in message envelopes and in message             headers, local or remote. The mapping is useful to replace login names by             &lt;i&gt;Firstname.Lastname&lt;/i&gt; style addresses, or to clean up invalid domains in mail             addresses produced by legacy mail systems. In addition to the canonical maps which are             applied to both sender and recipient addresses, you can specify canonical maps that are             applied only to sender addresses or to recipient addresses. For example:           &lt;/blockquote&gt;&lt;div class=&quot;courier&quot;&gt;             sender_canonical_maps = hash:/etc/postfix/sender_canonical&lt;br /&gt;
recipient_canonical_maps = hash:/etc/postfix/recipient_canonical           &lt;/div&gt;&lt;blockquote&gt;                            The sender and recipient canonical maps are applied before the common canonical maps.             &lt;br /&gt;
Sender-specific rewriting is useful when you want to rewrite ugly sender addresses to               pretty ones, and still want to be able to send mail to the those ugly address without               creating a mailer loop.             &lt;br /&gt;
&lt;/blockquote&gt;&lt;div class=&quot;header&quot;&gt;             Example           &lt;/div&gt;&lt;blockquote&gt;                            You are a dial-up with the local name &quot;zahn@saphir&quot; and you want to convert this               address to &quot;martin dot zahn at akadia dot ch&quot;, so the ISP will accept the name. Enter the               following line in &lt;b&gt;/usr/local/postfix/etc/canonical:&lt;/b&gt;             &lt;br /&gt;
&lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;zahn@saphir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; martin dot zahn at akadia dot ch&lt;/b&gt;             &lt;/div&gt;Canonical mapping is disabled by default. To enable, edit the &lt;b&gt;canonical_maps&lt;/b&gt;               parameter in the &lt;b&gt;main.cf&lt;/b&gt; file and specify one or more lookup tables, separated               by whitespace or commas. For example:             &lt;br /&gt;
&lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;canonical_maps = hash:/usr/local/postfix/etc/canonical&lt;/b&gt;             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               Be sure to run             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               # &lt;b&gt;postmap /usr/local/postfix/etc/canonical&lt;br /&gt;
&lt;/b&gt; # &lt;b&gt;postfix reload&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;normal&quot;&gt;             &lt;b&gt;Important Note&lt;/b&gt;           &lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;               &lt;td width=&quot;100%&quot;&gt;                 For canonical address mapping the address must not be a local user as it is in                 Alias mapping               &lt;/td&gt;             &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;big&quot;&gt;             Address masquerading           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               Address masquerading is a method to hide all hosts below a domain behind their mail               gateway, and to make it appear as if the mail comes from the gateway itself, instead               of from individual machines.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               Address masquerading is disabled by default. To enable, edit the               &lt;b&gt;masquerade_domains&lt;/b&gt; parameter in the &lt;b&gt;main.cf&lt;/b&gt; file and specify one or               more domain names separated by whitespace or commas. For example:             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;masquerade_domains = $mydomain&lt;/b&gt;, &lt;b&gt;akadia.ch&lt;/b&gt;             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               In this example, addresses of the form &lt;i&gt;martin.zahn@rabbit.akadia.com&lt;/i&gt; would be               rewritten to &lt;i&gt;martin dot zahn at akadia dot ch&lt;/i&gt;.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               The &lt;b&gt;masquerade_exceptions&lt;/b&gt; configuration parameter specifies what user names               should not be subjected to address masquerading. Specify one or more user names               separated by whitespace or commas. For example, &lt;b&gt;masquerade_exceptions = root.&lt;/b&gt;               By default, Postfix makes no exceptions.&amp;nbsp;             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;normal&quot;&gt;             &lt;b&gt;Important Note&lt;/b&gt;           &lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;               &lt;td width=&quot;100%&quot;&gt;                 &lt;b&gt;Address masquerading is applied only to message headers and envelope sender                 addresses, not to envelope recipients&lt;/b&gt;, envelope addresses can be manipulated                 with virtual address mapping ... see next section.               &lt;/td&gt;             &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;big&quot;&gt;             Virtual address mapping           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               After applying the canonical and masquerade mappings, the cleanup daemon uses the               virtual table to redirect mail for all recipients, local or remote. Virtual lookups               are useful to redirect mail for virtual domains to real user mailboxes, and to               redirect mail for domains that no longer exist. Virtual lookups can also be used to               transform &lt;i&gt;Firstname.Lastname&lt;/i&gt; back into UNIX login names, although it seems               that local aliases are a more appropriate vehicle.             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;virtual_alias_maps = hash:$config_directory/virtual&lt;br /&gt;
virtual_alias_domains = $virtual_alias_maps&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;normal&quot;&gt;             &lt;b&gt;Important Note&lt;/b&gt;           &lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;               &lt;td width=&quot;100%&quot;&gt;                 &lt;b&gt;Virtual address mapping is applied only to envelope recipients; it has no effect                 on message headers or envelope senders,&lt;/b&gt; message headers and envelope sender                 addresses can be manipulated with address masquerading ... see previous section.               &lt;/td&gt;             &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;blockquote&gt;             &lt;div class=&quot;header&quot;&gt;               Virtual Table             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               The &lt;b&gt;first line&lt;/b&gt; in the virtual table describes the virtual domain. This line is               necessary to avoid             &lt;/div&gt;&lt;ul&gt;&lt;li&gt;                 Postfix does not refuse mail for unknown virtual users.               &lt;/li&gt;
&lt;li&gt;                 Mail for unknown virtual users fails with &quot;mail loops back to myself&quot;.               &lt;/li&gt;
&lt;li&gt;                 Postfix refuses mail for virtual domains with &quot;user unknown&quot;.               &lt;/li&gt;
&lt;li&gt;                 Postfix refuses mail for virtual domains with &quot;relay access denied&quot;.               &lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;normal&quot;&gt;               The &lt;b&gt;left part&lt;/b&gt; of the next lines defines the E-Mail address which should be               forwarded, the right part are local users or external E-Mail addresses.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               Example of /etc/postfix/virtual for individual addresses             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;               My Virtual Domain&lt;br /&gt;
info@arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; info@akadia.ch,               martin dot zahn at akadia dot ch&lt;br /&gt;
zahn@arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;               zahn_martin@hotmail.com             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               Example of /etc/postfix/virtual if all addresses should be transparently forwared             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;               My Virtual Domain&lt;br /&gt;
@arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;               @akadia.com             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               The second line defines, that all E-Mail for ARKUM.CH should be forwarded to               AKADIA.COM             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Relocated users table           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               Next, the queue manager runs each recipient name through the relocated database. This               table provides information on how to reach users that no longer have an account, or               what to do with mail for entire domains that no longer exist. When mail is sent to an               address that is listed in this table, the message is bounced with an informative               message.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               Lookups of relocated users are disabled by default. To enable, edit the               &lt;b&gt;relocated_maps&lt;/b&gt; parameter in the &lt;b&gt;main.cf&lt;/b&gt; file and specify one or more               lookup tables, separated by whitespace or commas.             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;relocated_maps = hash:/etc/postfix/relocated&lt;/b&gt;             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               Example of /etc/postfix/relocated             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               hans.mueller@infoline.ch&amp;nbsp;&amp;nbsp;&amp;nbsp; Hans Mueller has left             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Alias database           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               When mail is to be &lt;b&gt;delivered locally&lt;/b&gt;, the local delivery agent runs each local               recipient name through the aliases database. The mapping does not affect addresses in               message headers. Local aliases are typically used to implement distribution lists, or               to direct mail for standard aliases such as &lt;b&gt;postmaster&lt;/b&gt; to real people. The               table can also be used to map &lt;i&gt;Firstname.Lastname&lt;/i&gt; addresses to login names.               Alias lookups are enabled by default. The default configuration depends on the system               environment, but it is typically one of the following:             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;alias_maps = hash:/etc/aliases&lt;br /&gt;
alias_database = hash:/etc/aliases&lt;/b&gt;             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               The path to the alias database file is controlled via the &lt;b&gt;alias_database&lt;/b&gt;               configuration parameter. The value is system dependent. Usually it is one of the               following:             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               Example of /etc/aliases             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               # Postfix User&lt;br /&gt;
postfix:&amp;nbsp;&amp;nbsp; root&lt;br /&gt;
# Person who should get root&#39;s mail&lt;br /&gt;
root: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; martin dot zahn at akadia dot ch             &lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;big&quot;&gt;             Mail transport switch (Mail Proxy, Mail Gateway)           &lt;/div&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               Once the queue manager has established the destination of a message, the optional               transport table controls how the message will be delivered (this table is used by the               address rewriting and resolving daemon). By default, everything is sent via the &lt;a href=&quot;http://www.postfix.org/smtp.8.html&quot;&gt;smtp&lt;/a&gt; transport. The transport table can               be used to send mail to a mail server in the HSZ, in this case we implement a mail               gateway (proxy) in the DMZ.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               Transport table lookups are disabled by default. To enable, edit the               &lt;b&gt;transport_maps&lt;/b&gt; parameter in the &lt;b&gt;main.cf&lt;/b&gt; file and specify one or more               lookup tables, separated by whitespace or commas.             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               &lt;b&gt;transport_maps = hash:/etc/postfix/transport&lt;/b&gt;             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               Example of /etc/postfix/transport             &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;               arkum.ch &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;               smtp:[192.168.32.32]&lt;br /&gt;
.arkum.ch &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;               smtp:[192.168.32.32]&lt;br /&gt;
paragon.akadia.com&amp;nbsp;&amp;nbsp; local:&lt;br /&gt;
localhost.akadia.com local:             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               The first line (arkum.ch) forwards all E-Mails user@arkum.ch the internal E-Mail               server on 192.168.32.32. The second line is used to forward E-Mails for user@firewall               to 192.168.32.32. Do not omit the entries that deliver mail locally, or else mail               will bounce with a &quot;mail loops to myself&quot; condition.             &lt;/div&gt;&lt;/blockquote&gt;&lt;h1 align=&quot;left&quot;&gt;             Keeping out Unsolicited Commercial E-mail           &lt;/h1&gt;&lt;blockquote&gt;             &lt;div class=&quot;normal&quot;&gt;               Junk mail is one of the most common and annoying types of e-mail abuse. Postfix               offers protection against UCE (Unsolicited Commercial E-mail) via a couple of               settings in main.cf. Some caution is in order, however: there&#39;s a fine line between               spam and legitimate dissemination, and it&#39;s entirely possible that even modest UCE               controls will cause some legitimate (i.e., desired) mail to be dropped.             &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;               See more information &lt;b&gt;&lt;a href=&quot;http://www.akadia.com/services/postfix_uce.html&quot; target=&quot;_top&quot;&gt;here&lt;/a&gt;&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;h1&gt;             Postfix Installation           &lt;/h1&gt;&lt;div align=&quot;left&quot; class=&quot;big&quot;&gt;             Download           &lt;/div&gt;&lt;blockquote&gt;             &lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               Download Source for &lt;a href=&quot;http://www.postfix.org/&quot;&gt;http://www.postfix.org&lt;/a&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               # &lt;b&gt;gunzip postfix-2.2.0.tar.gz&lt;/b&gt;&lt;br /&gt;
# &lt;b&gt;tar xvf postfix-2.2.0.tar&lt;/b&gt;&lt;br /&gt;
# &lt;b&gt;cd postfix-2.2.0&lt;br /&gt;
&lt;/b&gt; # &lt;b&gt;make makefiles CCARGS=&#39;-DDEF_CONFIG_DIR=\&quot;/usr/local/postfix/etc\&quot;&#39;&lt;/b&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               &lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;# For Postfix 1.1.x&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
# &lt;b&gt;make makefiles CCARGS=-DDEF_CONFIG_DIR=&lt;br /&gt;
&amp;nbsp; \\\\\\\&quot;/usr/local/postfix/etc\\\\\\\&quot;&lt;/b&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               # &lt;b&gt;make&lt;/b&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               This will install Postfix in &lt;b&gt;/usr/local/postfix&lt;/b&gt;, and therefore no conflicts               with an existing sendmail configuration will happen.             &lt;/div&gt;&lt;/blockquote&gt;&lt;div align=&quot;left&quot; class=&quot;big&quot;&gt;             Configuration           &lt;/div&gt;&lt;blockquote&gt;             &lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               If you are replacing an existing sendmail installation with Postfix, you may need to               keep the old sendmail program running for some time in order to flush the mail queue.               As superuser,&lt;br /&gt;
execute the following commands (your sendmail, newaliases and mailq programs may be               in a different place).             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               # &lt;b&gt;mv /usr/sbin/sendmail /usr/sbin/sendmail.OFF&lt;/b&gt;&lt;br /&gt;
# &lt;b&gt;mv /usr/bin/newaliases /usr/bin/newaliases.OFF&lt;/b&gt;&lt;br /&gt;
# &lt;b&gt;mv /usr/bin/mailq /usr/bin/mailq.OFF&lt;/b&gt;&lt;br /&gt;
# &lt;b&gt;chmod 755 /usr/sbin/sendmail.OFF /usr/bin/newaliases.OFF&lt;br /&gt;
&amp;nbsp; /usr/bin/mailq.OFF&lt;/b&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               In order to install or upgrade Postfix             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               Create a user &quot;postfix&quot; with a unique user id and group id. Preferably, this is an               account that no-one can log into. The account does not need an executable login               shell, and needs no existing home directory.             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               &lt;b&gt;postfix:*:12345:12345:postfix:/no/where:/no/shell&lt;/b&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               Make sure there is a corresponding alias in /etc/aliases             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               &lt;b&gt;postfix: root&lt;/b&gt;             &lt;/div&gt;Create a group &quot;postdrop&quot; with a group id that is not used by any other user account.               Not even by the postfix user account.             &lt;br /&gt;
&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               &lt;b&gt;postdrop:*:54321:&lt;/b&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               Run the &quot;make install&quot; script as the super-user             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               # &lt;b&gt;make install&lt;/b&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               install_root: [/] &lt;b&gt;/&lt;/b&gt;&lt;br /&gt;
tempdir: &lt;b&gt;/tmp&lt;/b&gt;&lt;br /&gt;
config_directory: &lt;b&gt;/usr/local/postfix/etc&lt;/b&gt;&lt;br /&gt;
daemon_directory: &lt;b&gt;/usr/local/postfix/bin&lt;/b&gt;&lt;br /&gt;
command_directory: &lt;b&gt;/usr/local/postfix/sbin&lt;/b&gt;&lt;br /&gt;
queue_directory: &lt;b&gt;/usr/local/postfix/spool&lt;/b&gt;&lt;br /&gt;
sendmail_path: &lt;b&gt;/usr/local/postfix/sendmail/sendmail&lt;/b&gt;&lt;br /&gt;
newaliases_path: &lt;b&gt;/usr/local/postfix/sendmail/newaliases&lt;/b&gt;&lt;br /&gt;
mailq_path: &lt;b&gt;/usr/local/postfix/sendmail/mailq&lt;/b&gt;&lt;br /&gt;
mail_owner: &lt;b&gt;postfix&lt;/b&gt;&lt;br /&gt;
setgid_group: &lt;b&gt;postdrop&lt;/b&gt;&lt;br /&gt;
manpages: &lt;b&gt;/usr/local/postfix/man&lt;/b&gt;&lt;br /&gt;
sample_directory: &lt;b&gt;/usr/local/postfix/sample&lt;/b&gt;&lt;br /&gt;
readme_directory: &lt;b&gt;/usr/local/postfix/readme&lt;/b&gt;             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               Copy /etc/aliases to /usr/local/postfix/etc             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               # &lt;b&gt;cd /usr/local/postfix/sendmail&lt;/b&gt;&lt;br /&gt;
# &lt;b&gt;./newaliases&lt;/b&gt;             &lt;/div&gt;&lt;/blockquote&gt;&lt;h1&gt;             Important Commands           &lt;/h1&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;               &lt;td valign=&quot;top&quot; width=&quot;42%&quot;&gt;                 &lt;div class=&quot;courier&quot;&gt;                   &lt;b&gt;postconf mail_version&lt;/b&gt;                 &lt;/div&gt;&lt;/td&gt;               &lt;td valign=&quot;top&quot; width=&quot;58%&quot;&gt;                 Find out what Postfix Version is installed               &lt;/td&gt;             &lt;/tr&gt;
&lt;tr&gt;               &lt;td valign=&quot;top&quot; width=&quot;42%&quot;&gt;                 &lt;div class=&quot;courier&quot;&gt;                   &lt;b&gt;mailq&lt;/b&gt;                 &lt;/div&gt;&lt;/td&gt;               &lt;td valign=&quot;top&quot; width=&quot;58%&quot;&gt;                 Show Mail Queue               &lt;/td&gt;             &lt;/tr&gt;
&lt;tr&gt;               &lt;td valign=&quot;top&quot; width=&quot;42%&quot;&gt;                 &lt;div class=&quot;courier&quot;&gt;                   &lt;b&gt;postsuper -d ALL&lt;/b&gt;                 &lt;/div&gt;&lt;/td&gt;               &lt;td valign=&quot;top&quot; width=&quot;58%&quot;&gt;                 Remove bounced mail from the queue.               &lt;/td&gt;             &lt;/tr&gt;
&lt;tr&gt;               &lt;td valign=&quot;top&quot; width=&quot;42%&quot;&gt;                 &lt;div class=&quot;courier&quot;&gt;                   &lt;b&gt;postfix flush&lt;/b&gt;                 &lt;/div&gt;&lt;/td&gt;               &lt;td valign=&quot;top&quot; width=&quot;58%&quot;&gt;                 Flush the Mail Queue               &lt;/td&gt;             &lt;/tr&gt;
&lt;tr&gt;               &lt;td valign=&quot;top&quot; width=&quot;42%&quot;&gt;                 &lt;div class=&quot;courier&quot;&gt;                   &lt;b&gt;postfix check&lt;/b&gt;                 &lt;/div&gt;&lt;/td&gt;               &lt;td valign=&quot;top&quot; width=&quot;58%&quot;&gt;                 Check Installation               &lt;/td&gt;             &lt;/tr&gt;
&lt;tr&gt;               &lt;td valign=&quot;top&quot; width=&quot;42%&quot;&gt;                 &lt;div class=&quot;courier&quot;&gt;                   &lt;b&gt;telnet mail-abuse.org&lt;/b&gt;                 &lt;/div&gt;&lt;/td&gt;               &lt;td valign=&quot;top&quot; width=&quot;58%&quot;&gt;                 Test your own Mailserver against attacks.               &lt;/td&gt;             &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;h1 align=&quot;left&quot;&gt;             &amp;nbsp;           &lt;/h1&gt;&lt;h1 align=&quot;left&quot;&gt;             How to check your mailserver against attacks           &lt;/h1&gt;&lt;blockquote&gt;             &lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               The delivery of unsolicited commercial email (UCE) must be avoided on a secure               mailserver. But how to check the mailserver against relaying and attacks? Abuse.org               offers a public mailserver, which can be used to check the own mailserver.             &lt;/div&gt;&lt;ol&gt;&lt;li&gt;                 &lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;                   Login to your mailserver                 &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;                 &lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;                   Execute: &lt;b&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;telnet mail-abuse.org&lt;/span&gt;&lt;/b&gt;                 &lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;               Now you can see, how your system will be attacked and how secure it is.             &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;               Escape character is &#39;^]&#39;.&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt; 220 SMTP service ready&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; HELO dante.mail-abuse.org&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt; 250 Requested mail action okay, completed&lt;br /&gt;
&lt;b&gt;:Relay test: #Test 1&lt;/b&gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; mail from: &lt;nobody@mail-abuse.org&gt;&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt; 250 Requested mail action okay, completed&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; rcpt to: &lt;nobody@mail-abuse.org&gt;&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt; &lt;b&gt;554 Transaction failed&lt;/b&gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; rset&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt; 250 Requested mail action okay, completed&lt;br /&gt;
&lt;b&gt;:Relay test: #Test 2&lt;/b&gt;&lt;br /&gt;
.....&lt;br /&gt;
.....&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt; 250 Requested mail action okay, completed&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; QUIT&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt; 221 SMTP server closing transmission channel&lt;br /&gt;
Tested host banner: 220 SMTP service ready&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;System appeared to reject relay attempts&lt;/b&gt;             &lt;/nobody@mail-abuse.org&gt;&lt;/nobody@mail-abuse.org&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;h1&gt;             Typical Configurations           &lt;/h1&gt;&lt;div class=&quot;big&quot;&gt;             Postfix Mailbox Host in the DMZ           &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;             Email is saved on the Postfix Mailbox Host, located in the DMZ. All clients get their             E-Mail using POP or IMAP. All clients uses the Mailbox Host as their Relay-Host. The             Mailbox Host delivers E-Mail directly to the recipient using DNS and SMTP. The             disadvantage of this solution is, that the Mailboxes are located in the DMZ.           &lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;courier&quot;&gt;             &lt;img border=&quot;0&quot; height=&quot;674&quot; src=&quot;http://www.akadia.com/img/email_mailbox_postfix.gif&quot; width=&quot;508&quot; /&gt;           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;header&quot;&gt;             Main.cf           &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;             postfix_root = /usr/local/postfix&lt;br /&gt;
config_directory = $postfix_root/etc&lt;br /&gt;
queue_directory = $postfix_root/spool&lt;br /&gt;
program_directory = $postfix_root/sbin&lt;br /&gt;
command_directory = $program_directory&lt;br /&gt;
daemon_directory = $postfix_root/bin&lt;br /&gt;
mail_owner = postfix&lt;br /&gt;
&lt;b&gt;mydomain = akadia.com&lt;/b&gt;&lt;br /&gt;
myorigin = $mydomain&lt;br /&gt;
&lt;b&gt;mydestination = $myhostname, localhost.$mydomain,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             $mydomain, akadia.ch, arkum.ch&lt;/b&gt;&lt;br /&gt;
relayhost =&lt;br /&gt;
masquerade_domains = $mydomain&lt;br /&gt;
alias_maps = hash:$config_directory/aliases&lt;br /&gt;
alias_database = hash:$config_directory/aliases&lt;br /&gt;
notify_classes = bounce,delay,policy,protocol,resource,software&lt;br /&gt;
&lt;b&gt;mynetworks = 193.247.121.192/28, 192.168.138.0/24, 127.0.0.0/8&lt;/b&gt;&lt;br /&gt;
maps_rbl_domains = rbl.maps.vix.com&lt;br /&gt;
smtpd_client_restrictions =&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; permit_mynetworks,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; check_client_access             hash:$config_directory/access,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reject_maps_rbl           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;big&quot;&gt;             Postfix Host inside the Intranet (on HSZ)           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;             Email is saved on the Postfix Mailbox Host, located in the DMZ. All clients get their             E-Mail using POP or IMAP. This example shows how to configure a Postfix Client in the             HSZ, which delivers all Mail to the Relayhost 193.247.121.196.           &lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;big&quot;&gt;             &lt;img border=&quot;0&quot; height=&quot;631&quot; src=&quot;http://www.akadia.com/img/email_hsz_postfix.gif&quot; width=&quot;516&quot; /&gt;           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;header&quot;&gt;             Main.cf           &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;             postfix_root = /usr/local/postfix&lt;br /&gt;
config_directory = $postfix_root/etc&lt;br /&gt;
queue_directory = $postfix_root/spool&lt;br /&gt;
program_directory = $postfix_root/sbin&lt;br /&gt;
command_directory = $program_directory&lt;br /&gt;
daemon_directory = $postfix_root/bin&lt;br /&gt;
mail_owner = postfix&lt;br /&gt;
&lt;b&gt;mydomain = akadia.com&lt;/b&gt;&lt;br /&gt;
myorigin = $mydomain&lt;br /&gt;
mydestination = $myhostname, localhost.$mydomain,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             $mydomain, akadia.ch, arkum.ch&lt;br /&gt;
&lt;b&gt;relayhost = $mydomain&lt;/b&gt;&lt;br /&gt;
masquerade_domains = $mydomain&lt;br /&gt;
&lt;b&gt;transport_maps = hash:$config_directory/transport&lt;/b&gt;&lt;br /&gt;
alias_maps = hash:$config_directory/aliases&lt;br /&gt;
alias_database = hash:$config_directory/aliases&lt;br /&gt;
notify_classes = bounce,delay,policy,protocol,resource,software&lt;br /&gt;
&lt;b&gt;mynetworks = 192.168.138.0/24, 127.0.0.0/8&lt;/b&gt;&lt;br /&gt;
smtpd_client_restrictions = permit_mynetworks           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;header&quot;&gt;             Transport Table           &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;             akadia.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[193.247.121.196]&lt;br /&gt;
.akadia.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[193.247.121.196]&lt;br /&gt;
akadia.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[193.247.121.196]&lt;br /&gt;
.akadia.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[193.247.121.196]&lt;br /&gt;
arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[193.247.121.196]&lt;br /&gt;
.arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[193.247.121.196]&lt;br /&gt;
paragon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             local:&lt;br /&gt;
paragon.akadia.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local:&lt;br /&gt;
localhost.akadia.com&amp;nbsp;&amp;nbsp; local:           &lt;/div&gt;&lt;div class=&quot;big&quot;&gt;             Postfix as a Proxy Mailhost in the DMZ           &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;             Email is saved on the Postfix Mailbox Host (192.168.138.10), located in the HSZ. The             Postfix Mail-Proxy (193.247.121.196) forwards all E-Mail to the Mailbox Host in the             HSZ. All clients get their E-Mail using POP or IMAP from the Mailbox Host in the HSZ.             All clients use the Mail-Proxy as their Relay-Host. The Mail-Proxy delivers E-Mail             directly to the recipient using DNS and SMTP. The advantage of this solution is, that             the Mailboxes are located in the HSZ, therefore we suggest to use this architecture.           &lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;big&quot;&gt;             &lt;img border=&quot;0&quot; height=&quot;621&quot; src=&quot;http://www.akadia.com/img/email_proxy_postfix.gif&quot; width=&quot;436&quot; /&gt;           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;header&quot;&gt;             Main.cf           &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;             postfix_root = /usr/local/postfix&lt;br /&gt;
config_directory = $postfix_root/etc&lt;br /&gt;
queue_directory = $postfix_root/spool&lt;br /&gt;
program_directory = $postfix_root/sbin&lt;br /&gt;
command_directory = $program_directory&lt;br /&gt;
daemon_directory = $postfix_root/bin&lt;br /&gt;
mail_owner = postfix&lt;br /&gt;
&lt;b&gt;mydomain = akadia.com&lt;/b&gt;&lt;br /&gt;
myorigin = $mydomain&lt;br /&gt;
mydestination = $myhostname, localhost.$mydomain,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             $mydomain, akadia.ch, arkum.ch&lt;br /&gt;
&lt;b&gt;relayhost =&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
masquerade_domains = $mydomain&lt;br /&gt;
&lt;b&gt;transport_maps = hash:$config_directory/transport&lt;/b&gt;&lt;br /&gt;
alias_maps = hash:$config_directory/aliases&lt;br /&gt;
alias_database = hash:$config_directory/aliases&lt;br /&gt;
notify_classes = bounce,delay,policy,protocol,resource,software&lt;br /&gt;
&lt;b&gt;mynetworks = 193.247.121.192/28, 192.168.138.0/24, 127.0.0.0/8&lt;/b&gt;&lt;br /&gt;
smtpd_client_restrictions = permit_mynetworks           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;header&quot;&gt;             Transport Table           &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;             akadia.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[192.168.138.10]&lt;br /&gt;
.akadia.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[192.168.138.10]&lt;br /&gt;
akadia.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[192.168.138.10]&lt;br /&gt;
.akadia.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[192.168.138.10]&lt;br /&gt;
arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[192.168.138.10]&lt;br /&gt;
.arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             smtp:[192.168.138.10]           &lt;/div&gt;&lt;div class=&quot;big&quot;&gt;             Postfix as a Multi Domain Mail-Host (for ISPs)           &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;             If you want to server multiple domains, then Postfix is the right tool. Use the virtual             table to configure the domains.           &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;             The optional &lt;b&gt;virtual&lt;/b&gt; table specifies redirections for local and non-local             recipients or domains. The redirections are used by the &lt;b&gt;cleanup&lt;/b&gt; daemon. The             redirections are recursive. The &lt;b&gt;virtual&lt;/b&gt; redirection is applied only to the             recipient envelope address, and does not affect message headers. Think Sendmail rule             set &lt;b&gt;S0&lt;/b&gt;, if you like. Use &lt;b&gt;canonical&lt;/b&gt; mapping to rewrite header and envelope             addresses in general.           &lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;normal&quot;&gt;             &lt;img border=&quot;0&quot; height=&quot;333&quot; src=&quot;http://www.akadia.com/img/email_multidomain_postfix.gif&quot; width=&quot;344&quot; /&gt;           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;header&quot;&gt;             Main.cf           &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;             postfix_root = /usr/local/postfix&lt;br /&gt;
config_directory = $postfix_root/etc&lt;br /&gt;
queue_directory = $postfix_root/spool&lt;br /&gt;
program_directory = $postfix_root/sbin&lt;br /&gt;
command_directory = $program_directory&lt;br /&gt;
daemon_directory = $postfix_root/bin&lt;br /&gt;
mail_owner = postfix&lt;br /&gt;
&lt;b&gt;mydomain = akadia.com&lt;/b&gt;&lt;br /&gt;
myorigin = $mydomain&lt;br /&gt;
mydestination = $myhostname, localhost.$mydomain, $mydomain,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             &lt;b&gt;$config_directory/localdomains&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;relayhost =&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
masquerade_domains = $mydomain&lt;br /&gt;
&lt;b&gt;virtual_maps = hash:$config_directory/virtual&lt;/b&gt;&lt;br /&gt;
alias_maps = hash:$config_directory/aliases&lt;br /&gt;
alias_database = hash:$config_directory/aliases&lt;br /&gt;
notify_classes = bounce,delay,policy,protocol,resource,software&lt;br /&gt;
&lt;b&gt;mynetworks = 193.247.121.192/28, 192.168.138.0/24, 127.0.0.0/8&lt;/b&gt;&lt;br /&gt;
smtpd_client_restrictions = permit_mynetworks           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;header&quot;&gt;             Localdomains File (Important !)           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;normal&quot;&gt;             The &quot;localdomains&quot; file is not mapped or hashed. It uses plain text, one listing per             line. I&lt;b&gt;t&#39;s equivalent to class w with sendmail.&lt;/b&gt;           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;courier&quot;&gt;             akadia.com&lt;br /&gt;
akadia.ch&lt;br /&gt;
arkum.com&lt;br /&gt;
arkum.ch&lt;br /&gt;
bohl.ch&lt;br /&gt;
bohl.com           &lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;header&quot;&gt;             Virtual Table           &lt;/div&gt;&lt;div class=&quot;normal&quot;&gt;             Typical support for a virtual domain looks like the following:           &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;             virtual.domain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             Description for the Domain&lt;br /&gt;
postmaster@virtual.domain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; postmaster&lt;br /&gt;
user1@virtual.domain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             address1&lt;br /&gt;
user2@virtual.domain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             address2, address3           &lt;/div&gt;&lt;div class=&quot;courier&quot;&gt;             #&lt;br /&gt;
# Domain AKADIA.CH&lt;br /&gt;
#&lt;br /&gt;
akadia.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Virtual Domain for Akadia&lt;br /&gt;
martin.zahn@akadia.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             zahn@akadia.com,zahn@hotmail.com&lt;br /&gt;
info@akadia.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             zahn@akadia.com&lt;br /&gt;
marianne.zahn@akadia.ch&amp;nbsp;&amp;nbsp;&amp;nbsp; pmz@akadia.com&lt;br /&gt;
#&lt;br /&gt;
# Forward transparently all address for ARKUM.CH to AKADIA.COM&lt;br /&gt;
#&lt;br /&gt;
arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             Virtual Domain for Akadia&lt;br /&gt;
@arkum.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @akadia.com&lt;br /&gt;
#&lt;br /&gt;
# Domain BOHL.CH&lt;br /&gt;
#&lt;br /&gt;
bohl.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             Virtual Domain for employee&lt;br /&gt;
info@bohl.ch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;             bohl@akadia.com           &lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/2255040072281174838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/2255040072281174838'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/postfix-sendmail-replacement.html' title='Postfix -- the Sendmail Replacement'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-6506044529276731365</id><published>2011-01-12T09:20:00.000+05:30</published><updated>2011-01-12T09:20:35.690+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>20 Linux Server Hardening Security Tips</title><content type='html'>Securing your Linux server is important to protect your data,  intellectual property, and time, from the hands of crackers (hackers).  The system administrator is responsible for security Linux box. In this  first part of a Linux server security series, I will provide 20  hardening tips for default installation of Linux system.&lt;br /&gt;
&lt;span id=&quot;more-5687&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;#1: Encrypt Data Communication&lt;/h2&gt;All data transmitted over a network is open to monitoring. Encrypt  transmitted data whenever possible with password or using keys /  certificates.&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Use &lt;a href=&quot;http://openssh.org/&quot; target=&quot;_blank&quot;&gt;scp, ssh&lt;/a&gt;, rsync, or sftp for file transfer.  You can also mount &lt;a href=&quot;http://www.cyberciti.biz/tips/rhel-centos-mounting-remote-filesystem-using-sshfs.html&quot;&gt;remote server file system&lt;/a&gt; or your own home directory using special sshfs and fuse tools.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.gnupg.org/&quot; target=&quot;_blank&quot;&gt;GnuPG&lt;/a&gt; allows to  encrypt and sign your data and communication, features a versatile key  managment system as well as access modules for all kind of public key  directories.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://rsug.itd.umich.edu/software/fugu/&quot;&gt;Fugu&lt;/a&gt; is a  graphical frontend to the commandline Secure File Transfer application  (SFTP). SFTP is similar to FTP, but unlike FTP, the entire session is  encrypted, meaning no passwords are sent in cleartext form, and is thus  much less vulnerable to third-party interception. Another option is &lt;a href=&quot;http://filezilla-project.org/&quot; target=&quot;_blank&quot;&gt;FileZilla&lt;/a&gt; - a cross-platform client that supports FTP, FTP over SSL/TLS (FTPS), and SSH File Transfer Protocol (SFTP).&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://openvpn.net/&quot; target=&quot;_blank&quot;&gt;OpenVPN&lt;/a&gt; is a cost-effective, lightweight SSL VPN.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/how-to-install-ssl-lighttpd-https-configuration.html&quot;&gt;Lighttpd SSL (Secure Server Layer) Https&lt;/a&gt; Configuration And Installation&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/rhel-apache-httpd-mod-ssl-tutorial/&quot;&gt;Apache SSL (Secure Server Layer) Https&lt;/a&gt; (mod_ssl) Configuration And Installation&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;#1.1: Avoid Using FTP, Telnet, And Rlogin / Rsh&lt;/h3&gt;Under most network configurations, user names, passwords, FTP /  telnet / rsh commands and transferred files can be captured by anyone on  the same network using a packet sniffer.  The common solution to this  problem is to use either &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html&quot;&gt;OpenSSH&lt;/a&gt; , &lt;a href=&quot;http://www.cyberciti.biz/tips/configure-vsfptd-secure-connections-via-ssl-tls.html&quot;&gt;SFTP, or FTPS&lt;/a&gt;  (FTP over SSL), which adds SSL or TLS encryption to FTP. Type the  following command to delete NIS, rsh and other outdated service:&lt;br /&gt;
&lt;code&gt;# yum erase inetd xinetd ypserv tftp-server telnet-server rsh-serve&lt;/code&gt;&lt;br /&gt;
&lt;h2&gt;#2: Minimize Software to Minimize Vulnerability&lt;/h2&gt;Do you really need all sort of web services installed? Avoid  installing unnecessary software to avoid vulnerabilities in software.  Use the RPM package manager such &lt;a href=&quot;http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/&quot;&gt;as yum&lt;/a&gt; or &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-debian-package-management-cheat-sheet.html&quot;&gt;apt-get and/or dpkg to review&lt;/a&gt; all installed set of software packages on a system. Delete all unwanted packages.&lt;br /&gt;
&lt;code&gt;# yum list installed&lt;br /&gt;
# yum list packageName&lt;br /&gt;
# yum remove packageName&lt;/code&gt;&lt;br /&gt;
OR&lt;br /&gt;
&lt;code&gt;# dpkg --list&lt;br /&gt;
# dpkg --info packageName&lt;br /&gt;
# apt-get remove packageName&lt;/code&gt;&lt;br /&gt;
&lt;h2&gt;#3: One Network Service Per System or VM Instance&lt;/h2&gt;Run different network services on separate servers or VM instance.  This limits the number of other services that can be compromised. For  example, if an attacker able to successfully exploit a software such as  Apache flow, he / she will get an access to entire server including  other services such as MySQL, e-mail server and so on. See how to  install Virtualization software:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/rhel-centos-xen-virtualization-installation-howto.html&quot;&gt;Install and Setup XEN Virtualization Software on CentOS Linux 5&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/openvz-rhel-centos-linux-tutorial/&quot;&gt;How To Setup OpenVZ under RHEL / CentOS Linux&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#4: Keep Linux Kernel and Software Up to Date&lt;/h2&gt;Applying security patches is an important part of maintaining Linux  server. Linux provides all necessary tools to keep your system updated,  and also allows for easy upgrades between versions. All security update  should be reviewed and applied as soon as possible. Again, use the RPM  package manager such &lt;a href=&quot;http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/&quot;&gt;as yum&lt;/a&gt; and/or &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-debian-package-management-cheat-sheet.html&quot;&gt;apt-get and/or dpkg to &lt;/a&gt; apply all security updates.&lt;br /&gt;
&lt;code&gt;# yum update &lt;/code&gt;&lt;br /&gt;
OR&lt;br /&gt;
&lt;code&gt;# apt-get update &amp;amp;&amp;amp; apt-get upgrade&lt;/code&gt;&lt;br /&gt;
You can  configure  Red hat / CentOS / Fedora Linux to send yum package &lt;a href=&quot;http://www.cyberciti.biz/faq/red-hat-centos-fedora-send-package-update-notification-via-email/&quot;&gt;update notification via email&lt;/a&gt;. Another option is to apply &lt;a href=&quot;http://www.cyberciti.biz/faq/fedora-automatic-update-retrieval-installation-with-cron/&quot;&gt;all security updates&lt;/a&gt; via a cron job. Under Debian / Ubuntu Linux you can use &lt;a href=&quot;http://www.cyberciti.biz/faq/apt-get-apticron-send-email-upgrades-available/&quot;&gt;apticron&lt;/a&gt; to send security notifications.&lt;br /&gt;
&lt;h2&gt;#5: Use Linux Security Extensions&lt;/h2&gt;Linux comes with various security patches which can be used to guard  against misconfigured or compromised programs. If possible use &lt;a href=&quot;http://www.cyberciti.biz/tips/selinux-vs-apparmor-vs-grsecurity.html&quot;&gt;SELinux and other Linux security&lt;/a&gt;  extensions to enforce limitations on network and other programs. For  example, SELinux provides a variety of security policies for Linux  kernel.&lt;br /&gt;
&lt;h3&gt;#5.1: SELinux&lt;/h3&gt;I strongly recommend using SELinux which provides a flexible  Mandatory Access Control (MAC). Under standard Linux Discretionary  Access Control (DAC), an application or process running as a user (UID  or SUID) has the user&#39;s permissions to objects such as files, sockets,  and other processes. Running a MAC kernel protects the system from  malicious or flawed applications that can damage or destroy the system.  See the official &lt;a href=&quot;http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Deployment_Guide/selg-overview.html&quot; target=&quot;_blank&quot;&gt;Redhat&lt;/a&gt; documentation which explains SELinux configuration.&lt;br /&gt;
&lt;h2&gt;#6: User Accounts and Strong Password Policy&lt;/h2&gt;Use the useradd / usermod commands to create and maintain user  accounts. Make sure you have a good and strong password policy. For  example, a good password includes at least 8 characters long and mixture  of alphabets, number, special character, upper &amp;amp; lower alphabets  etc. Most important pick a password you can remember. Use tools such  as  &quot;&lt;a href=&quot;http://www.cyberciti.biz/faq/unix-linux-password-cracking-john-the-ripper/&quot;&gt;John the ripper&lt;/a&gt;&quot; to find out weak users passwords on your  server. Configure &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-check-passwords-against-a-dictionary-attack.html&quot;&gt;pam_cracklib.so to&lt;/a&gt; enforce the password policy.&lt;br /&gt;
&lt;h3&gt;#6.1: Password Aging&lt;/h3&gt;The &lt;a href=&quot;http://www.cyberciti.biz/faq/tag/chage-command/&quot;&gt;chage command&lt;/a&gt;  changes the number of days between password changes and the date of the  last password change. This information is used by the system to  determine when a user must change his/her password. The &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-set-default-password-expiry-for-all-new-users.html&quot;&gt;/etc/login.defs file&lt;/a&gt;  defines the site-specific configuration for the shadow password suite  including password aging configuration. To disable password aging,  enter:&lt;br /&gt;
&lt;code&gt;chage -M 99999 userName&lt;/code&gt;&lt;br /&gt;
To get password expiration information, enter:&lt;br /&gt;
&lt;code&gt;chage -l userName&lt;/code&gt;&lt;br /&gt;
Finally, you can also edit the &lt;a href=&quot;http://www.cyberciti.biz/faq/understanding-etcshadow-file/&quot;&gt;/etc/shadow file&lt;/a&gt; in the following fields:&lt;br /&gt;
&lt;pre&gt;{userName}:{password}:{lastpasswdchanged}:{Minimum_days}:{Maximum_days}:{Warn}:{Inactive}:{Expire}:&lt;/pre&gt;Where,&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;strong&gt;Minimum_days&lt;/strong&gt;: The minimum number of days required  between password changes i.e. the number of days left before the user is  allowed to change his/her password.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Maximum_days&lt;/strong&gt;: The maximum number of days the password is valid (after that user is forced to change his/her password).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Warn&lt;/strong&gt; : The number of days before password is to expire that user is warned that his/her password must be changed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Expire &lt;/strong&gt;: Days since Jan 1, 1970 that account is disabled i.e. an absolute date specifying when the login may no longer be used.&lt;/li&gt;
&lt;/ol&gt;I recommend chage command instead of editing the /etc/shadow by hand:&lt;br /&gt;
&lt;code&gt;# chage -M 60 -m 7 -W 7 userName&lt;/code&gt;&lt;br /&gt;
Recommend readings:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/rhel-debian-force-users-to-change-passwords/&quot;&gt;Linux: Force Users To Change Their Passwords Upon First Login&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/setting-off-password-aging-expiration.html&quot;&gt;Linux turn On / Off password expiration / aging&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/linux-locking-an-account/&quot;&gt;Lock the user password&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/search-for-all-account-without-password-and-lock-them.html&quot;&gt;Search for all account without password and lock them&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/protect-command-by-configuring-linux-unix-group-permissions/&quot;&gt;Use Linux groups to enhance security&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;#6.2: Restricting Use of Previous Passwords&lt;/h3&gt;You can prevent all users from using or reuse same old passwords under Linux. The &lt;a href=&quot;http://www.cyberciti.biz/tips/how-to-linux-prevent-the-reuse-of-old-passwords.html&quot;&gt;pam_unix module parameter remember&lt;/a&gt; can be used to configure the number of previous passwords that cannot be reused.&lt;br /&gt;
&lt;h3&gt;#6.3: Locking User Accounts After Login Failures&lt;/h3&gt;Under Linux you can use the &lt;a href=&quot;http://www.cyberciti.biz/tips/rhel-centos-fedora-linux-log-failed-login.html&quot;&gt;faillog command to&lt;/a&gt;  display faillog records or to set login failure limits. faillog formats  the contents of the failure log from /var/log/faillog database / log  file. It also can be used for maintains failure counters and limits.To  see failed login attempts, enter:&lt;br /&gt;
&lt;code&gt;faillog&lt;/code&gt;&lt;br /&gt;
To unlock an account after login failures, run:&lt;br /&gt;
&lt;code&gt;faillog -r -u userName &lt;/code&gt;&lt;br /&gt;
Note you can use passwd command to lock and unlock accounts:&lt;br /&gt;
&lt;code&gt;# lock account&lt;br /&gt;
&lt;a href=&quot;http://www.cyberciti.biz/faq/linux-locking-an-account/&quot;&gt;passwd -l userName&lt;/a&gt;&lt;br /&gt;
# unlocak account&lt;br /&gt;
&lt;a href=&quot;http://www.cyberciti.biz/faq/linux-locking-an-account/&quot;&gt;passwd -u userName&lt;/a&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;#6.4: How Do I Verify No Accounts Have Empty Passwords?&lt;/h3&gt;Type the following command&lt;br /&gt;
&lt;code&gt;# awk -F: &#39;($2 == &quot;&quot;) {print}&#39; /etc/shadow&lt;/code&gt;&lt;br /&gt;
Lock all empty password accounts:&lt;br /&gt;
&lt;code&gt;# passwd -l accountName&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;#6.5: Make Sure No Non-Root Accounts Have UID Set To 0&lt;/h3&gt;Only root account have UID 0 with full permissions to access the  system. Type the following command to display all accounts with UID set  to 0:&lt;br /&gt;
&lt;code&gt;# awk -F: &#39;($3 == &quot;0&quot;) {print}&#39; /etc/passwd&lt;/code&gt;&lt;br /&gt;
You should only see one line as follows:&lt;br /&gt;
&lt;pre&gt;root:x:0:0:root:/root:/bin/bash&lt;/pre&gt;If you see  other lines, delete them or  make sure other accounts are authorized by you to use UID 0.&lt;br /&gt;
&lt;h2&gt;#7: Disable root Login&lt;/h2&gt;Never ever login as root user. You should &lt;a href=&quot;http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html&quot;&gt;use sudo to&lt;/a&gt;  execute root level commands as and when required. sudo does greatly  enhances the security of the system without sharing root password with  other users and admins. sudo provides simple &lt;a href=&quot;http://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/&quot;&gt;auditing and tracking&lt;/a&gt; features too.&lt;br /&gt;
&lt;h2&gt;#8: Physical Server Security&lt;/h2&gt;You must protect Linux servers physical console access. Configure &lt;a href=&quot;http://www.cyberciti.biz/tips/tips-to-protect-linux-servers-physical-console-access.html&quot;&gt;the BIOS&lt;/a&gt; and disable the booting from external devices such as DVDs / CDs / USB pen. Set BIOS and grub &lt;a href=&quot;http://www.cyberciti.biz/tips/how-do-i-secure-grub-boot-loader.html&quot;&gt;boot loader password&lt;/a&gt;  to protect these settings. All production boxes must be locked in IDCs  (Internet Data Center) and all persons must pass some sort of security  checks before accessing your server. See also:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/tips-to-protect-linux-servers-physical-console-access.html&quot;&gt;9 Tips To Protect Linux Servers Physical Console Access&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#9: Disable Unwanted Services&lt;/h2&gt;Disable all unnecessary services and daemons (services that runs in  the background). You need to remove all unwanted services from the  system start-up. Type the following &lt;a href=&quot;http://www.cyberciti.biz/faq/check-running-services-in-rhel-redhat-fedora-centoslinux/&quot;&gt;command to list&lt;/a&gt; all services which are started at boot time in run level # 3:&lt;br /&gt;
&lt;code&gt;# chkconfig --list | grep &#39;3:on&#39;&lt;/code&gt;&lt;br /&gt;
To disable service, enter:&lt;br /&gt;
&lt;code&gt;# service serviceName stop&lt;br /&gt;
# chkconfig serviceName off&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;#9.1: Find Listening Network Ports&lt;/h3&gt;Use the following command to list all open ports and associated programs:&lt;br /&gt;
&lt;code&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/linux-display-open-ports-owner.html&quot;&gt;netstat -tulpn&lt;/a&gt;&lt;/code&gt;&lt;br /&gt;
OR&lt;br /&gt;
&lt;code&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/linux-scanning-network-for-open-ports.html&quot;&gt;nmap -sT -O localhost&lt;/a&gt;&lt;br /&gt;
nmap -sT -O server.example.com&lt;/code&gt;&lt;br /&gt;
Use iptables to close open ports or stop all unwanted network services using above service and chkconfig commands.&lt;br /&gt;
&lt;h4&gt;#9.2: See Also&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/rhel5-update-rcd-command/&quot;&gt;update-rc.d like command on Redhat Enterprise / CentOS Linux&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/how-to-controlling-access-to-linux-services.html&quot;&gt;Ubuntu / Debian Linux: Services Configuration Tool to Start / Stop System Services&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/netstat-command-tutorial-examples.html&quot;&gt;Get Detailed Information About Particular IP&lt;/a&gt; address Connections Using netstat Command.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#10: Delete X Windows&lt;/h2&gt;X Windows on server is not required. There is no reason to run X Windows on your dedicated mail and Apache web server. You can &lt;a href=&quot;&quot;&gt;disable and remove X Windows&lt;/a&gt; to improve server security and performance. Edit &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-changing-run-levels.html&quot;&gt;/etc/inittab&lt;/a&gt; and set run level to 3. Finally, remove X Windows system, enter:&lt;br /&gt;
&lt;code&gt;# &lt;a href=&quot;http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/&quot;&gt;yum groupremove &quot;X Window System&quot;&lt;/a&gt;&lt;/code&gt;&lt;br /&gt;
&lt;h2&gt;#11: Configure Iptables and TCPWrappers&lt;/h2&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/category/iptables/&quot;&gt;Iptables&lt;/a&gt; is a user space application program that allows you to configure the firewall (Netfilter) provided by the Linux kernel. Use &lt;a href=&quot;http://bash.cyberciti.biz/firewall/linux-iptables-firewall-shell-script-for-standalone-server/&quot;&gt;firewall&lt;/a&gt; to filter &lt;a href=&quot;http://www.cyberciti.biz/tips/block-spamming-scanning-with-iptables.html&quot;&gt;out  traffic and allow only&lt;/a&gt; necessary traffic. Also use the &lt;a href=&quot;http://www.cyberciti.biz/faq/tcp-wrappers-hosts-allow-deny-tutorial/&quot;&gt;TCPWrappers a host-based&lt;/a&gt;  networking ACL system to filter network access to Internet. You can  prevent many denial of service attacks with the help of Iptables:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/lighttpd-set-throughput-connections-per-ip.html&quot;&gt;Lighttpd Traffic Shaping: Throttle Connections Per Single IP (Rate Limit)&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/linux-iptables-10-how-to-block-common-attack.html&quot;&gt;How to: Linux Iptables block common attack&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/linux-detect-port-scan-attacks/&quot;&gt;psad: Linux Detect And Block Port Scan Attacks In Real Time&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#12: Linux Kernel /etc/sysctl.conf Hardening&lt;/h2&gt;/etc/sysctl.conf file is used to &lt;a href=&quot;http://www.cyberciti.biz/faq/linux-kernel-etcsysctl-conf-security-hardening/&quot;&gt;configure kernel parameters&lt;/a&gt; at runtime. Linux reads and applies settings from /etc/sysctl.conf at boot time. Sample &lt;a href=&quot;http://www.cyberciti.biz/faq/tag/etcsysctlconf/&quot;&gt;/etc/sysctl.conf&lt;/a&gt;:&lt;br /&gt;
&lt;pre&gt;# Turn on execshield
kernel.exec-shield=1
kernel.randomize_va_space=1
# Enable IP spoofing protection
net.ipv4.conf.all.rp_filter=1
# Disable IP source routing
net.ipv4.conf.all.accept_source_route=0
# Ignoring broadcasts request
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.icmp_ignore_bogus_error_messages=1
# Make sure spoofed packets get logged
net.ipv4.conf.all.log_martians = 1&lt;/pre&gt;&lt;h2&gt;#13: Separate Disk Partitions&lt;/h2&gt;Separation of the &lt;a href=&quot;http://www.cyberciti.biz/tips/the-importance-of-linux-partitions.html&quot;&gt;operating system files&lt;/a&gt;  from user files may result into a better and secure system. Make sure  the following filesystems are mounted on separate partitions:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;/usr&lt;/li&gt;
&lt;li&gt;/home&lt;/li&gt;
&lt;li&gt;/var and /var/tmp&lt;/li&gt;
&lt;li&gt;/tmp&lt;/li&gt;
&lt;/ul&gt;Create septate partitions for Apache and FTP server roots. Edit  /etc/fstab file and make sure you add the following configuration  options:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;strong&gt;noexec&lt;/strong&gt; - Do not set execution of any binaries on this partition (prevents execution of binaries but allows scripts).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;nodev&lt;/strong&gt; - Do not allow character or special devices on this partition (prevents use of device files such as zero, sda etc).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;nosuid&lt;/strong&gt; - Do not set SUID/SGID access on this partition (prevent the setuid bit).&lt;/li&gt;
&lt;/ol&gt;Sample &lt;a href=&quot;http://www.cyberciti.biz/faq/tag/etcfstab/&quot;&gt;/etc/fstab&lt;/a&gt; entry to to limit user access on /dev/sda5 (ftp server root directory):&lt;br /&gt;
&lt;pre&gt;/dev/sda5  /ftpdata          ext3    defaults,nosuid,nodev,noexec 1 2&lt;/pre&gt;&lt;h3&gt;#13.1: Disk Quotas&lt;/h3&gt;Make sure disk quota is enabled for all users.  To implement disk quotas, use the following steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Enable quotas per file system by modifying the /etc/fstab file.&lt;/li&gt;
&lt;li&gt;Remount the file system(s).&lt;/li&gt;
&lt;li&gt;Create the quota database files and generate the disk usage table.&lt;/li&gt;
&lt;li&gt;Assign quota policies.&lt;/li&gt;
&lt;li&gt;See &lt;a href=&quot;http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Deployment_Guide/ch-disk-quotas.html&quot; target=&quot;_blank&quot;&gt;implementing disk quotas&lt;/a&gt; tutorial for further details.&lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;#14: Turn Off IPv6&lt;/h2&gt;Internet Protocol version 6 (IPv6) provides a new Internet layer of  the TCP/IP protocol suite that replaces Internet Protocol version 4  (IPv4) and provides many benefits. Currently there are no good tools out  which are able to check a system over network for IPv6 security issues.  Most Linux distro began enabling IPv6 protocol by default. Crackers can  send bad traffic via IPv6 as most admins are not monitoring it. Unless  network configuration requires it, disable IPv6 or configure Linux IPv6  firewall:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/redhat-centos-disable-ipv6-networking/&quot;&gt;RedHat / Centos Disable IPv6 Networking&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/linux-how-to-disable-the-ipv6-protocol.html&quot;&gt;Debian / Ubuntu And Other Linux Distros Disable IPv6 Networking&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://mirrors.deepspace6.net/Linux+IPv6-HOWTO/chapter-security.html&quot;&gt;Linux IPv6 Howto - Chapter 19. Security&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/redhat-fedora-ip6tables-firewall-configuration/&quot;&gt;Linux IPv6 Firewall configuration and scripts are &lt;/a&gt;&lt;a href=&quot;http://bash.cyberciti.biz/script/ipv6-firewall/&quot;&gt;available here&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#15: Disable Unwanted SUID and SGID Binaries&lt;/h2&gt;All SUID/SGID bits enabled file can be misused when the SUID/SGID  executable has a security problem or bug. All local or remote user can  use such file. It is a good idea to find all such files. Use the find  command as follows:&lt;br /&gt;
&lt;code&gt;#See all set user id files:&lt;br /&gt;
find / -perm +4000&lt;br /&gt;
# See all group id files&lt;br /&gt;
find / -perm +2000&lt;br /&gt;
# Or combine both in a single command&lt;br /&gt;
find /  \( -perm -4000 -o -perm -2000 \) -print&lt;br /&gt;
find / -path -prune -o -type f -perm +6000 -ls&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
You need to investigate each reported file. See reported file man page for further details. &lt;br /&gt;
&lt;h3&gt;#15.1: World-Writable Files&lt;/h3&gt;Anyone can modify world-writable file resulting into a security issue. Use the following command to find &lt;a href=&quot;http://www.cyberciti.biz/faq/find-all-world-writable-directories-have-stickybitsset-on/&quot;&gt;all world writable&lt;/a&gt; and sticky bits set files:&lt;br /&gt;
&lt;code&gt;find /dir -xdev -type d \( -perm -0002 -a ! -perm -1000 \) -print&lt;/code&gt;&lt;br /&gt;
You need to investigate each reported file and either set correct user and group permission  or remove it.&lt;br /&gt;
&lt;h3&gt;#15.2: Noowner Files&lt;/h3&gt;Files not owned by any user or group can pose a security problem.  Just find them with the following command which do not belong to a valid  user and a valid group&lt;br /&gt;
&lt;code&gt;find /dir -xdev \( -nouser -o -nogroup \) -print&lt;/code&gt;&lt;br /&gt;
You need to investigate each reported file and either assign it to an appropriate user and group or remove it.&lt;br /&gt;
&lt;h2&gt;#16: Use A Centralized Authentication Service&lt;/h2&gt;Without a  centralized authentication system, user auth data becomes  inconsistent, which may lead into out-of-date credentials and forgotten  accounts which should have &lt;a href=&quot;http://www.cyberciti.biz/faq/former-employees-keep-accessing-linux-unix-server/&quot;&gt;been deleted&lt;/a&gt;  in first place.  A centralized authentication service allows you  maintaining central control over Linux / UNIX account and authentication  data. You can keep auth data synchronized between servers. Do not use  the NIS service for centralized authentication. Use &lt;a href=&quot;http://www.openldap.org/&quot; target=&quot;_blank&quot;&gt;OpenLDAP&lt;/a&gt; for clients and servers.&lt;br /&gt;
&lt;h3&gt;#16.1: Kerberos&lt;/h3&gt;&lt;a href=&quot;http://web.mit.edu/kerberos/&quot; target=&quot;_blank&quot;&gt;Kerberos&lt;/a&gt;  performs authentication as a trusted third party authentication service  by using cryptographic shared secret under the assumption that packets  traveling along the insecure network can be read, modified, and  inserted. Kerberos builds on symmetric-key cryptography and requires a  key distribution center.  You can make remote login, remote copy, secure  inter-system file copying and other high-risk tasks safer and more  controllable using Kerberos. So, when users authenticate to network  services using Kerberos, unauthorized users attempting to gather  passwords by monitoring network traffic are effectively thwarted. See  how to setup and use &lt;a href=&quot;http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Deployment_Guide/ch-kerberos.html&quot;&gt;Kerberos&lt;/a&gt;.&lt;br /&gt;
&lt;h2&gt;#17: Logging and Auditing&lt;/h2&gt;You need to configure logging and auditing to collect all hacking and  cracking attempts. By default syslog stores data in /var/log/  directory. This is also useful to find out software misconfiguration  which may open your system to various attacks. See the following logging  related articles:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/linux-log-files-location-and-how-do-i-view-logs-files/&quot;&gt;Linux log file locations&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/log-all-logs-to-central-linux-unix-loghost.html&quot;&gt;How to send logs to a remote loghost&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/how-do-i-rotate-log-files/&quot;&gt;How do I rotate log files?&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;man pages syslogd, syslog.conf and logrotate.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;#17.1: Monitor Suspicious Log Messages With Logwatch / Logcheck&lt;/h3&gt;Read your logs using &lt;a href=&quot;http://nixcraft.com/linux-software/477-howto-linux-monitor-logfiles.html&quot;&gt;logwatch&lt;/a&gt; or &lt;a href=&quot;http://logcheck.org/&quot; target=&quot;_blank&quot;&gt;logcheck&lt;/a&gt;. These tools make your log reading life easier. You get detailed reporting on &lt;strong&gt;unusual items&lt;/strong&gt; in syslog via email. A sample syslog report:&lt;br /&gt;
&lt;pre&gt;################### Logwatch 7.3 (03/24/06) ####################
        Processing Initiated: Fri Oct 30 04:02:03 2009
        Date Range Processed: yesterday
                              ( 2009-Oct-29 )
                              Period is day.
      Detail Level of Output: 0
              Type of Output: unformatted
           Logfiles for Host: www-52.nixcraft.net.in
  ################################################################## 

 --------------------- Named Begin ------------------------ 

 **Unmatched Entries**
    general: info: zone XXXXXX.com/IN: Transfer started.: 3 Time(s)
    general: info: zone XXXXXX.com/IN: refresh: retry limit for master ttttttttttttttttttt#53 exceeded (source ::#0): 3 Time(s)
    general: info: zone XXXXXX.com/IN: Transfer started.: 4 Time(s)
    general: info: zone XXXXXX.com/IN: refresh: retry limit for master ttttttttttttttttttt#53 exceeded (source ::#0): 4 Time(s)

 ---------------------- Named End ------------------------- 

  --------------------- iptables firewall Begin ------------------------ 

 Logged 87 packets on interface eth0
   From 58.y.xxx.ww - 1 packet to tcp(8080)
   From 59.www.zzz.yyy - 1 packet to tcp(22)
   From 60.32.nnn.yyy - 2 packets to tcp(45633)
   From 222.xxx.ttt.zz - 5 packets to tcp(8000,8080,8800) 

 ---------------------- iptables firewall End ------------------------- 

 --------------------- SSHD Begin ------------------------ 

 Users logging in through sshd:
    root:
       123.xxx.ttt.zzz: 6 times

 ---------------------- SSHD End ------------------------- 

 --------------------- Disk Space Begin ------------------------ 

 Filesystem            Size  Used Avail Use% Mounted on
 /dev/sda3             450G  185G  241G  44% /
 /dev/sda1              99M   35M   60M  37% /boot

 ---------------------- Disk Space End ------------------------- 

 ###################### Logwatch End #########################&lt;/pre&gt;(Note output is truncated)&lt;br /&gt;
&lt;h3&gt;#17.2: System Accounting with auditd&lt;/h3&gt;The auditd is provided for system auditing. It is responsible for  writing audit records to the disk. During startup, the rules in  /etc/audit.rules are read by this daemon. You can open /etc/audit.rules  file and make changes such as setup audit file log location and other  option. With auditd you can answers the following questions:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;System startup and shutdown events (reboot / halt).&lt;/li&gt;
&lt;li&gt;Date and time of the event.&lt;/li&gt;
&lt;li&gt;User respoisble for the event (such as trying to access /path/to/topsecret.dat file).&lt;/li&gt;
&lt;li&gt;Type of event (edit, access, delete, write, update file &amp;amp; commands).&lt;/li&gt;
&lt;li&gt;Success or failure of the event.&lt;/li&gt;
&lt;li&gt;Records events that Modify date and time.&lt;/li&gt;
&lt;li&gt;Find out who made changes to  modify the system&#39;s network settings.&lt;/li&gt;
&lt;li&gt;Record events that modify user/group information.&lt;/li&gt;
&lt;li&gt;See who made changes to a file etc.&lt;/li&gt;
&lt;/ol&gt;See our &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-file.html&quot;&gt;quick tutorial which&lt;/a&gt; explains enabling and using the auditd service.&lt;br /&gt;
&lt;h2&gt;#18: Secure OpenSSH Server&lt;/h2&gt;The SSH protocol is recommended for remote login and remote file  transfer. However, ssh is open to many attacks.  See how to secure  OpenSSH server:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html&quot;&gt;Top 20 OpenSSH Server Best Security Practices&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#19: Install And Use Intrusion Detection System&lt;/h2&gt;A network intrusion detection system (NIDS) is an intrusion detection  system that tries to detect malicious activity such as denial of  service attacks, port scans or even attempts to crack into computers by  monitoring network traffic.&lt;br /&gt;
It is a good practice to deploy any integrity checking software  before system goes online in a production environment. If possible  install AIDE  software before the system is connected to any network. &lt;a href=&quot;http://www.cyberciti.biz/faq/debian-ubuntu-linux-software-integrity-checking-with-aide/&quot;&gt;AIDE is a host-based intrusion detection system (HIDS)&lt;/a&gt; it can monitor and analyses the internals of a computing system.&lt;br /&gt;
&lt;a href=&quot;http://www.snort.org/&quot; target=&quot;_blank&quot;&gt;Snort is&lt;/a&gt; a software for intrusion detection which is capable of performing packet logging and real-time traffic analysis on IP networks.&lt;br /&gt;
&lt;h2&gt;#20: Protecting Files, Directories and Email&lt;/h2&gt;Linux offers excellent protections against unauthorized data access. &lt;a href=&quot;http://www.cyberciti.biz/faq/unix-linux-bsd-chmod-numeric-permissions-notation-command/&quot;&gt;File&lt;/a&gt; &lt;a href=&quot;http://www.cyberciti.biz/faq/linux-write-protecting-a-file/&quot;&gt;permissions&lt;/a&gt;  and MAC prevent unauthorized access from accessing data. However,   permissions set by the Linux are irrelevant if an attacker has physical  access to a computer and can simply move the computer&#39;s hard drive to  another system to copy and analyze the sensitive data. You can easily  protect files, and partitons under Linux using the following tools:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;To encrypt and decrypt files with a password, use &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-how-to-encrypt-and-decrypt-files-with-a-password.html&quot;&gt;gpg command&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/linux-or-unix-password-protecting-files.html&quot;&gt;Linux or UNIX password&lt;/a&gt; protect files with openssl and other tools.&lt;/li&gt;
&lt;li&gt;See how to &lt;a href=&quot;https://help.ubuntu.com/community/EncryptedPrivateDirectory&quot;&gt;encrypting directories&lt;/a&gt; with ecryptfs.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.truecrypt.org/&quot; target=&quot;_blank&quot;&gt;TrueCrypt is&lt;/a&gt; free open-source disk encryption software for Windows 7/Vista/XP, Mac OS X and Linux.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/file-system-partition-encryption-in-linux.html&quot;&gt;Howto: Disk and partition encryption in Linux for mobile devices&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;How to setup &lt;a href=&quot;https://www.antagonism.org/privacy/encrypted-swap-linux.shtml&quot;&gt;encrypted Swap&lt;/a&gt; on Linux.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;#20.1: Securing Email Servers&lt;/h3&gt;You can use SSL certificates and gpg keys to secure email communication on both server and client computers:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/unix-dovecot-ssl-tls-server-configuration/&quot;&gt;Linux Securing Dovecot IMAPS / POP3S Server with SSL Configuration&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/postfix-smtp-ssl-certificate-csr-installation-guide.html&quot;&gt;Linux Postfix SMTP (Mail Server) SSL Certificate Installations and Configuration&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/ssl-certificate-installation-courier-imap-server.html&quot;&gt;Courier IMAP SSL Server Certificate Installtion and Configuration&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/howto-configure-sendmail-ssl-certificate-email/&quot;&gt;Configure Sendmail SSL encryption for sending and receiving email&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://enigmail.mozdev.org/home/index.php&quot;&gt;Enigmail: Encrypted mail with Mozilla thunderbird&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;Other Recommendation:&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/redhat-cetos-linux-remote-backup-snapshot-server/&quot;&gt;Backups&lt;/a&gt;  - It cannot be stressed enough how important it is to make a backup of  your Linux system. A proper offsite backup allows you to recover from  cracked server i.e. an intrusion. The traditional UNIX backup programs  are &lt;a href=&quot;http://bash.cyberciti.biz/backup/freebsd-dump-filesystem-shell-script/&quot;&gt;dump and restore&lt;/a&gt; are also recommended.&lt;/li&gt;
&lt;li&gt;How to: &lt;a href=&quot;http://www.cyberciti.biz/faq/howto-check-linux-rootkist-with-detectors-software/&quot;&gt;Looking for Rootkits&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Howto: &lt;a href=&quot;http://www.cyberciti.biz/faq/what-is-rhel-centos-fedora-core-execshield/&quot;&gt;Enable ExecShield Buffer Overflows Protection&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Subscribe to &lt;a href=&quot;http://www.redhat.com/security/&quot; target=&quot;_blank&quot;&gt;Redhat&lt;/a&gt; or &lt;a href=&quot;http://www.debian.org/security/&quot; target=&quot;_blank&quot;&gt;Debian&lt;/a&gt; Linux security mailing list or RSS feed.&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;Recommend readings:&lt;/h4&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/Security_Guide/&quot; target=&quot;_blank&quot;&gt;Red Hat Enterprise Linux&lt;/a&gt; - Security Guide.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.amazon.com/gp/product/0596003919?ie=UTF8&amp;amp;tag=cyberciti-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=0596003919&quot; target=&quot;_blank&quot;&gt;Linux security cookbook&lt;/a&gt;- A good collections of security recipes for new Linux admin.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.amazon.com/gp/product/1931836043?ie=UTF8&amp;amp;tag=cyberciti-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=1931836043&quot;&gt;Snort 2.1 Intrusion Detection, Second Edition&lt;/a&gt; - Good introduction to Snort and Intrusion detection under Linux.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.amazon.com/gp/product/1590594444?ie=UTF8&amp;amp;tag=cyberciti-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=1590594444&quot; target=&quot;_blank&quot;&gt;Hardening Linux&lt;/a&gt;  - Hardening Linux identifies many of the risks of running Linux hosts  and applications and provides practical examples and methods to minimize  those risks.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://tldp.org/HOWTO/html_single/Security-HOWTO/&quot; target=&quot;_blank&quot;&gt;Linux Security&lt;/a&gt; HOWTO.&lt;/li&gt;
&lt;/ol&gt;In the next part of this series I will discuss how to secure specific  applications (such as Proxy, Mail, LAMP, Database) and a few other  security tools. Did I miss something? Please add your favorite system  security tool or tip in the comments.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/6506044529276731365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/6506044529276731365'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/20-linux-server-hardening-security-tips.html' title='20 Linux Server Hardening Security Tips'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-5978889787056188364</id><published>2011-01-12T09:18:00.000+05:30</published><updated>2011-01-12T09:18:14.240+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Top 10 Open Source Web-Based Project</title><content type='html'>This is an user contributed article.&lt;br /&gt;
Project management software is not just for managing software based  project. It can be used for variety of other tasks too. The web-based  software must provide tools for planning, organizing and managing  resources to achieve project goals and objectives. A web-based project  management software can be accessed through an intranet or WAN / LAN  using a web browser. You don&#39;t have to install any other software on the  system. The software can be easy of use with access control features  (multi-user). I use project management software for all of our projects  (for e.g. building a new cluster farm) for issue / bug-tracking,  calender, gantt charts, email notification and much more. &lt;br /&gt;
Obviously I&#39;m not the only user, the following open source software  is used by some of the biggest research organizations and companies  world wild. For example, NASA&#39;s Jet Propulsion Laboratory uses track  software or open source project such as lighttpd / phpbb use redmine  software to keep track of their projects.&lt;br /&gt;
&lt;span id=&quot;more-5477&quot;&gt;&lt;/span&gt;&lt;br /&gt;
You use the following top 10 software for personal or business use. Keep  track of all your projects in one place and finish them successfully on  time.&lt;br /&gt;
&lt;h2&gt;#1: Codendi&lt;/h2&gt;Codendi is an open-source collaborative development platform offered  by Xerox. From only one interface, it gathers, all the needed tools for  software development teams: management and versioning of code, bugs,  requirements, documents, reporting, tests etc. It is mainly used for  managing software project processes.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.codendi.com/index_en.php&quot; target=&quot;_blank&quot;&gt;Download Codendi&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#2: Redmine&lt;/h2&gt;Redmine is a flexible project management web application. Written  using Ruby on Rails framework, it is cross-platform and cross-database.  It includes calendar and gantt charts to aid visual representation of  projects and their deadlines. &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.redmine.org/&quot; target=&quot;_blank&quot;&gt;Download redmine&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#3: ProjectPier&lt;/h2&gt;ProjectPier is a Free, Open-Source, self-hosted PHP application for  managing tasks, projects and teams through an intuitive web interface.  ProjectPier will help your organization communicate, collaborate and get  things done Its function is similar to commercial groupware/project  management products, but allows the freedom and scalability of  self-hosting.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.projectpier.org/&quot; target=&quot;_blank&quot;&gt;Download ProjectPier&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#4: Trac&lt;/h2&gt;Trac is an open source, web-based project management and bug-tracking  tool. Trac allows hyperlinking information between a computer bug  database, revision control and wiki content. It also serves as a web  interface to a version control system like Subversion, Git, Mercurial,  Bazaar and Darcs.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://trac.edgewall.org/&quot; target=&quot;_blank&quot;&gt;Download Trac&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#5: Project HQ&lt;/h2&gt;Project HQ is a collaborative open source project management tool,  similar to Basecamp and activeCollab. Project HQ is built on open source  technologies like Python, Pylons and SQLAlchemy and is fully database  independent. Project HQ uses a structured workflow to assist you in  managing your projects.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://projecthq.org/&quot; target=&quot;_blank&quot;&gt;Download Project HQ&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#6: Collabtive&lt;/h2&gt;Collabtive is a web-based project management software that is being  published as Open Source software. The project was started in November  2007. It strives to provide an Open Source alternative to proprietary  tools like Basecamp or ActiveCollab.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://collabtive.o-dyn.de/&quot; target=&quot;_blank&quot;&gt;Download Collabtive&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#7: eGroupWare&lt;/h2&gt;eGroupWare is a free open source groupware software intended for  businesses from small to enterprises. Its primary functions allow users  to manage contacts, appointments, projects and to-do lists.&lt;br /&gt;
It is used either via its native web-interface, making access  platform-independent, or by using different supported groupware clients,  such as Kontact, Novell Evolution, or Microsoft Outlook. It can also be  used by mobile phone or PDA via SyncML.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.egroupware.org/Home&quot; target=&quot;_blank&quot;&gt;Download eGroupWare&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#8: KForge&lt;/h2&gt;KForge is an open-source (GPL) system for managing software and  knowledge projects. It re-uses existing best-of-breed tools such as a  versioned storage (subversion), a tracker (trac), and wiki (trac or  moinmoin), integrating them with the system’s own facilities (projects,  users, permissions etc). KForge also provides a complete web interface  for project administration as well a fully-developed plugin system so  that new services and features can be easily added.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.kforgeproject.com/&quot; target=&quot;_blank&quot;&gt;Download KForge&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#9: OpenGoo&lt;/h2&gt;It is a complete online solution focused on improving productivity,  collaboration, communication and management of your teams. OpenGoo main  features include document management, contact management, e-mail,  project management, and time management. Text documents and  presentations can be created and edited online. Files can be uploaded,  organized and shared, independent of file formats.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.opengoo.org/&quot; target=&quot;_blank&quot;&gt;Download OpenGoo&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#10: ClockingIT&lt;/h2&gt;ClockingIT is a free Project Management solution, which helps your team stay focused and on top of things. &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://wiki.clockingit.com/&quot; target=&quot;_blank&quot;&gt;Download ClockingIT &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;Ed: The following two paragraphs added by Vivek Gite:&lt;/h2&gt;I also use project management software to keep track of how much time I spent per client and project. &lt;br /&gt;
&lt;h2&gt; My Personal Choice&lt;/h2&gt;redmine is my personal choice because I like to use ruby on rails and  I often work with small teams. We track networking issues, data center  issues, capacity planning, trouble tickets and much more using redmine. I  can track multiple projects and its flexible role-based access control  make sure only authorized eyes can view the details.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/5978889787056188364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/5978889787056188364'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/top-10-open-source-web-based-project.html' title='Top 10 Open Source Web-Based Project'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-3806373653243382786</id><published>2011-01-12T09:17:00.000+05:30</published><updated>2011-01-12T09:17:17.641+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Top 20 OpenSSH Server Best Security Practices</title><content type='html'>OpenSSH is the implementation of the SSH protocol. OpenSSH is  recommended for remote login, making backups, remote file transfer via  scp or sftp, and much more. SSH is perfect to keep confidentiality and  integrity for data exchanged between two networks and systems. However,  the main advantage is server authentication, through the use of public  key cryptography.  From time to time there are &lt;a href=&quot;http://isc.sans.org/diary.html?storyid=6742&quot; target=&quot;_blank&quot;&gt;rumors&lt;/a&gt; about OpenSSH &lt;a href=&quot;http://www.h-online.com/security/OpenSSH-zero-day-exploit-rumours-not-confirmed--/news/113731&quot; target=&quot;_blank&quot;&gt;zero day&lt;/a&gt; exploit. Here are a few things you need to tweak in order to improve OpenSSH server security.&lt;br /&gt;
&lt;span id=&quot;more-5489&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;Default Config Files and SSH Port&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;/etc/ssh/sshd_config &lt;/strong&gt;- OpenSSH server configuration file.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;/etc/ssh/ssh_config&lt;/strong&gt; - OpenSSH client configuration file.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;~/.ssh/&lt;/strong&gt; - Users ssh configuration directory.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;~/.ssh/authorized_keys&lt;/strong&gt; or  &lt;strong&gt;~/.ssh/authorized_keys&lt;/strong&gt; -  Lists the public keys (RSA or DSA) that can be used to log into the user’s account&lt;/li&gt;
&lt;li&gt;&lt;strong&gt; /etc/nologin&lt;/strong&gt; - If this file exists, sshd refuses to let anyone except root log in.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt; /etc/hosts.allow&lt;/strong&gt; and &lt;strong&gt;/etc/hosts.deny&lt;/strong&gt; : Access controls lists that should be enforced by tcp-wrappers are defined here.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SSH default port &lt;/strong&gt;: TCP 22&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_5556&quot; style=&quot;width: 590px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html/ssh-session&quot; rel=&quot;attachment wp-att-5556&quot;&gt;&lt;img alt=&quot;SSH Session in Action&quot; class=&quot;size-full wp-image-5556&quot; height=&quot;365&quot; src=&quot;http://files.cyberciti.biz/uploads/tips/2009/07/ssh-session.png&quot; title=&quot;SSH Session in Action&quot; width=&quot;590&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;SSH Session in Action&lt;/div&gt;&lt;/div&gt;&lt;h2&gt;#1: Disable OpenSSH Server&lt;/h2&gt;Workstations and laptop can work without OpenSSH server. If you need  not to provide the remote login and file transfer capabilities of SSH,  disable and remove the SSHD server. CentOS / RHEL / Fedora Linux user  can disable and remove openssh-server with yum command:&lt;br /&gt;
&lt;code&gt;# chkconfig sshd off&lt;br /&gt;
# yum erase openssh-server&lt;/code&gt;&lt;br /&gt;
Debian / Ubuntu Linux user can disable and remove the same with apt-get command:&lt;br /&gt;
&lt;code&gt;# apt-get  remove openssh-server&lt;/code&gt;&lt;br /&gt;
You may need to update your iptables script to remove ssh exception  rule. Under CentOS / RHEL / Fedora edit the files  /etc/sysconfig/iptables and  /etc/sysconfig/ip6tables. Once done &lt;a href=&quot;http://www.cyberciti.biz/faq/howto-rhel-linux-open-port-using-iptables/&quot;&gt;restart iptables&lt;/a&gt; service:&lt;br /&gt;
&lt;code&gt;# service iptables restart&lt;br /&gt;
# service ip6tables restart&lt;/code&gt;&lt;br /&gt;
&lt;h2&gt;#2: Only Use SSH Protocol 2 &lt;/h2&gt;SSH protocol version 1 (SSH-1) has man-in-the-middle attacks problems  and security vulnerabilities. SSH-1 is obsolete and should be avoided  at all cost. Open sshd_config file and make sure the following line  exists:&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;Protocol &lt;span&gt;2&lt;/span&gt;&lt;/pre&gt;&lt;h2&gt;#3: Limit Users&#39; SSH Access&lt;/h2&gt;By default all systems user can login via SSH using their password or  public key. Sometime you create UNIX / Linux user account for ftp or  email purpose. However, those user can login to system using ssh. They  will have full access to system tools including compilers and scripting  languages such as Perl, Python which can open network ports and do many  other fancy things. One of my client has really outdated php script and  an attacker was able to create a new account on the system via a php  script. However, attacker failed to get into box via ssh because it  wasn&#39;t in AllowUsers. &lt;br /&gt;
Only allow root, vivek and jerry user to use the system via SSH, add the following to sshd_config:&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;AllowUsers root vivek jerry&lt;/pre&gt;Alternatively, you can allow all users to login via SSH but deny only a few users, with the following line:&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;DenyUsers saroj anjali foo&lt;/pre&gt;You can also &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-pam-configuration-that-allows-or-deny-login-via-the-sshd-server.html&quot;&gt;configure Linux PAM&lt;/a&gt; allows or deny login via the sshd server. You can allow &lt;a href=&quot;http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html&quot;&gt;list of group name&lt;/a&gt; to access or deny access to the ssh.&lt;br /&gt;
&lt;h2&gt;#4:  Configure Idle Log Out Timeout Interval&lt;/h2&gt;User can login to server via ssh and you can set an idel timeout  interval to avoid unattended ssh session. Open sshd_config and make sure  following values are configured:&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;ClientAliveInterval &lt;span&gt;300&lt;/span&gt;
ClientAliveCountMax &lt;span&gt;0&lt;/span&gt;&lt;/pre&gt;You are setting an idle timeout interval in seconds (300 secs = 5  minutes). After this interval has passed, the idle user will be  automatically kicked out (read as logged out). See &lt;a href=&quot;http://www.cyberciti.biz/faq/linux-unix-login-bash-shell-force-time-outs/&quot;&gt;how to automatically log BASH / TCSH / SSH users&lt;/a&gt; out after a period of inactivity for more details. &lt;br /&gt;
&lt;h2&gt;#5: Disable .rhosts Files&lt;/h2&gt;Don&#39;t read the user&#39;s ~/.rhosts and ~/.shosts files. Update sshd_config with the following settings:&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;IgnoreRhosts yes&lt;/pre&gt;SSH can emulate the behavior of the obsolete rsh command, just disable insecure access via RSH.&lt;br /&gt;
&lt;h2&gt;#6: Disable Host-Based Authentication&lt;/h2&gt;To disable host-based authentication, update sshd_config with the following option:&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;HostbasedAuthentication no&lt;/pre&gt;&lt;h2&gt;#7: Disable root Login via SSH&lt;/h2&gt;There is no need to login as root via ssh over a network. Normal  users can use su or sudo (recommended) to gain root level access. This  also make sure you get full auditing information about who ran  privileged commands on the system via sudo. To disable root login via  SSH, update sshd_config with the following line:&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;PermitRootLogin no&lt;/pre&gt;However, bob made  &lt;a href=&quot;http://archives.neohapsis.com/archives/openbsd/2005-03/2878.html&quot; target=&quot;_blank&quot;&gt;excellent&lt;/a&gt; point:&lt;br /&gt;
&lt;blockquote&gt;Saying &quot;don&#39;t login as root&quot; is h******t. It stems from  the days when people sniffed the first packets of sessions so logging in  as yourself and su-ing decreased the chance an attacker would see the  root pw, and decreast the chance you got spoofed as to your telnet host  target, You&#39;d get your password spoofed but not root&#39;s pw. Gimme a  break. this is 2005 - We have ssh, used properly it&#39;s secure. used  improperly none of this 1989  will make a damn bit of difference. -Bob&lt;/blockquote&gt;&lt;h2&gt;#8: Enable a Warning Banner&lt;/h2&gt;Set a warning banner by updating sshd_config with the following line:&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;Banner /etc/issue&lt;/pre&gt;Sample /etc/issue file:&lt;br /&gt;
&lt;pre&gt;----------------------------------------------------------------------------------------------
You are accessing a XYZ Government (XYZG) Information System (IS) that is provided for authorized use only.
By using this IS (which includes any device attached to this IS), you consent to the following conditions:

+ The XYZG routinely intercepts and monitors communications on this IS for purposes including, but not limited to,
penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM),
law enforcement (LE), and counterintelligence (CI) investigations. 

+ At any time, the XYZG may inspect and seize data stored on this IS.

+ Communications using, or data stored on, this IS are not private, are subject to routine monitoring,
interception, and search, and may be disclosed or used for any XYZG authorized purpose.

+ This IS includes security measures (e.g., authentication and access controls) to protect XYZG interests--not
for your personal benefit or privacy.

+ Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching
or monitoring of the content of privileged communications, or work product, related to personal representation
or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work
product are private and confidential. See User Agreement for details.
----------------------------------------------------------------------------------------------&lt;/pre&gt;Above is standard sample, consult your legal team for exact user agreement and legal notice details.&lt;br /&gt;
&lt;h2&gt;#8: Firewall SSH Port # 22&lt;/h2&gt;You need to firewall ssh port # 22 by updating iptables or pf  firewall configurations. Usually, OpenSSH server must only accept  connections from your LAN or other remote WAN sites only. &lt;br /&gt;
&lt;h3&gt;Netfilter (Iptables) Configuration&lt;/h3&gt;Update /etc/sysconfig/iptables (Redhat and friends specific file) to  accept connection only from 192.168.1.0/24 and 202.54.1.5/29, enter:&lt;br /&gt;
&lt;pre class=&quot;bash&quot;&gt;-A RH-Firewall&lt;span style=&quot;color: black;&quot;&gt;-1&lt;/span&gt;-INPUT -s &lt;span style=&quot;color: black;&quot;&gt;192.168&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.0&lt;/span&gt;/&lt;span style=&quot;color: black;&quot;&gt;24&lt;/span&gt; -m state --state NEW -p tcp --dport &lt;span style=&quot;color: black;&quot;&gt;22&lt;/span&gt; -j ACCEPT
-A RH-Firewall&lt;span style=&quot;color: black;&quot;&gt;-1&lt;/span&gt;-INPUT -s &lt;span style=&quot;color: black;&quot;&gt;202.54&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.5&lt;/span&gt;/&lt;span style=&quot;color: black;&quot;&gt;29&lt;/span&gt; -m state --state NEW -p tcp --dport &lt;span style=&quot;color: black;&quot;&gt;22&lt;/span&gt; -j ACCEPT&lt;/pre&gt;If you&#39;ve dual stacked sshd with IPv6, edit /etc/sysconfig/ip6tables (Redhat and friends specific file), enter:&lt;br /&gt;
&lt;pre class=&quot;bash&quot;&gt;-A RH-Firewall&lt;span style=&quot;color: black;&quot;&gt;-1&lt;/span&gt;-INPUT -s ipv6network::/ipv6mask -m tcp -p tcp --dport &lt;span style=&quot;color: black;&quot;&gt;22&lt;/span&gt; -j ACCEPT&lt;/pre&gt;Replace ipv6network::/ipv6mask with actual IPv6 ranges. &lt;br /&gt;
&lt;h3&gt;*BSD PF Firewall Configuration&lt;/h3&gt;If you are using PF firewall update &lt;a href=&quot;http://bash.cyberciti.biz/firewall/pf-firewall-script/&quot;&gt;/etc/pf.conf&lt;/a&gt; as follows:&lt;br /&gt;
&lt;pre&gt;pass in on $ext_if inet proto tcp from {192.168.1.0/24, 202.54.1.5/29} to $ssh_server_ip port ssh flags S/SA synproxy state&lt;/pre&gt;&lt;h2&gt;#9: Change SSH Port and Limit IP Binding&lt;/h2&gt;By default SSH listen to all available interfaces and IP address on  the system. Limit ssh port binding and change ssh port (by default brute  forcing scripts only try to connects to port # 22).  To bind to  192.168.1.5 and 202.54.1.5 IPs and to port 300, add or correct the  following line:&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;Port &lt;span&gt;300&lt;/span&gt;
ListenAddress &lt;span&gt;192.168&lt;/span&gt;&lt;span&gt;.1&lt;/span&gt;&lt;span&gt;.5&lt;/span&gt;
ListenAddress &lt;span&gt;202.54&lt;/span&gt;&lt;span&gt;.1&lt;/span&gt;&lt;span&gt;.5&lt;/span&gt;&lt;/pre&gt;A better approach to use proactive approaches scripts such as  fail2ban or denyhosts (see below).&lt;br /&gt;
&lt;h2&gt;#10: Use Strong SSH Passwords and Passphrase&lt;/h2&gt;It cannot be stressed enough how important it is to use strong user  passwords and passphrase for your keys. Brute force attack works because  you use dictionary based passwords.  You can force users to avoid  &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-check-passwords-against-a-dictionary-attack.html&quot;&gt;passwords against a dictionary&lt;/a&gt; attack and  use &lt;a href=&quot;http://www.cyberciti.biz/faq/unix-linux-password-cracking-john-the-ripper/&quot;&gt;john the ripper tool&lt;/a&gt; to find out existing weak passwords. Here is a sample random password generator (put in your ~/.bashrc):&lt;br /&gt;
&lt;pre class=&quot;bash&quot;&gt;genpasswd&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;
 &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;local&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;l=&lt;/span&gt;$&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;
        &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;[&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&quot;$l&quot;&lt;/span&gt; == &lt;span style=&quot;color: red;&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;]&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #007800;&quot;&gt;l=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;20&lt;/span&gt;
       &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tr&lt;/span&gt; -&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;dc&lt;/span&gt; A-Za-z0-9_ &amp;lt; /dev/urandom | &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;head&lt;/span&gt; -c &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;l&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; | &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;xargs&lt;/span&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;Run it:&lt;br /&gt;
&lt;code&gt;genpasswd 16&lt;/code&gt;&lt;br /&gt;
Output:&lt;br /&gt;
&lt;pre&gt;uw8CnDVMwC6vOKgW&lt;/pre&gt;&lt;h2&gt;#11:  Use Public Key Based Authentication&lt;/h2&gt;Use public/private key pair with password protection for the private key. See how to use &lt;a href=&quot;http://www.cyberciti.biz/tips/ssh-public-key-based-authentication-how-to.html&quot;&gt;RSA&lt;/a&gt; and &lt;a href=&quot;http://www.cyberciti.biz/faq/ssh-password-less-login-with-dsa-publickey-authentication/&quot;&gt;DSA key&lt;/a&gt; based authentication. Never ever use passphrase free key (passphrase key less) login.&lt;br /&gt;
&lt;h2&gt;#12:  Use  Keychain Based Authentication&lt;/h2&gt;keychain is a special bash script designed to make key-based  authentication incredibly convenient and flexible. It offers various  security benefits over passphrase-free keys. See how to setup and use &lt;a href=&quot;http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/&quot;&gt;keychain software&lt;/a&gt;.&lt;br /&gt;
&lt;h2&gt;#13: Chroot SSHD (Lock Down Users To Their Home Directories)&lt;/h2&gt;By default users are allowed to browse the server directories such as  /etc/, /bin and so on. You can protect ssh, using os based chroot or  use &lt;a href=&quot;http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html&quot;&gt;special tools such as rssh&lt;/a&gt;.  With the release of OpenSSH 4.8p1 or 4.9p1, you no longer have to rely  on third-party hacks such as rssh or complicated chroot(1) setups to  lock users to their home directories. See &lt;a href=&quot;http://www.debian-administration.org/articles/590&quot; target=&quot;_blank&quot;&gt;this blog post&lt;/a&gt; about new ChrootDirectory directive to lock down users to their home directories.&lt;br /&gt;
&lt;h2&gt;#14: Use TCP Wrappers&lt;/h2&gt;TCP Wrapper is a host-based Networking ACL system, used to filter  network access to Internet. OpenSSH does supports TCP wrappers. Just  update your /etc/hosts.allow file as follows to allow SSH only from  192.168.1.2 172.16.23.12 :&lt;br /&gt;
&lt;pre&gt;sshd : 192.168.1.2 172.16.23.12 &lt;/pre&gt;See this &lt;a href=&quot;http://www.cyberciti.biz/faq/tcp-wrappers-hosts-allow-deny-tutorial/&quot;&gt;FAQ about setting and using TCP wrappers&lt;/a&gt; under Linux / Mac OS X and UNIX like operating systems.&lt;br /&gt;
&lt;h2&gt;#15: Disable Empty Passwords&lt;/h2&gt;You need to explicitly disallow remote login from accounts with empty passwords, update sshd_config with the following line:&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;PermitEmptyPasswords no&lt;/pre&gt;&lt;h2&gt;#16: Thwart SSH Crackers (Brute Force Attack)&lt;/h2&gt;Brute force is  a method of defeating a cryptographic scheme by  trying a large number of possibilities using a single or distributed  computer network. To prevents brute force attacks against SSH, use the  following softwares:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/block-ssh-attacks-with-denyhosts/&quot;&gt;DenyHosts&lt;/a&gt;  is a Python based security tool for SSH servers. It is intended to  prevent brute force attacks on SSH servers by monitoring invalid login  attempts in the authentication log and blocking the originating IP  addresses. &lt;/li&gt;
&lt;li&gt;Explains how to setup &lt;a href=&quot;http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/&quot;&gt;DenyHosts&lt;/a&gt; under RHEL / Fedora and CentOS Linux.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.fail2ban.org/&quot; target=&quot;_blank&quot;&gt;Fail2ban&lt;/a&gt; is a similar program that prevents brute force attacks against SSH.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://sshguard.sourceforge.net/&quot; target=&quot;_blank&quot;&gt;security/sshguard-pf&lt;/a&gt; protect hosts from brute force attacks against ssh and other services using pf.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://sshguard.sourceforge.net/&quot; target=&quot;_blank&quot;&gt;security/sshguard-ipfw&lt;/a&gt; protect hosts from brute force attacks against ssh and other services using ipfw.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://sshguard.sourceforge.net/&quot; target=&quot;_blank&quot;&gt;security/sshguard-ipfilter&lt;/a&gt; protect hosts from brute force attacks against ssh and other services using ipfilter.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.bsdconsulting.no/tools/&quot; target=&quot;_blank&quot;&gt;security/sshblock&lt;/a&gt; block abusive SSH login attempts.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://anp.ath.cx/sshit/&quot; target=&quot;_blank&quot;&gt;security/sshit&lt;/a&gt; checks for SSH/FTP bruteforce and blocks given IPs.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.aczoom.com/cms/blockhosts/&quot; target=&quot;_blank&quot;&gt;BlockHosts&lt;/a&gt; Automatic blocking of abusive IP hosts.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://blinkeye.ch/dokuwiki/doku.php/projects/blacklist&quot; target=&quot;_blank&quot;&gt;Blacklist&lt;/a&gt; Get rid of those bruteforce attempts.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.rfxn.com/projects/brute-force-detection/&quot; target=&quot;_blank&quot;&gt;Brute Force Detection&lt;/a&gt;  A modular shell script for parsing application logs and checking for  authentication failures. It does this using a rules system where  application specific options are stored including regular expressions  for each unique auth format.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://savannah.nongnu.org/projects/ipqbdb/&quot; target=&quot;_blank&quot;&gt; IPQ BDB filter&lt;/a&gt; May be considered as a fail2ban lite.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#17: Rate-limit Incoming Port # 22 Connections&lt;/h2&gt;Both netfilter  and pf provides rate-limit option to perform simple throttling on incoming connections on port # 22.&lt;br /&gt;
&lt;h3&gt;Iptables Example&lt;/h3&gt;The following example will drop incoming connections which make more than 5 connection attempts upon port 22 within 60 seconds:&lt;br /&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;#!/bin/bash&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;inet_if=&lt;/span&gt;eth1
&lt;span style=&quot;color: #007800;&quot;&gt;ssh_port=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;22&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -I INPUT -p tcp --dport &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;ssh_port&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -i &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;inet_if&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -m state --state NEW -m recent  --&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;set&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -I INPUT -p tcp --dport &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;ssh_port&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -i &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;inet_if&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -m state --state NEW -m recent  --update --seconds &lt;span style=&quot;color: black;&quot;&gt;60&lt;/span&gt; --hitcount &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt; -j DROP
&amp;nbsp;&lt;/pre&gt;Call above script from your iptables scripts. Another config option:&lt;br /&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A INPUT  -i &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;inet_if&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -p tcp --dport &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;ssh_port&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -m state --state NEW -m limit --limit &lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;/min --limit-burst &lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt; -j ACCEPT
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A INPUT  -i &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;inet_if&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -p tcp --dport &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;ssh_port&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -m state --state ESTABLISHED -j ACCEPT
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A OUTPUT -o &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;inet_if&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -p tcp --sport &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;ssh_port&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -m state --state ESTABLISHED -j ACCEPT
&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;# another one line example&lt;/span&gt;
&lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;# &lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A INPUT -i &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;{&lt;/span&gt;inet_if&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/span&gt; -m state --state NEW,ESTABLISHED,RELATED -p tcp --dport &lt;span style=&quot;color: black;&quot;&gt;22&lt;/span&gt; -m limit --limit &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;/minute --limit-burst &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;-j ACCEPT&lt;/span&gt;&lt;/pre&gt;See iptables man page for more details.&lt;br /&gt;
&lt;h3&gt;*BSD PF Example&lt;/h3&gt;The following will limits the maximum number of connections per  source to 20 and rate limit the number of connections to 15 in a 5  second span. If anyone breaks our rules add them to our abusive_ips  table and block them for making any further connections. Finally, flush  keyword kills all states created by the matching rule which originate  from the host which exceeds these limits.&lt;br /&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #007800;&quot;&gt;sshd_server_ip=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;202.54.1.5&quot;&lt;/span&gt;
table &lt;abusive_ips&gt; persist
block &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;in&lt;/span&gt; quick from &lt;abusive_ips&gt;
pass &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;in&lt;/span&gt; on &lt;span style=&quot;color: #007800;&quot;&gt;$ext_if&lt;/span&gt; proto tcp to &lt;span style=&quot;color: #007800;&quot;&gt;$sshd_server_ip&lt;/span&gt; port &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;ssh&lt;/span&gt; flags S/SA keep state &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;(&lt;/span&gt;max-src-conn &lt;span style=&quot;color: black;&quot;&gt;20&lt;/span&gt;, max-src-conn-rate &lt;span style=&quot;color: black;&quot;&gt;15&lt;/span&gt;/&lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;, overload &lt;abusive_ips&gt; flush&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;)&lt;/span&gt;&lt;/abusive_ips&gt;&lt;/abusive_ips&gt;&lt;/abusive_ips&gt;&lt;/pre&gt;&lt;h2&gt;#18: Use Port Knocking&lt;/h2&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Port_knocking&quot; target=&quot;_blank&quot;&gt;Port knocking&lt;/a&gt;  is a method of externally opening ports on a firewall by generating a  connection attempt on a set of prespecified closed ports. Once a correct  sequence of connection attempts is received, the firewall rules are  dynamically modified to allow the host which sent the connection  attempts to connect over specific port(s). A sample port Knocking  example for ssh using iptables:&lt;br /&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -N stage1
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A stage1 -m recent --remove --name knock
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A stage1 -p tcp --dport &lt;span style=&quot;color: black;&quot;&gt;3456&lt;/span&gt; -m recent --&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;set&lt;/span&gt; --name knock2
&amp;nbsp;
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -N stage2
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A stage2 -m recent --remove --name knock2
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A stage2 -p tcp --dport &lt;span style=&quot;color: black;&quot;&gt;2345&lt;/span&gt; -m recent --&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;set&lt;/span&gt; --name heaven
&amp;nbsp;
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -N door
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A door -m recent --rcheck --seconds &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt; --name knock2 -j stage2
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A door -m recent --rcheck --seconds &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt; --name knock -j stage1
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A door -p tcp --dport &lt;span style=&quot;color: black;&quot;&gt;1234&lt;/span&gt; -m recent --&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;set&lt;/span&gt; --name knock
&amp;nbsp;
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A INPUT -m --state ESTABLISHED,RELATED -j ACCEPT
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A INPUT -p tcp --dport &lt;span style=&quot;color: black;&quot;&gt;22&lt;/span&gt; -m recent --rcheck --seconds &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt; --name heaven -j ACCEPT
&lt;span style=&quot;color: #007800;&quot;&gt;$IPT&lt;/span&gt; -A INPUT -p tcp --syn -j doo&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cipherdyne.org/fwknop/&quot; target=&quot;_blank&quot;&gt;fwknop&lt;/a&gt; is an implementation that combines port knocking and passive OS fingerprinting.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.debian-administration.org/articles/268&quot; target=&quot;_blank&quot;&gt;Multiple-port knocking&lt;/a&gt; Netfilter/IPtables only implementation.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;#19:  Use Log Analyzer&lt;/h2&gt;Read your logs using &lt;a href=&quot;http://nixcraft.com/linux-software/477-howto-linux-monitor-logfiles.html&quot;&gt;logwatch&lt;/a&gt; or &lt;a href=&quot;http://logcheck.org/&quot; target=&quot;_blank&quot;&gt;logcheck&lt;/a&gt;.  These tools make your log reading life easier.  It will go through your  logs for a given period of time and make a report in the areas that you  wish with the detail that you wish. Make sure LogLevel is set to INFO  or DEBUG in sshd_config:&lt;br /&gt;
&lt;pre&gt;LogLevel INFO&lt;/pre&gt;&lt;h2&gt;#20: Patch OpenSSH and Operating Systems&lt;/h2&gt;It is recommended that you use tools such as &lt;a href=&quot;http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/&quot;&gt;yum&lt;/a&gt;, &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-debian-package-management-cheat-sheet.html&quot;&gt;apt-get&lt;/a&gt;, &lt;a href=&quot;http://www.cyberciti.biz/tips/howto-keep-freebsd-system-upto-date.html&quot;&gt;freebsd-update&lt;/a&gt; and others  to keep systems up to date with the latest security patches.&lt;br /&gt;
&lt;h2&gt;Other Options&lt;/h2&gt;To hide openssh version, you need to update source code and compile  openssh again. Make sure following options are enabled in sshd_config:&lt;br /&gt;
&lt;pre&gt;#  Turn on privilege separation
UsePrivilegeSeparation yes
# Prevent the use of insecure home directory and key file permissions
StrictModes yes
# Turn on  reverse name checking
VerifyReverseMapping yes
# Do you need port forwarding?
AllowTcpForwarding no
X11Forwarding no
#  Specifies whether password authentication is allowed.  The default is yes.
PasswordAuthentication no&lt;/pre&gt;Verify your &lt;a href=&quot;http://www.cyberciti.biz/tips/checking-openssh-sshd-configuration-syntax-errors.html&quot;&gt;sshd_config file before&lt;/a&gt; restarting / reloading changes:&lt;br /&gt;
&lt;code&gt;# /usr/sbin/sshd -t&lt;/code&gt;&lt;br /&gt;
Tighter SSH security with &lt;a href=&quot;http://www.linuxjournal.com/article/8957&quot; target=&quot;_blank&quot;&gt;two-factor&lt;/a&gt; or &lt;a href=&quot;https://calomel.org/openssh.html&quot; target=&quot;_blank&quot;&gt;three-factor (or more)&lt;/a&gt; authentication.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/3806373653243382786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/3806373653243382786'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/top-20-openssh-server-best-security.html' title='Top 20 OpenSSH Server Best Security Practices'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-630048326210702005</id><published>2011-01-12T09:15:00.000+05:30</published><updated>2011-01-12T09:15:13.579+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>20 Linux System Monitoring Tools Every SysAdmin Should Know</title><content type='html'>Need to monitor Linux server performance? Try these built-in command  and a few add-on tools. Most Linux distributions are equipped with tons  of monitoring. These tools provide metrics which can be used to get  information about system activities. You can use these tools to find the  possible causes of a performance problem. The commands discussed below  are some of the most basic commands when it comes to system analysis and  debugging server issues such as:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Finding out bottlenecks.&lt;/li&gt;
&lt;li&gt;Disk (storage)  bottlenecks.&lt;/li&gt;
&lt;li&gt;CPU and memory bottlenecks.&lt;/li&gt;
&lt;li&gt;Network bottlenecks.&lt;/li&gt;
&lt;/ol&gt;&lt;span id=&quot;more-4934&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;1&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#1: top - Process Activity Command&lt;/h2&gt;The  top  program provides a dynamic real-time view of a running  system i.e.  actual process activity. By default, it displays the most  CPU-intensive tasks running on the server and updates the list every  five seconds.&lt;br /&gt;
&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_5179&quot; style=&quot;width: 269px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html/top-output&quot; rel=&quot;attachment wp-att-5179&quot;&gt;&lt;img alt=&quot;Fig.01: Linux top command&quot; class=&quot;size-medium wp-image-5179&quot; height=&quot;300&quot; src=&quot;http://files.cyberciti.biz/uploads/tips/2009/06/top-output-269x300.png&quot; title=&quot;Fig.01: Linux top command&quot; width=&quot;269&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;Fig.01: Linux top command&lt;/div&gt;&lt;/div&gt;&lt;h3&gt;Commonly Used Hot Keys&lt;/h3&gt;The top command provides several useful hot keys:&lt;br /&gt;
&lt;table border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;th&gt;Hot Key&lt;/th&gt; &lt;th&gt;Usage&lt;/th&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;t&lt;/td&gt; &lt;td&gt;Displays summary information off and on.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;m&lt;/td&gt; &lt;td&gt;Displays memory information off and on.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;A&lt;/td&gt; &lt;td&gt;Sorts the display by top consumers of various system resources.  Useful for quick identification of performance-hungry tasks on a system.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;f&lt;/td&gt; &lt;td&gt;Enters an interactive configuration screen for top. Helpful for setting up top for a specific task.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;o&lt;/td&gt; &lt;td&gt;Enables you to interactively select the ordering within top.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;r&lt;/td&gt; &lt;td&gt;Issues renice command.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;k&lt;/td&gt; &lt;td&gt;Issues kill command.&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;z&lt;/td&gt; &lt;td&gt;Turn on or off color/mono&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: #003366;&quot;&gt;=&amp;gt; Related:&lt;/span&gt;&lt;/strong&gt; &lt;a href=&quot;http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html&quot;&gt;How do I Find Out Linux CPU Utilization?&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;2&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#2: vmstat - System Activity, Hardware and System Information&lt;/h2&gt;The command vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity.&lt;br /&gt;
&lt;code&gt;# vmstat 3&lt;/code&gt;&lt;br /&gt;
Sample Outputs:&lt;br /&gt;
&lt;pre&gt;procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      0 2540988 522188 5130400    0    0     2    32    4    2  4  1 96  0  0
 1  0      0 2540988 522188 5130400    0    0     0   720 1199  665  1  0 99  0  0
 0  0      0 2540956 522188 5130400    0    0     0     0 1151 1569  4  1 95  0  0
 0  0      0 2540956 522188 5130500    0    0     0     6 1117  439  1  0 99  0  0
 0  0      0 2540940 522188 5130512    0    0     0   536 1189  932  1  0 98  0  0
 0  0      0 2538444 522188 5130588    0    0     0     0 1187 1417  4  1 96  0  0
 0  0      0 2490060 522188 5130640    0    0     0    18 1253 1123  5  1 94  0  0&lt;/pre&gt;&lt;h3&gt;Display Memory Utilization Slabinfo&lt;/h3&gt;&lt;code&gt;# vmstat -m&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;Get Information About Active / Inactive Memory Pages&lt;/h3&gt;&lt;code&gt;# vmstat -a&lt;/code&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: #003366;&quot;&gt;=&amp;gt; Related:&lt;/span&gt;&lt;/strong&gt; &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-resource-utilization-to-detect-system-bottlenecks.html&quot;&gt;How do I find out Linux Resource utilization to detect system bottlenecks?&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;3&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#3: w - Find Out Who Is Logged on And What They Are Doing&lt;/h2&gt;w command displays information about the users currently on the machine, and their processes.&lt;br /&gt;
&lt;code&gt;# w username&lt;br /&gt;
# w vivek&lt;/code&gt;&lt;br /&gt;
Sample Outputs:&lt;br /&gt;
&lt;pre&gt;17:58:47 up 5 days, 20:28,  2 users,  load average: 0.36, 0.26, 0.24
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    10.1.3.145       14:55    5.00s  0.04s  0.02s vim /etc/resolv.conf
root     pts/1    10.1.3.145       17:43    0.00s  0.03s  0.00s w&lt;/pre&gt;&lt;a href=&quot;&quot; name=&quot;4&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;#4: uptime - Tell How Long The System Has Been Running&lt;/h3&gt;The uptime command can be used to see how long the server has been  running. The current time, how long the system has been running, how  many users are currently logged on, and the system load averages for the  past 1, 5, and 15 minutes.&lt;br /&gt;
&lt;code&gt;# uptime&lt;/code&gt;&lt;br /&gt;
Output:&lt;br /&gt;
&lt;pre&gt;18:02:41 up 41 days, 23:42,  1 user,  load average: 0.00, 0.00, 0.00&lt;/pre&gt;1 can be considered as optimal load value. The load can change from  system to system. For a single CPU system 1 - 3 and SMP systems 6-10  load value might be acceptable.&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;5&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#5: ps - Displays The Processes&lt;/h2&gt;ps command will report a snapshot of the current processes. To select all processes use the -A or -e option:&lt;br /&gt;
&lt;code&gt;# ps -A&lt;/code&gt;&lt;br /&gt;
Sample Outputs:&lt;br /&gt;
&lt;pre&gt;PID TTY          TIME CMD
    1 ?        00:00:02 init
    2 ?        00:00:02 migration/0
    3 ?        00:00:01 ksoftirqd/0
    4 ?        00:00:00 watchdog/0
    5 ?        00:00:00 migration/1
    6 ?        00:00:15 ksoftirqd/1
....
.....
 4881 ?        00:53:28 java
 4885 tty1     00:00:00 mingetty
 4886 tty2     00:00:00 mingetty
 4887 tty3     00:00:00 mingetty
 4888 tty4     00:00:00 mingetty
 4891 tty5     00:00:00 mingetty
 4892 tty6     00:00:00 mingetty
 4893 ttyS1    00:00:00 agetty
12853 ?        00:00:00 cifsoplockd
12854 ?        00:00:00 cifsdnotifyd
14231 ?        00:10:34 lighttpd
14232 ?        00:00:00 php-cgi
54981 pts/0    00:00:00 vim
55465 ?        00:00:00 php-cgi
55546 ?        00:00:00 bind9-snmp-stat
55704 pts/1    00:00:00 ps&lt;/pre&gt;ps is just like top but provides more information.&lt;br /&gt;
&lt;h3&gt;Show Long Format Output&lt;/h3&gt;&lt;code&gt;# ps -Al&lt;/code&gt;&lt;br /&gt;
To turn on  extra full mode (it will show command line arguments passed to process):&lt;br /&gt;
&lt;code&gt;# ps -AlF&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;To See Threads ( LWP and NLWP)&lt;/h3&gt;&lt;code&gt;# ps -AlFH&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;To See Threads After Processes&lt;/h3&gt;&lt;code&gt;# ps -AlLm&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;Print All Process On The Server&lt;/h3&gt;&lt;code&gt;# ps ax&lt;br /&gt;
# ps axu&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;Print A Process Tree&lt;/h3&gt;&lt;code&gt;#  ps -ejH&lt;br /&gt;
#  ps axjf&lt;br /&gt;
#  pstree&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;Print Security Information&lt;/h3&gt;&lt;code&gt;# ps -eo euser,ruser,suser,fuser,f,comm,label&lt;br /&gt;
# ps axZ&lt;br /&gt;
# ps -eM&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;See Every Process Running As User Vivek&lt;/h3&gt;&lt;code&gt;# ps -U vivek -u vivek u&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;Set Output In a User-Defined Format&lt;/h3&gt;&lt;code&gt;# ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm&lt;br /&gt;
# ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm&lt;br /&gt;
# ps -eopid,tt,user,fname,tmout,f,wchan&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;Display Only The Process IDs of Lighttpd&lt;/h3&gt;&lt;code&gt;# ps -C lighttpd -o pid=&lt;/code&gt;&lt;br /&gt;
OR&lt;br /&gt;
&lt;code&gt;# pgrep lighttpd&lt;/code&gt;&lt;br /&gt;
OR&lt;br /&gt;
&lt;code&gt;# pgrep -u vivek php-cgi&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;Display The Name of PID 55977&lt;/h3&gt;&lt;code&gt;# ps -p 55977 -o comm=&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;Find Out The Top 10 Memory Consuming Process&lt;/h3&gt;&lt;code&gt;# ps -auxf | sort -nr -k 4 | head -10&lt;/code&gt;&lt;br /&gt;
&lt;h3&gt;Find Out top 10 CPU Consuming Process&lt;/h3&gt;&lt;code&gt;# ps -auxf | sort -nr -k 3 | head -10&lt;/code&gt;&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;6&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#6: free - Memory Usage&lt;/h2&gt;The command free displays the total amount of free and used physical  and swap memory in the system, as well as the buffers used by the  kernel.&lt;br /&gt;
&lt;code&gt;# free &lt;/code&gt;&lt;br /&gt;
Sample Output:&lt;br /&gt;
&lt;pre&gt;total       used       free     shared    buffers     cached
Mem:      12302896    9739664    2563232          0     523124    5154740
-/+ buffers/cache:    4061800    8241096
Swap:      1052248          0    1052248&lt;/pre&gt;&lt;strong&gt;&lt;span style=&quot;color: #003366;&quot;&gt;=&amp;gt; Related:&lt;/span&gt;&lt;/strong&gt; :&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/linux-check-the-size-of-pagesize/&quot;&gt;Linux Find Out Virtual Memory PAGESIZE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/cpu-usage-limiter-for-linux/&quot;&gt;Linux Limit CPU Usage Per Process&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/how-much-ram-does-my-linux-system.html&quot;&gt;How much RAM does my Ubuntu / Fedora Linux desktop PC have?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;a href=&quot;&quot; name=&quot;7&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#7: iostat -  Average CPU Load, Disk Activity&lt;/h2&gt;The command iostat report Central Processing Unit (CPU) statistics  and input/output statistics for devices, partitions and network  filesystems (NFS).&lt;br /&gt;
&lt;code&gt;# iostat &lt;/code&gt;&lt;br /&gt;
Sample Outputs:&lt;br /&gt;
&lt;pre&gt;Linux 2.6.18-128.1.14.el5 (www03.nixcraft.in)  06/26/2009

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           3.50    0.09    0.51    0.03    0.00   95.86

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sda              22.04        31.88       512.03   16193351  260102868
sda1              0.00         0.00         0.00       2166        180
sda2             22.04        31.87       512.03   16189010  260102688
sda3              0.00         0.00         0.00       1615          0&lt;/pre&gt;&lt;strong&gt;&lt;span style=&quot;color: #003366;&quot;&gt;=&amp;gt; Related:&lt;/span&gt;&lt;/strong&gt; : &lt;a href=&quot;http://www.cyberciti.biz/faq/howto-linux-track-nfs-client-disk-metrics/&quot;&gt;Linux Track NFS Directory / Disk I/O Stats&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;8&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#8: sar - Collect and Report System Activity&lt;/h2&gt;The sar command is used to collect, report, and save system activity information. To see network counter, enter:&lt;br /&gt;
&lt;code&gt;# sar -n DEV | more&lt;/code&gt;&lt;br /&gt;
To display the network counters from the 24th:&lt;br /&gt;
&lt;code&gt;# sar -n DEV -f /var/log/sa/sa24 | more&lt;/code&gt;&lt;br /&gt;
You can also display real time usage using sar:&lt;br /&gt;
&lt;code&gt;# sar 4 5&lt;/code&gt;&lt;br /&gt;
Sample Outputs:&lt;br /&gt;
&lt;pre&gt;Linux 2.6.18-128.1.14.el5 (www03.nixcraft.in)   06/26/2009

06:45:12 PM       CPU     %user     %nice   %system   %iowait    %steal     %idle
06:45:16 PM       all      2.00      0.00      0.22      0.00      0.00     97.78
06:45:20 PM       all      2.07      0.00      0.38      0.03      0.00     97.52
06:45:24 PM       all      0.94      0.00      0.28      0.00      0.00     98.78
06:45:28 PM       all      1.56      0.00      0.22      0.00      0.00     98.22
06:45:32 PM       all      3.53      0.00      0.25      0.03      0.00     96.19
Average:          all      2.02      0.00      0.27      0.01      0.00     97.70&lt;/pre&gt;&lt;strong&gt;&lt;span style=&quot;color: #003366;&quot;&gt;=&amp;gt; Related:&lt;/span&gt;&lt;/strong&gt; :  &lt;a href=&quot;http://www.cyberciti.biz/tips/howto-write-system-utilization-data-to-file.html&quot;&gt;How to collect Linux system utilization data into a file&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;9&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#9: mpstat -  Multiprocessor Usage&lt;/h2&gt;The  mpstat  command displays activities for each available  processor, processor 0 being the first one.  mpstat -P ALL to display  average CPU utilization per processor:&lt;br /&gt;
&lt;code&gt;# mpstat -P ALL&lt;/code&gt;&lt;br /&gt;
Sample Output:&lt;br /&gt;
&lt;pre&gt;Linux 2.6.18-128.1.14.el5 (www03.nixcraft.in)   06/26/2009

06:48:11 PM  CPU   %user   %nice    %sys %iowait    %irq   %soft  %steal   %idle    intr/s
06:48:11 PM  all    3.50    0.09    0.34    0.03    0.01    0.17    0.00   95.86   1218.04
06:48:11 PM    0    3.44    0.08    0.31    0.02    0.00    0.12    0.00   96.04   1000.31
06:48:11 PM    1    3.10    0.08    0.32    0.09    0.02    0.11    0.00   96.28     34.93
06:48:11 PM    2    4.16    0.11    0.36    0.02    0.00    0.11    0.00   95.25      0.00
06:48:11 PM    3    3.77    0.11    0.38    0.03    0.01    0.24    0.00   95.46     44.80
06:48:11 PM    4    2.96    0.07    0.29    0.04    0.02    0.10    0.00   96.52     25.91
06:48:11 PM    5    3.26    0.08    0.28    0.03    0.01    0.10    0.00   96.23     14.98
06:48:11 PM    6    4.00    0.10    0.34    0.01    0.00    0.13    0.00   95.42      3.75
06:48:11 PM    7    3.30    0.11    0.39    0.03    0.01    0.46    0.00   95.69     76.89&lt;/pre&gt;&lt;strong&gt;&lt;span style=&quot;color: #003366;&quot;&gt;=&amp;gt; Related:&lt;/span&gt;&lt;/strong&gt; : &lt;a href=&quot;http://www.cyberciti.biz/faq/linux-mpstat-command-report-processors-related-statistics/&quot;&gt;Linux display each multiple SMP CPU processors utilization individually&lt;/a&gt;.&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;10&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#10: pmap - Process Memory Usage&lt;/h2&gt;The command pmap report memory map of a process. Use this command to find out causes of memory bottlenecks.&lt;br /&gt;
&lt;code&gt;# pmap -d PID&lt;/code&gt;&lt;br /&gt;
To display process memory information for pid # 47394, enter:&lt;br /&gt;
&lt;code&gt;# pmap -d 47394&lt;/code&gt;&lt;br /&gt;
Sample Outputs:&lt;br /&gt;
&lt;pre&gt;47394:   /usr/bin/php-cgi
Address           Kbytes Mode  Offset           Device    Mapping
0000000000400000    2584 r-x-- 0000000000000000 008:00002 php-cgi
0000000000886000     140 rw--- 0000000000286000 008:00002 php-cgi
00000000008a9000      52 rw--- 00000000008a9000 000:00000   [ anon ]
0000000000aa8000      76 rw--- 00000000002a8000 008:00002 php-cgi
000000000f678000    1980 rw--- 000000000f678000 000:00000   [ anon ]
000000314a600000     112 r-x-- 0000000000000000 008:00002 ld-2.5.so
000000314a81b000       4 r---- 000000000001b000 008:00002 ld-2.5.so
000000314a81c000       4 rw--- 000000000001c000 008:00002 ld-2.5.so
000000314aa00000    1328 r-x-- 0000000000000000 008:00002 libc-2.5.so
000000314ab4c000    2048 ----- 000000000014c000 008:00002 libc-2.5.so
.....
......
..
00002af8d48fd000       4 rw--- 0000000000006000 008:00002 xsl.so
00002af8d490c000      40 r-x-- 0000000000000000 008:00002 libnss_files-2.5.so
00002af8d4916000    2044 ----- 000000000000a000 008:00002 libnss_files-2.5.so
00002af8d4b15000       4 r---- 0000000000009000 008:00002 libnss_files-2.5.so
00002af8d4b16000       4 rw--- 000000000000a000 008:00002 libnss_files-2.5.so
00002af8d4b17000  768000 rw-s- 0000000000000000 000:00009 zero (deleted)
00007fffc95fe000      84 rw--- 00007ffffffea000 000:00000   [ stack ]
ffffffffff600000    8192 ----- 0000000000000000 000:00000   [ anon ]
mapped: 933712K    writeable/private: 4304K    shared: 768000K&lt;/pre&gt;The last line is very important:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;mapped: 933712K&lt;/strong&gt; total amount of memory mapped to files&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;writeable/private: 4304K&lt;/strong&gt; the amount of private address space&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;shared: 768000K&lt;/strong&gt; the amount of address space this process is sharing with others&lt;/li&gt;
&lt;/ul&gt;&lt;strong&gt;&lt;span style=&quot;color: #003366;&quot;&gt;=&amp;gt; Related:&lt;/span&gt;&lt;/strong&gt; : &lt;a href=&quot;http://www.cyberciti.biz/tips/howto-find-memory-used-by-program.html&quot;&gt;Linux find the memory used by a program / process using pmap command&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;11&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#11 and #12: netstat and ss -  Network Statistics&lt;/h2&gt;The command netstat displays network connections, routing tables,  interface statistics, masquerade connections, and multicast memberships.   ss command is used to dump socket statistics. It allows showing  information similar to netstat. See the following resources about ss and  netstat commands:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/linux-investigate-sockets-network-connections.html&quot;&gt;ss: Display Linux TCP / UDP Network and Socket Information&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/netstat-command-tutorial-examples.html&quot;&gt;Get Detailed Information About Particular IP address Connections Using netstat Command&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;a href=&quot;&quot; name=&quot;13&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#13: iptraf - Real-time Network Statistics&lt;/h2&gt;The iptraf command is interactive colorful IP LAN monitor.  It is an  ncurses-based IP LAN monitor that generates various network statistics  including TCP info, UDP counts, ICMP and OSPF information, Ethernet load  info, node stats, IP checksum errors, and others. It can provide the  following info in easy to read format:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Network traffic statistics by TCP connection&lt;/li&gt;
&lt;li&gt;IP traffic statistics by network interface&lt;/li&gt;
&lt;li&gt;Network traffic statistics by protocol&lt;/li&gt;
&lt;li&gt;Network traffic statistics by TCP/UDP port and by packet size&lt;/li&gt;
&lt;li&gt;Network traffic statistics by Layer2 address&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_5196&quot; style=&quot;width: 600px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html/iptraf3&quot; rel=&quot;attachment wp-att-5196&quot;&gt;&lt;img alt=&quot;Fig.02: General interface statistics: IP traffic statistics by network interface &quot; class=&quot;size-full wp-image-5196&quot; height=&quot;347&quot; src=&quot;http://files.cyberciti.biz/uploads/tips/2009/06/iptraf3.png&quot; title=&quot;Fig.02: General interface statistics: IP traffic statistics by network interface &quot; width=&quot;600&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;Fig.02: General interface statistics: IP traffic statistics by network interface &lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_5195&quot; style=&quot;width: 600px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html/iptraf2&quot; rel=&quot;attachment wp-att-5195&quot;&gt;&lt;img alt=&quot;Fig.03 Network traffic statistics by TCP connection&quot; class=&quot;size-full wp-image-5195&quot; height=&quot;416&quot; src=&quot;http://files.cyberciti.biz/uploads/tips/2009/06/iptraf2.png&quot; title=&quot;Fig.03 Network traffic statistics by TCP connection&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;Fig.03 Network traffic statistics by TCP connection&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;&quot; name=&quot;14&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#14: tcpdump - Detailed Network Traffic Analysis&lt;/h2&gt;The tcpdump is simple command that dump traffic on a network.  However, you need good understanding of TCP/IP protocol to utilize this  tool.  For.e.g to display traffic info about DNS, enter:&lt;br /&gt;
&lt;code&gt;# tcpdump -i eth1 &#39;udp port 53&#39;&lt;/code&gt;&lt;br /&gt;
To display all IPv4 HTTP packets to and from port 80, i.e. print only  packets that contain data, not, for example, SYN and FIN packets and  ACK-only packets, enter:&lt;br /&gt;
&lt;code&gt;# tcpdump &#39;tcp port 80 and (((ip[2:2] - ((ip[0]&amp;amp;0xf)&amp;lt;&amp;lt;2)) - ((tcp[12]&amp;amp;0xf0)&amp;gt;&amp;gt;2)) != 0)&#39;&lt;/code&gt;&lt;br /&gt;
To display all FTP session to 202.54.1.5, enter:&lt;br /&gt;
&lt;code&gt;# tcpdump -i eth1 &#39;dst 202.54.1.5 and (port 21 or 20&#39;&lt;/code&gt;&lt;br /&gt;
To display all HTTP session to 192.168.1.5:&lt;br /&gt;
&lt;code&gt;# tcpdump -ni eth0 &#39;dst 192.168.1.5 and tcp and port http&#39;&lt;/code&gt;&lt;br /&gt;
Use &lt;a href=&quot;http://www.cyberciti.biz/faq/linux-unix-bsd-apache-tcpdump-http-packets-sniffing/&quot;&gt;wireshark to view detailed&lt;/a&gt; information about files, enter:&lt;br /&gt;
&lt;code&gt;# tcpdump -n -i eth1 -s 0 -w output.txt src or dst port 80&lt;/code&gt;&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;15&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#15: strace -  System Calls&lt;/h2&gt;Trace system calls and signals. This is useful for debugging  webserver and other server problems. See how to use to &lt;a href=&quot;http://www.cyberciti.biz/tips/linux-strace-command-examples.html&quot;&gt;trace the process and&lt;/a&gt; see What it is doing.&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;16&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#16: /Proc file system - Various Kernel Statistics&lt;/h2&gt;/proc file system provides detailed information about various hardware devices and other Linux kernel information. See &lt;a href=&quot;http://www.cyberciti.biz/files/linux-kernel/Documentation/filesystems/proc.txt&quot;&gt;Linux kernel /proc&lt;/a&gt; documentations for further details. Common /proc examples:&lt;br /&gt;
&lt;code&gt;# cat /proc/cpuinfo&lt;br /&gt;
# cat /proc/meminfo&lt;br /&gt;
# cat /proc/zoneinfo&lt;br /&gt;
# cat /proc/mounts&lt;/code&gt;&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;17&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;17#: Nagios - Server And Network Monitoring&lt;/h2&gt;&lt;a href=&quot;http://www.nagios.org/&quot; target=&quot;_blank&quot;&gt;Nagios&lt;/a&gt; is a  popular open source computer system and network monitoring application  software. You can easily monitor all your hosts, network equipment and  services. It can send alert when things go wrong and again when they get  better. &lt;a href=&quot;http://fannagioscd.sourceforge.net/drupal/&quot; target=&quot;_blank&quot;&gt;FAN is&lt;/a&gt;   &quot;Fully Automated Nagios&quot;. FAN goals are to provide a Nagios  installation including most tools provided by the Nagios Community. FAN  provides a CDRom image in the standard ISO format, making it easy to  easilly install a Nagios server. Added to this, a wide bunch of tools  are including to the distribution, in order to improve the user  experience around Nagios.&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;18&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;18#: Cacti -  Web-based Monitoring Tool&lt;/h2&gt;Cacti is a complete network graphing solution designed to harness the  power of RRDTool&#39;s data storage and graphing functionality. Cacti  provides a fast poller, advanced graph templating, multiple data  acquisition methods, and user management features out of the box. All of  this is wrapped in an intuitive, easy to use interface that makes sense  for LAN-sized installations up to complex networks with hundreds of  devices. It can provide data about network, CPU, memory, logged in  users, Apache, DNS servers and much more. See how &lt;a href=&quot;http://www.cyberciti.biz/faq/fedora-rhel-install-cacti-monitoring-rrd-software/&quot;&gt;to install and configure Cacti network graphing&lt;/a&gt; tool under CentOS / RHEL.&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;19&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#19: KDE System Guard -  Real-time Systems Reporting and Graphing&lt;/h2&gt;KSysguard is a network enabled task and system monitor application  for KDE desktop. This tool can be run over ssh session. It provides lots  of features such as  a client/server architecture that enables  monitoring of local and remote hosts. The graphical front end uses  so-called sensors to retrieve the information it displays. A sensor can  return simple values or more complex information like tables. For each  type of information, one or more displays are provided. Displays are  organized in worksheets that can be saved and loaded independently from  each other. So, KSysguard is not only a simple task manager but also a  very powerful tool to control large server farms.&lt;br /&gt;
&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_5215&quot; style=&quot;width: 600px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html/kde-systemguard-screenshot&quot; rel=&quot;attachment wp-att-5215&quot;&gt;&lt;img alt=&quot;Fig.05 KDE System Guard&quot; class=&quot;size-full wp-image-5215&quot; height=&quot;462&quot; src=&quot;http://files.cyberciti.biz/uploads/tips/2009/06/kde-systemguard-screenshot.png&quot; title=&quot;Fig.05 KDE System Guard KDE task manager and performance monitor.&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;Fig.05 KDE System Guard {Image credit: Wikipedia}&lt;/div&gt;&lt;/div&gt;See &lt;a href=&quot;http://docs.kde.org/stable/en/kdebase-workspace/ksysguard/index.html&quot;&gt;the KSysguard handbook&lt;/a&gt; for detailed usage.&lt;br /&gt;
&lt;a href=&quot;&quot; name=&quot;20&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;#20: Gnome System Monitor - Real-time Systems Reporting and Graphing&lt;/h2&gt;The System Monitor application enables you to display basic system  information and monitor system processes, usage of system resources, and  file systems. You can also use System Monitor to modify the behavior of  your system. Although not as powerful as the KDE System Guard,  it  provides the basic information which may be useful for new users:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt; Displays various basic information about the computer&#39;s hardware and software.&lt;/li&gt;
&lt;li&gt; Linux Kernel version&lt;/li&gt;
&lt;li&gt; GNOME version&lt;/li&gt;
&lt;li&gt; Hardware&lt;/li&gt;
&lt;li&gt; Installed memory&lt;/li&gt;
&lt;li&gt; Processors and speeds&lt;/li&gt;
&lt;li&gt; System Status&lt;/li&gt;
&lt;li&gt; Currently available disk space&lt;/li&gt;
&lt;li&gt; Processes&lt;/li&gt;
&lt;li&gt; Memory and swap space&lt;/li&gt;
&lt;li&gt; Network usage&lt;/li&gt;
&lt;li&gt; File Systems&lt;/li&gt;
&lt;li&gt; Lists all mounted filesystems along with basic information about each.&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_5220&quot; style=&quot;width: 600px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html/gnome-system-monitor&quot; rel=&quot;attachment wp-att-5220&quot;&gt;&lt;img alt=&quot;Fig.06 The Gnome System Monitor application&quot; class=&quot;size-full wp-image-5220&quot; height=&quot;451&quot; src=&quot;http://files.cyberciti.biz/uploads/tips/2009/06/gnome-system-monitor.png&quot; title=&quot;Fig.06 The Gnome System Monitor application&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;Fig.06 The Gnome System Monitor application&lt;/div&gt;&lt;/div&gt;&lt;h2&gt;Bonus: Additional Tools&lt;/h2&gt;A few more tools: &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/linux-scanning-network-for-open-ports.html&quot;&gt;nmap&lt;/a&gt; - scan your server for open ports.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/tag/lsof-command&quot;&gt;lsof&lt;/a&gt; - list open files, network connections and much more.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/faq/debian-ubuntu-install-ntop-network-traffic-monitoring-software/&quot; title=&quot;Debian / Ubuntu Linux Install ntop To See Network Usage / Network Status&quot;&gt;ntop&lt;/a&gt;  web based tool -  ntop is the best tool to see network usage in a way  similar to what top command does for processes i.e. it is network  traffic monitoring software. You can see network status, protocol wise  distribution of traffic for UDP, TCP, DNS, HTTP and other protocols.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://conky.sourceforge.net/&quot; target=&quot;_blank&quot;&gt;Conky&lt;/a&gt; -  Another good monitoring tool for the X Window System. It is highly  configurable and is able to monitor many system variables including the  status of the CPU, memory, swap space, disk storage, temperatures,  processes, network interfaces, battery power, system messages, e-mail  inboxes etc. &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html&quot; target=&quot;_blank&quot;&gt;GKrellM&lt;/a&gt;  - It can be used to monitor the status of CPUs, main memory, hard  disks, network interfaces, local and remote mailboxes, and many other  things.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/keeping-a-log-of-daily-network-traffic-for-adsl-or-dedicated-remote-linux-box.html&quot;&gt;vnstat&lt;/a&gt;  - vnStat is a console-based network traffic monitor. It keeps a log of  hourly, daily and monthly network traffic for the selected interface(s).&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://htop.sourceforge.net/&quot; target=&quot;_blank&quot;&gt;htop&lt;/a&gt; - htop is an enhanced version of top, the interactive process viewer, which can display the list of processes in a tree form.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/finding-out-a-bad-or-simply-overloaded-network-link-with-linuxunix-oses.html&quot;&gt;mtr&lt;/a&gt; -  mtr combines the functionality of the traceroute and ping programs in a single network diagnostic tool.&lt;/li&gt;
&lt;/ul&gt;Did I miss something? Please add your favorite system motoring tool in the comments.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/630048326210702005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/630048326210702005'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/20-linux-system-monitoring-tools-every.html' title='20 Linux System Monitoring Tools Every SysAdmin Should Know'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-5012761496566465728</id><published>2011-01-12T09:07:00.000+05:30</published><updated>2011-01-12T09:07:18.648+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Top 5 Linux Video Editor Software</title><content type='html'>&#39;m looking for a free video editor similar to - Adobe Premiere Pro,  Apple iMovie, Final Cut Pro or Microsoft Movie Maker under Linux Desktop  operating system. My tasks are pretty simple such as cutting,  filtering, and encoding tasks etc. Can you provide me a list of FOSS  software which can be used for video capture and video editing purposes  under Fedora or Ubuntu Linux desktop systems?&lt;br /&gt;
&lt;span id=&quot;more-4862&quot;&gt;&lt;/span&gt;&lt;br /&gt;
A non-linear editing system (NLE) is a video editing (NLVE) or audio  editing (NLAE) system which can provide editing method for video clips  or frams. You will be able to access any frame in a video clip.  Non-linear editing is done  for film and television post-production.  However, the cost of editing system gone down and non-linear editing  tools (including software) are now within the reach of most home users.  &lt;br /&gt;
MS-Windows PC included Windows Movie Maker and Apple computer comes  with iMovie. Most Linux based  editing software can now be downloaded  free of charge from the Internet. You also need a video capture card and  a FireWire connection to capture digital video from a DV camera. &lt;br /&gt;
&lt;h2&gt;Avidemux&lt;/h2&gt;Avidemux is a free video editor designed for simple cutting,  filtering and encoding tasks. It supports many file types, including  AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs.  Tasks can be automated using projects, job queue and powerful scripting  capabilities. Avidemux is available for Linux, BSD, Mac OS X and  Microsoft Windows under the GNU GPL license.&lt;br /&gt;
&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_4883&quot; style=&quot;width: 595px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/faq/top5-linux-video-editing-system-software/ubuntu-avidemux-video-editor/&quot; rel=&quot;attachment wp-att-4883&quot;&gt;&lt;img alt=&quot;Fig.01: Avidemux in Action under Ubuntu (image credit: Wikipedia)&quot; class=&quot;size-full wp-image-4883&quot; height=&quot;452&quot; src=&quot;http://files.cyberciti.biz/uploads/faq/2009/08/ubuntu-avidemux-video-editor.png&quot; title=&quot;Ubuntu Linux Avidemux Video Editor Software&quot; width=&quot;595&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;Fig.01: Avidemux in Action under Ubuntu (image credit: Wikipedia)&lt;/div&gt;&lt;/div&gt;&lt;h3&gt;How Do I Install Avidemux Under Debian / Ubuntu Linux Desktop?&lt;/h3&gt;Type the following command:&lt;br /&gt;
&lt;code&gt;$ sudo apt-get install avidemux&lt;/code&gt;&lt;br /&gt;
&lt;h4&gt;Embedding The Subtitles to AVI By Using Avidemux&lt;/h4&gt;&lt;center&gt;&lt;/center&gt; =&amp;gt; &lt;a href=&quot;http://avidemux.sourceforge.net/&quot;&gt;Download Avidemux&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Cinelerra&lt;/h2&gt;Cinelerra is the most advanced non-linear video editor and compositor  for Linux. Cinelerra also includes a video compositing engine, allowing  the user to perform common compositing operations such as keying and  mattes. Cinelerra includes support for very high-fidelity audio and  video: it processes audio using 64 bits of precision, and can work in  both RGBA and YUVA color spaces, using floating-point and 16-bit integer  representations, respectively. It is resolution and frame  rate-independent, meaning that it can support video of any speed and  size.&lt;br /&gt;
&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_4873&quot; style=&quot;width: 595px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/faq/top5-linux-video-editing-system-software/cinelerra-non-linear-video-editing/&quot; rel=&quot;attachment wp-att-4873&quot;&gt;&lt;img alt=&quot;Fig.02: Cinelerra Rendering in Action (credit Cinelerra project)&quot; class=&quot;size-full wp-image-4873&quot; height=&quot;575&quot; src=&quot;http://files.cyberciti.biz/uploads/faq/2009/08/cinelerra-non-linear-video-editing.jpg&quot; title=&quot;Cinelerra Professional Non-linear Video Editing System For Linux&quot; width=&quot;595&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;Fig.02: Cinelerra Rendering in Action (credit Cinelerra project)&lt;/div&gt;&lt;/div&gt;&lt;h4&gt;Video editing in Ubuntu Using Cinelerra Part 1&lt;/h4&gt;&lt;center&gt;&lt;/center&gt; &lt;h4&gt;Cinelerra Tutorial Capturing Desktop Screens&lt;/h4&gt;&lt;center&gt;&lt;/center&gt; =&amp;gt; &lt;a href=&quot;http://www.heroinewarrior.com/cinelerra.php&quot; target=&quot;_blank&quot;&gt;Download Cinelerra&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Kdenlive&lt;/h2&gt;Kdenlive is an intuitive and powerful multi-track video editor,  including most recent video technologies. Kdenlive supports all of the  formats supported by FFmpeg (such as QuickTime, AVI, WMV, MPEG, and  Flash Video), and also supports 4:3 and 16:9 aspect ratios for both PAL,  NTSC and various HD standards, including HDV. Video can also be  exported to DV devices, or written to a DVD with chapters and a simple  menu. Kdenlive packages are freely available for GNU/Linux, FreeBSD and  Mac OS X under the terms of GNU General Public License version 2 or any  version later.&lt;br /&gt;
&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_4870&quot; style=&quot;width: 595px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/faq/top5-linux-video-editing-system-software/kdenlive-linux-non-linear-video-editor-software/&quot; rel=&quot;attachment wp-att-4870&quot;&gt;&lt;img alt=&quot;Fig.03: Kdenlive in Action (credit: Kdenlive project)&quot; class=&quot;size-full wp-image-4870&quot; height=&quot;418&quot; src=&quot;http://files.cyberciti.biz/uploads/faq/2009/08/kdenlive-linux-non-linear-video-editor-software.png&quot; title=&quot;Kdenlive: Linux Video Editor Software To Mix Mix video, audio and images&quot; width=&quot;595&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;Fig.03: Kdenlive in Action (credit: Kdenlive project)&lt;/div&gt;&lt;/div&gt;&lt;h3&gt;How Do I Install Kdenlive Under Debian / Ubuntu Linux Desktop?&lt;/h3&gt;Type the following command:&lt;br /&gt;
&lt;code&gt;$ sudo apt-get install kdenlive&lt;/code&gt;&lt;br /&gt;
&lt;h4&gt;Video Effects &amp;amp; Stacking - Kdenlive 0.7 - Ubuntu 8.10&lt;/h4&gt;&lt;center&gt;&lt;/center&gt; =&amp;gt; &lt;a href=&quot;http://kdenlive.org/&quot; target=&quot;_blank&quot;&gt;Download Kdenlive&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Kino&lt;/h2&gt;Kino is a non-linear DV editor for GNU/Linux. It features excellent  integration with IEEE-1394 for capture, VTR control, and recording back  to the camera. It captures video to disk in Raw DV and AVI format, in  both type-1 DV and type-2 DV (separate audio stream) encodings.&lt;br /&gt;
&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_4878&quot; style=&quot;width: 595px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/faq/top5-linux-video-editing-system-software/kino-gtk-gnome-based-non-linear-digital-video-editor/&quot; rel=&quot;attachment wp-att-4878&quot;&gt;&lt;img alt=&quot;Fig.04: Kino Main Window (image credit - Kino porject)&quot; class=&quot;size-full wp-image-4878&quot; height=&quot;534&quot; src=&quot;http://files.cyberciti.biz/uploads/faq/2009/08/kino-GTK-gnome-based-non-linear-digital-video-editor.png&quot; title=&quot;Linux Kino  GTK Gnome Based Non Linear Digital Video Editor&quot; width=&quot;595&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;Fig.04: Kino Main Window (image credit - Kino porject)&lt;/div&gt;&lt;/div&gt;&lt;h3&gt;How Do I Install Kino Under Debian / Ubuntu Linux Desktop?&lt;/h3&gt;Type the following command:&lt;br /&gt;
&lt;code&gt;$ sudo apt-get install kino&lt;/code&gt;&lt;br /&gt;
&lt;h4&gt;LINUX video capture - KINO Tutorial&lt;/h4&gt;&lt;center&gt;&lt;/center&gt; =&amp;gt; &lt;a href=&quot;http://kinodv.org/&quot; target=&quot;_blank&quot;&gt;Download Kino&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;LiVES&lt;/h2&gt;LiVES (LiVES is a Video Editing System)  is a free software video  editing program and VJ tool. LiVES mixes realtime video performance and  non-linear editing in one professional quality application. It will let  you start editing and making video right away, without having to worry  about formats, frame sizes, or framerates. It is a very flexible tool  which is used by both professional VJ&#39;s and video editors - mix and  switch clips from the keyboard, use dozens of realtime effects, trim and  edit your clips in the clip editor, and bring them together using the  multitrack timeline. You can even record your performance in real time,  and then edit it further or render it straight away.&lt;br /&gt;
For the more technically minded, the application is frame and sample  accurate, and it can be controlled remotely or scripted for use as a  video server. And it supports all of the latest free standards.&lt;br /&gt;
&lt;div class=&quot;wp-caption aligncenter&quot; id=&quot;attachment_4867&quot; style=&quot;width: 595px;&quot;&gt;  &lt;a href=&quot;http://www.cyberciti.biz/faq/top5-linux-video-editing-system-software/linux-lives-video-editor/&quot; rel=&quot;attachment wp-att-4867&quot;&gt;&lt;img alt=&quot;Fig.05: Lives: Linux Video Editing System (Image: Lives project)&quot; class=&quot;size-full wp-image-4867&quot; height=&quot;450&quot; src=&quot;http://files.cyberciti.biz/uploads/faq/2009/08/linux-lives-video-editor.png&quot; title=&quot;Lives: Linux Video Editing System&quot; width=&quot;595&quot; /&gt;&lt;/a&gt;  &lt;div class=&quot;wp-caption-text&quot;&gt;Fig.05: Lives: Linux Video Editing System (Image: Lives project)&lt;/div&gt;&lt;/div&gt;&lt;h4&gt;Demo made using LiVES Software&lt;/h4&gt;&lt;center&gt;&lt;/center&gt; =&amp;gt; &lt;a href=&quot;http://lives.sourceforge.net/&quot; target=&quot;_blank&quot;&gt;Download LiVES&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Comparison Of Video Editing Software&lt;/h2&gt;&lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;th&gt;Feature&lt;/th&gt; &lt;th&gt;Avidemux&lt;/th&gt; &lt;th&gt;Cinelerra&lt;/th&gt; &lt;th&gt;Kdenlive&lt;/th&gt; &lt;th&gt;Kino&lt;/th&gt; &lt;th&gt;LiVES&lt;/th&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;License&lt;/td&gt; &lt;td&gt;GPL&lt;/td&gt; &lt;td&gt;GPL&lt;/td&gt; &lt;td&gt;GPLv2&lt;/td&gt; &lt;td&gt;GPL&lt;/td&gt; &lt;td&gt;GPLv3+&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Cost&lt;/td&gt; &lt;td&gt;Free&lt;/td&gt; &lt;td&gt;Free&lt;/td&gt; &lt;td&gt;Free&lt;/td&gt; &lt;td&gt;Free&lt;/td&gt; &lt;td&gt;Free&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Paid Support&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;RAM (min)&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;256M&lt;/td&gt; &lt;td&gt;256M&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;128M&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Hard Disk (min)&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;1G&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;10G&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;CPU&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;500Mhz&lt;/td&gt; &lt;td&gt;600Mhz&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;800Mhz&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;High Definition Video Editing&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Non-destructive Editing&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Full-screen Playback&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Storyboard Mode&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Video Tracks&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Audio Tracks&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Linear Timecode Display&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;DVD Output&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;HD Output&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Smart Phone Output&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;QuickTime Output&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Windows Media Output&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;MPEG-4 Output&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;Web Output&lt;/td&gt; &lt;td&gt;?&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;h3&gt;Other Open Source Non-linear Video Editing Software For Linux Operating Systems&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://www.blender.org/&quot; target=&quot;_blank&quot;&gt;Blender&lt;/a&gt; - 3D  animation suite (cross-platform) : Blender is a 3D graphics application.  It can be used for modeling, UV unwrapping, texturing, rigging, water  simulations, skinning, animating, rendering, particle and other  simulations, non-linear editing, compositing, and creating interactive  3D applications, including games. Blender&#39;s features include advanced  simulation tools such as rigid body, fluid, cloth and softbody dynamics,  modifier based modeling tools, powerful character animation tools, a  node based material and compositing system and Python for embedded  scripting.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.openshotvideo.com/&quot; target=&quot;_blank&quot;&gt;OpenShot&lt;/a&gt; Video Editor : OpenShot Video Editor is an open-source program that creates, modifies, and edits video files.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.pitivi.org/wiki/Main_Page&quot; target=&quot;_blank&quot;&gt;PiTiVi&lt;/a&gt;  : PiTiVi is a program for video editing based on the GStreamer  framework. It can - Capture and encode audio and video, with formats  supported by GStreamer, split and trim video clips, split and trim  audio, render projects in any format supported by the GStreamer  framework etc.&lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Our Recommendation&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;Use Cinelerra for professional work. It is very fast, and can handle  a heavy load. You can also obtain paid support for this product.&lt;/li&gt;
&lt;li&gt;For video encoding and conversion purpose use Avidemux.&lt;/li&gt;
&lt;/ul&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/5012761496566465728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/5012761496566465728'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/top-5-linux-video-editor-software.html' title='Top 5 Linux Video Editor Software'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-2877275352604075750</id><published>2011-01-12T08:37:00.002+05:30</published><updated>2011-01-12T08:37:43.470+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Recover LVM from Corrupted physical volume</title><content type='html'>I had Volume Group /dev/vg1 that consist two physical volumes /dev/sdb1  and /dev/sdc1 . One of physical volume /dev/sdc1, corrupted due to disk  problem , now the challenge was to recover LVM. I decided to use &lt;b&gt;&lt;i&gt;pvremove&lt;/i&gt;&lt;/b&gt; command, in following way&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;root#pvremove /dev/sdc1&lt;/i&gt;&lt;br /&gt;
Above command displayed error couldn&#39;t find device uuid &#39;xxxxxxx&#39;&lt;br /&gt;
Then issue tried forcefully&lt;br /&gt;
&amp;nbsp;&lt;i&gt;&amp;nbsp; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;root#pvremove -ff /dev/sdc1 &lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
After some warning, it removed that physical volume.&lt;br /&gt;
Then i issued &lt;b&gt;&lt;i&gt;pvdisplay&lt;/i&gt;&lt;/b&gt; command&lt;br /&gt;
&amp;nbsp;root#pvdisplay&lt;br /&gt;
This display message&amp;nbsp; &#39; &lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;Couldn&#39;t find device with uuid xxxxxx&lt;/span&gt;&#39;&lt;br /&gt;
&lt;br /&gt;
Now what you need to do is to create a physical volume with new disk with missing uuid .&lt;br /&gt;
For that following command can be used&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;root# pvcreate --uuid=xxxxxx /dev/sdd1 --restorefile=/etc/lvm/archive/vg0_0.vg&lt;/div&gt;Where /dev/sdd1 is new hard disk in replace of /dev/sdc1&lt;br /&gt;
Then restore the vg metadata with following command&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;root# vgcfgrestore -f /etc/lvm/archive/vg0_0.vg tvg0&lt;/span&gt;&lt;br /&gt;
Note: check archive of vg in /etc/lvm/archive</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/2877275352604075750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/2877275352604075750'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/recover-lvm-from-corrupted-physical.html' title='Recover LVM from Corrupted physical volume'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-7845053827990087609</id><published>2011-01-11T09:33:00.000+05:30</published><updated>2011-01-11T09:33:16.603+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Quick and Dirty setup for Samba 3 and Windows 2003</title><content type='html'>These are the absolute bare minimum steps to get your Samba server  integrated as a member server in an AD controlled domain with Win2k3 as  the DC. &lt;br /&gt;
1. ENSURE your samba box has an A record and associated PTR in DNS. &lt;br /&gt;
2. On your DC, disable signing: Run Domain Controller Policy tool  and edit Account Policies -&amp;gt; Security Options -&amp;gt; Microsoft  network client: Digitally sign communications (always) Set this to  Disabled. Do the same in the Domain Policy tool. Note, you will need to  reboot the server for this step, though it won&#39;t tell you to. Disable on  your samba server as well with the following in smb.conf &lt;br /&gt;
&lt;pre&gt;client signing = no
client use spnego = no&lt;/pre&gt;3. On your samba server, install kerberos5, and edit /etc/krb5.conf. It should contain: &lt;br /&gt;
&lt;pre&gt;[libdefaults]
       default_realm = YOUR.ADS.DOMAIN
       dns_lookup_kdc = false
       dns_lookup_realm = false&lt;/pre&gt;&lt;pre&gt;[domain_realm]
       .your.domain.name=YOUR.ADS.DOMAIN
       your.domain.name=YOUR.ADS.DOMAIN&lt;/pre&gt;&lt;pre&gt;[realms]
YOUR.ADS.DOMAIN = {
       default_domain = your.domain.name
       kdc = IP.OF.THE.DC
}&lt;/pre&gt;4. Ensure smb.conf contains &lt;br /&gt;
&lt;pre&gt;realm = YOUR.ADS.DOMAIN
workgroup = YOUR
security = ADS&lt;/pre&gt;5. Get a ticket using kerberos: kinit administrator (enter the  administrator password when prompted). The klist command should then  list a ticket. &lt;br /&gt;
6. Join the domain using &#39;net ads join&#39;. This should use the credentials in your kerberos ticket. &lt;br /&gt;
7. Set up winbind - ensure the following is in smb.conf &lt;br /&gt;
&lt;pre&gt;winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum groups = yes
winbind enum users = yes&lt;/pre&gt;8. store your winbind credentials with wbinfo --set-auth-user=DOMAIN\\administrator%password &lt;br /&gt;
9. modify /etc/pam.d/samba (on woody) or the appropriate pam file  to add &quot;sufficient&quot; for auth and account using pam_winbind.so. These  need to go BEFORE the pam_unix.so calls for samba. My /etc/pam.d/samba  is as follows: &lt;br /&gt;
&lt;pre&gt;auth            sufficient      pam_winbind.so
auth            required        pam_unix.so nullok
account         sufficient      pam_winbind.so
account         required        pam_unix.so
session         required        pam_unix.so
password        required        pam_unix.so&lt;/pre&gt;10. Modify /etc/nsswitch.conf with the following: &lt;br /&gt;
&lt;pre&gt;passwd:         winbind compat
group:          winbind compat
shadow:         winbind compat&lt;/pre&gt;11. Restart samba and winbind. &lt;br /&gt;
12. All should work.&amp;nbsp;:) Browse your server and see...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/7845053827990087609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/7845053827990087609'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/quick-and-dirty-setup-for-samba-3-and.html' title='Quick and Dirty setup for Samba 3 and Windows 2003'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-4946729118339485688</id><published>2011-01-11T09:30:00.000+05:30</published><updated>2011-01-11T09:30:53.899+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Making Samba communicate with your Windows domain</title><content type='html'>&lt;div class=&quot;takeaway&quot;&gt;&lt;b&gt;Takeaway:&lt;/b&gt; If you have a Windows domain  controller in your organization, Samba allows you to authenticate Linux  users via the domain. All it takes is a little bit of tweaking.&lt;/div&gt;&lt;br /&gt;
Getting Samba to completely accept authentication information  from an existing domain is quite a challenge. It requires changes to a  few configuration files and awareness of more than a few subsystems  within the Linux environment. Although simpler approaches are available  in Samba, they have their own challenges, such as requiring the setup of  user accounts on the Linux box and the creation of persistent  connections to the authenticating domain server.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;subhead1&quot;&gt;User accounts&lt;/span&gt;&lt;br /&gt;
In  previous versions of Samba it was possible to allow authentication from  an NT domain, but the major caveat was that the user account had to  exist on the Samba machine—even if the account was logged in through the  domain controller. To fix this limitation, a daemon was developed  called winbind. This daemon is a pluggable authentication module (PAM)  that interrogates a Windows-based domain controller for authentication  information for a user and, if properly authenticated, creates the  appropriate mapping between Linux user IDs and Windows IDs. In short, it  provides the bridge necessary so a local Linux account is not necessary  for a Windows Domain user. Winbind is now a direct part of the main  Samba distribution, including the RedHat9 distributed version, 2.2.7.&lt;br /&gt;
&lt;br /&gt;
Despite  being a part of Samba, winbind actually allows all kinds of connections  besides just Samba connections without a local Linux account. For  instance, Telnet and SSH connections will work without local accounts  via winbind once installed; however, this is beyond the scope of my  discussion today.&lt;br /&gt;
&lt;br /&gt;
Because of early UNIX-only single sign-on  efforts, Linux developers created a Name Service Switch (NSS) subsystem.  This subsystem provided a unified way of looking up host names as well  as enumerating user accounts, groups, and other utilitarian functions.  Winbind hooks into NSS to allow a UNIX application to enumerate the  users of a connected Windows NT/Windows 2000 domain. Although it’s  beyond the scope of this article to discuss how one might do this, or  why one might do this, the necessary changes to the configuration files  are outlined for completeness.&lt;br /&gt;
&lt;hr size=&quot;1&quot; width=&quot;100%&quot; /&gt;&lt;span class=&quot;articleTipTitle&quot;&gt;PAM, not spam&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;articleTipText&quot;&gt;     The pluggable authentication module (PAM) architecture was designed to  allow for a standard way for applications to authenticate users while  maintaining extensibility for new authentication mechanisms. With PAM,  every application need not concern itself with where the user is  actually authenticated, only that the user was authenticated by the  system. PAM is a default part of RedHat9 and the configuration files it  uses can be found in the /etc/pam.d directory. By integrating with PAM,  Winbind provides a transparent way of mapping non-local users to the  system.   &lt;/span&gt;&lt;hr size=&quot;1&quot; width=&quot;100%&quot; /&gt;&lt;br /&gt;
&lt;span class=&quot;subhead1&quot;&gt;Configuring Samba to authenticate against a domain&lt;/span&gt;&lt;br /&gt;
The  first step in getting Samba to authenticate to a Windows domain is to  add winbind to NSS by changing two lines in the /etc/nsswitch.conf file.  The two lines are the password and group lines. They should be changed  by adding winbind after the existing entries. Once changed, they should  look like the following:&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;passwd: files winbind&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;group: files winbind&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The  next step is to make the appropriate changes to the Samba configuration  file, /etc/samba/smb.conf. The first change is to change the workgroup  entry in the global section to match the name of your domain. Next,  change the security entry to be domain. Finally, change the password  server to * or, alternatively, you can specify your domain controllers  by name leaving a space after each one. After being modified, the lines  should look something like the following:&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;workgroup = MYDOMAIN&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;security = DOMAIN&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;password server = *&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
With  those changes in place, it’s time to add a few configuration lines for  winbind. These entries all go in the global section and should look like  these:&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;winbind separator = +&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;winbinduid = 10000-20000&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;winbindgid = 10000-20000&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;winbindenum users = yes&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;winbindenum groups = yes&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The  settings for Winbind can be set to anything you like; however, the  settings here should be good enough to get you going. The separator is a  + sign instead of the familiar backslash character used by Windows, in  part due to the rules for using a backslash in a UNIX shell. The uid and  gid ranges are just to keep the numbers assigned to the mappings by  Winbind out of the way of local users. Finally, enum users and enum  groups allow the enumeration of users and groups from the domain,  respectively.&lt;br /&gt;
&lt;br /&gt;
All of the changes to the configuration file have been made, so save the file.&lt;br /&gt;
&lt;br /&gt;
The  next step is to create a machine account in the Windows domain for the  Samba machine. Winbind will use this machine account to do its work. The  account is created by using the smbpasswd utility with options. The  command needs the -j option followed by the domain name that the Samba  server is being connected to. It also requires the -r option followed by  the server name that the Samba server is being connected to. Finally,  it requires the -U option to specify the user account that has  permissions to create computer accounts in the domain. Once assembled,  the command should look something like this:&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;smbpasswd -j MYDOMAIN –r MYPDC –U Administrator&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
You’ll  be prompted for your password for the administrator so that Samba can  create the user account for the user. Once this step has been completed,  it’s time to restart Samba. The quickest way to do this is to do type &lt;i&gt;ps&lt;/i&gt;&lt;i&gt;–ea | grepsmbd&lt;/i&gt;  and then kill the process listed. This is the first column of the  returned results. To kill the process, type the “kill” command, followed  by a space and the process ID. Restart Samba by typing &lt;i&gt;smbd&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;subhead1&quot;&gt;Verifying that Samba is set up&lt;/span&gt;&lt;br /&gt;
The  next step is to verify that the winbind daemon is able to communicate  with the server. Verifying that winbind is working is done by using the  wbinfo command. The first step is to type &lt;i&gt;wbinfo&lt;/i&gt;&lt;i&gt;–p&lt;/i&gt;. This  pings the winbind daemon to ensure that it’s running. If the test fails,  check to see if the process is running but not responding by typing &lt;i&gt;ps&lt;/i&gt;&lt;i&gt;-ea | grepwinbindd&lt;/i&gt;.  If you get no results, the process just hasn’t been started. If you do  get a response, then winbindd is really confused since it’s not  responding to basic pings. This will require a look into the error logs,  as described later in this article.&lt;br /&gt;
&lt;br /&gt;
If there are no errors, the next step is to type &lt;i&gt;wbinfo&lt;/i&gt;&lt;i&gt;–t&lt;/i&gt;. This tests the computer account that you just created to make sure it’s working correctly.&lt;br /&gt;
&lt;br /&gt;
Next,  it’s important to check the ability to retrieve users. This is done by  first executing the wbinfo command with a -A option followed by the  domain, username, and password that wbinfo can use to satisfy further  requests. The format of the command is:&lt;br /&gt;
&lt;span class=&quot;code&quot;&gt;wbinfo -A DOMAIN+USER%PASSWORD&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The command will likely return without generating any errors, even if you have mistyped the password. The final step is to type &lt;i&gt;wbinfo&lt;/i&gt;&lt;i&gt;-u,&lt;/i&gt; which should return a list of users from the domain.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;subhead1&quot;&gt;Troubleshooting the setup&lt;/span&gt;&lt;br /&gt;
There  are plenty of potential issues with the setup, ranging from basic  networking problems to password mismatches and beyond. Here are a few  basic steps toward determining the source of your problem.&lt;br /&gt;
&lt;br /&gt;
First,  if you get an error from wbinfo indicating an error looking up domain  users, you’re more than likely having some sort of a problem connecting  to the domain controller. This might be a network problem, or something  as simple as a typo in the domain name in the workgroup name setting in  the /etc/samba/smb.conf file. Checking for items that you may have  overlooked or miskeyed is a good place to start.&lt;br /&gt;
&lt;br /&gt;
On the other  hand, if you get an error number from wbinfo that matches 0xc000006d,  you’ve probably miskeyed the password when entering the wbinfo -A  command. Either that or you didn’t enter the wbinfo -A command at all.  Try the command again. Also, make sure that you tried the wbinfo -t  command and received a message back that the secret is good. You might  get a password error if your computer account is broken.&lt;br /&gt;
&lt;br /&gt;
Finally,  if these don’t answer your question, you can restart winbindd with a  debugging level to spit out all kinds of detail to the log file. The log  file is located in /var/log/samba and is named log.winbindd. If you’ve  not turned debugging on, however, the file is likely to contain very  little that’s useful. To turn debugging on, issue the command &lt;i&gt;ps&lt;/i&gt;&lt;i&gt;-ea | grepwinbindd&lt;/i&gt; and kill off the listed process as you did for smbd above. Then type &lt;i&gt;winbindd&lt;/i&gt;&lt;i&gt;-d 100&lt;/i&gt;.  This turns the debug level all the way up for winbindd. Try the wbinfo  command that failed and then go through the log file looking for what  may have gone wrong. Be prepared to wade through a great deal of the  log, as it fills up quite quickly at this debugging level.&lt;br /&gt;
&lt;br /&gt;
Also,  you may also find it useful to look at the log files for a machine.  These files are named with the netbios machine name and an extension of  .log. For instance, my notebook named boguer-nb created a file  boguer-nb.log. This file is with the rest of the Samba logs in the  /var/log/samba directory</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4946729118339485688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4946729118339485688'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/making-samba-communicate-with-your.html' title='Making Samba communicate with your Windows domain'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-6388153155533435043</id><published>2011-01-11T09:28:00.000+05:30</published><updated>2011-01-11T09:28:05.890+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Native LDAP, native Kerberos and Windows Server 2003 R2 AD Services and schema for cross platform identity management</title><content type='html'>&lt;span class=&quot;sizeLess15&quot;&gt;&lt;h3&gt;Scenario &lt;/h3&gt;The scenario for this tech note is as follows. You have Active Directory  installed on Windows Server 2003 R2 and use Active Directory to provide  directory and authentication services to Windows-based clients. You  also have Linux and UNIX installed in the same datacenter and you wish  to use Active Directory as your central system for providing consistent  directory and authentication services to these systems as well. You have  a desire to standardize directory services using LDAP technology and  authentication using Kerberos. Ultimately you want to have one  centralized account entry and password for each user and group in Active  Directory and have users and systems be able to leverage the account  information and credentials from Windows, UNIX and Linux client systems.  You might also be using Samba on your Linux and UNIX systems for  sharing files with your Windows systems and wish to leverage Active  Directory for centralized user account information and authenticated  access to shared files.&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;Solution Overview &lt;/h3&gt;This solution uses the industry-standard LDAP protocol for directory  services and Kerberos for authentication. Since Microsoft Active  Directory uses LDAP for directory services and most Linux and UNIX  systems include LDAP software, it is logical to leverage this popular  modern protocol for managing centralized user, group and system  information. With the addition of Microsoft’s Identity Management for  UNIX component that is available for Windows Server 2003 R2 and Windows  Server 2008 (“Longhorn”), customers now have a Microsoft supported  method for storing UNIX-specific user and group information in Active  Directory. This is accomplished through the addition of UNIX schema  extensions for user and group information in Active Directory and an  additional UNIX Properties tab in the management tool for user and group  properties. Likewise, Kerberos is a standard technology for providing  authentication across most modern operating systems and is the central  authentication system for Active Directory. This is the centralized  system we will use for storing and using one set of user passwords in  Active Directory that can be used by both Windows and UNIX/Linux  clients.&lt;br /&gt;
Finally, since many users need a simple way to share files between  Windows and UNIX/Linux, we include instructions on how to set up the  popular Open Source project, Samba, for SMB file serving from UNIX/Linux  systems. This allows Windows users to use an authenticated “single  sign-on” method for storing and retrieving files on UNIX/Linux systems  using the native CIFS file sharing protocol for file. In addition, Samba  is used to join the UNIX or Linux system to the Active Directory  domain. Our Samba instructions leverage the underlying LDAP/Kerberos  infrastructure in order to provide consistent centralized passwords and  user / group information.&lt;br /&gt;
This solution will allow users to log into UNIX and Linux systems  using their Windows account name and password via Active Directory. In  this solution, UNIX specific information such as the default UNIX shell  is stored centrally in Active Directory to simplify the management of  users across multiple systems. This also means that a UNIX user will  have a single consistent UID across all UNIX systems that use this  setup. This solution can also lay the groundwork for enabling true  single sign-on capabilities through the use of Kerberos-enabled  utilities on UNIX. &lt;br /&gt;
&lt;h3&gt;Solution Implementation Details &lt;/h3&gt;To implement this solution we used Microsoft Windows Server 2003 R2  Standard Edition with Service Pack 2 as the server environment. This  server was configured with the following capabilities installed and  enabled: &lt;ul&gt;&lt;li&gt;Active Directory Domain Controller&lt;/li&gt;
&lt;li&gt;DNS Server&lt;/li&gt;
&lt;li&gt;DHCP Server&lt;/li&gt;
&lt;li&gt;Active Directory Services: Identity Management for UNIX&lt;/li&gt;
&lt;/ul&gt;On the client side, we installed Fedora Core Linux 6. The key packages that were leveraged for this solution include:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;krb5-libs&lt;/li&gt;
&lt;li&gt;pam_krb5&lt;/li&gt;
&lt;li&gt;krb5-workstation&lt;/li&gt;
&lt;li&gt;openldap-*&lt;/li&gt;
&lt;li&gt;nss_ldap&lt;/li&gt;
&lt;li&gt;samba-client-3.0.23&lt;/li&gt;
&lt;li&gt;samba-common-3.0.23&lt;/li&gt;
&lt;li&gt;samba-3.0.23&lt;/li&gt;
&lt;/ul&gt;Normally, these components are installed by default on Fedora Core.  For other systems, you may need to install Kerberos, LDAP and Samba  software separately. It is also important to ensure that you are running  a recent version of Samba and that the Samba daemon – &lt;em&gt;smbd&lt;/em&gt; – has been built with Kerberos, LDAP and Active Directory support. The “&lt;a href=&quot;http://us4.samba.org/samba/docs/man/Samba-Guide/unixclients.html#adssdm&quot;&gt;Samba by Example&lt;/a&gt;”  guide has details on how to ensure that your Samba software has the  appropriate services built-in. This technote assumes that you are  familiar with the basic administration concepts for both Windows Server  and Fedora Core Linux. &lt;br /&gt;
&lt;h3&gt;Setting up Windows Server 2003 &lt;/h3&gt;We begin by setting up the environment on the Windows Server system. Complete the following steps on your Windows Server system: 1. Install Windows Server 2003 R2 and accept the standard options during the install.&lt;br /&gt;
2. Using the “Manage Your Server” wizards, set up the server as a  first server which means installing and configuring the system as an  Active Directory Domain Controller, DNS Server and DHCP Server. For this  implementation, we called our domain “milltest”.&lt;br /&gt;
3. Using the “Add or Remove Programs” tool in the Control Panel, add  the component, Active Directory Services: Identity Management for UNIX.  Be sure that “Server for NIS” is installed as part of this package. This  will ensure that the Active Directory schema is set up correctly for  storing UNIX attributes and will enable the “UNIX Attributes” tab  in the properties page &lt;span class=&quot;full-image-float-right&quot;&gt;&lt;img alt=&quot;AD-2.gif&quot; height=&quot;262&quot; src=&quot;http://www.interopsystems.com/images/AD-2.gif&quot; style=&quot;height: 262px; width: 360px;&quot; width=&quot;360&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
for users and groups within the “Active Directory Users and Computers”  MMC. The Server for NIS program itself is not used and does not need to  be configured or turned on.&lt;br /&gt;
4. Run the program: All Programs&amp;nbsp;&amp;gt;&amp;gt; Administrative Tools&amp;nbsp;&amp;gt;&amp;gt; Active Directory User and Computers. For this example&amp;nbsp;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;implementation,  create a Security Group called “unixusers” and open the properties for  this group. Click on the UNIX Attributes tab for “unixusers” and select  the default domain name for your NIS Domain (which should be the same as  your Active Directory domain) and enter a GID such as 10000. Click OK  to save your changes to this new group. You could also enable an  existing group such as “Domain Users” however some UNIX systems are not  able to handle group names beyond a certain length or ones that have  spaces in the name.&lt;br /&gt;
5. For each Active Directory user that you want to enable for UNIX  logins, you will need to configure their UNIX attribute properties. For  example, create a new user called Bob Smith with a user logon name of  “bob”. Give “bob” a password and uncheck the “User must change password  at next logon” option. Open the properties for user “Bob Smith” and  select the UNIX Attributes tab. For the NIS Domain field, select the  default domain name. The rest of the attributes should be automatically  filled in; however you can change these to suit your needs. For example,  you could change the Login Shell to “/bin/bash”. The primary group name  should be set to “unixusers” or another group that is UNIX enabled. In  our example, we set the primary group to “Domain Users” since Fedora  Core Linux supports long group names and group names with spaces.&lt;br /&gt;
6. Finally, we need to create a special user account for handling  LDAP requests from the UNIX/Linux clients. We used an account name of  “ldap” and made the account a member of the “Domain Guests” group. This  account does not need any special administrative privileges. We set the  user password to “not24get!” and made sure that in Account options,  “User cannot change password” and “Password never expires” are checked  and all other options are unchecked.&lt;br /&gt;
7. There are no special steps required to enable Kerberos services for UNIX clients.&lt;br /&gt;
Your Windows Server system is now ready to provide LDAP directory  services and Kerberos authentication services to UNIX and Linux clients.&lt;br /&gt;
&lt;h3&gt;Setting up Fedora Core Linux &lt;/h3&gt;The next step is to set up a Linux system as a client for Active  Directory services. In this case, the Linux client can be either a Linux  desktop or server. The term “client” refers to how the Linux system is  configured to use Active Directory client services from a Windows Server  system. In a previous technote we used Fedora’s graphical  administration tools configure the system. For this technote, we will  document how to configure the system by manually editing system files  since this method requires more customization of certain system files.  Complete the following steps on your Fedora Core Linux system: 1. Install a standard version of Fedora Core Linux. We used most of  the defaults for our install. Make sure that the Kerberos (krb), Open  LDAP and Samba packages are installed on your system.&lt;br /&gt;
2. Use DHCP to get an IP address from Windows Server by providing the  IP address for the Windows Server system when prompted for the DHCP  server. Alternatively, you can hard code an IP address in the same  network as the Windows domain.&lt;br /&gt;
3. Make sure the DNS client is set up to use the Windows Server  domain controller (normally automatic if DHCP is used). Check the  /etc/resolv.conf file once you have installed Linux to be sure that DNS  is configured correctly to use your Active Directory domain controller  as a “nameserver” and that the Active Directory domain name is defined  after the “search” parameter. &lt;br /&gt;
4. Make sure you have set the system host name for your Linux system.  For example edit the file /etc/sysconfig/network and ensure that the  HOSTNAME variable is set with your host name.&lt;br /&gt;
5. Also be sure to configure /etc/hosts so that your fully qualified  domain name and host name are defined with either the local address or  an IP address if using a static IP address. This should be the first  entry in the definition list even if you currently have localhost  defined for the local interface. You should also include a definition  for the name and IP address for the Active Directory server being used  for authentication.&lt;br /&gt;
6. Configure your Linux system to use the Network Time Protocol and  set it to use the Windows Server IP address as the first NTP Server.  This is done on Fedora by running System à Administration à Date &amp;amp;  Time. It is essential to have the Linux system clock synchronized with  the Windows Server clock, otherwise Kerberos authentication will not  work correctly.&lt;br /&gt;
7. The file /etc/pam.d/system-auth needs to be configured to use both  UNIX and Kerberos methods for authentication. It is also useful to add  an extra “session” entry to enable the creation of home directories on  first login to the Linux system by a user. We generated the following  file by using the graphical Authentication tool included with Fedora  (System&amp;nbsp;&amp;gt;&amp;gt; Administration&amp;nbsp;&amp;gt;&amp;gt; Authentication) and adding the  pam_mkhomedir entry in the session section: &lt;br /&gt;
&lt;h5&gt;auth required pam_env.so &lt;/h5&gt;&lt;h5&gt;auth sufficient pam_unix.so nullok try_first_pass &lt;/h5&gt;&lt;h5&gt;auth requisite pam_succeed_if.so uid &amp;gt;= 500 quiet &lt;/h5&gt;&lt;h5&gt;auth sufficient pam_krb5.so use_first_pass &lt;/h5&gt;&lt;h5&gt;auth required pam_deny.so &lt;/h5&gt;&lt;h5&gt;&lt;br /&gt;
account required pam_unix.so broken_shadow &lt;/h5&gt;&lt;h5&gt;account sufficient pam_localuser.so &lt;/h5&gt;&lt;h5&gt;account sufficient pam_succeed_if.so uid &amp;lt; 500 quiet &lt;/h5&gt;&lt;h5&gt;account [default=bad success=ok user_unknown=ignore] pam_krb5.so &lt;/h5&gt;&lt;h5&gt;account required pam_permit.so &lt;/h5&gt;&lt;h5&gt;&lt;br /&gt;
password requisite pam_cracklib.so try_first_pass retry=3 &lt;/h5&gt;&lt;h5&gt;password sufficient pam_unix.so md5 shadow nis nullok try_first_pass use_authtok &lt;/h5&gt;&lt;h5&gt;password sufficient pam_krb5.so use_authtok &lt;/h5&gt;&lt;h5&gt;password required pam_deny.so &lt;/h5&gt;&lt;h5&gt;&lt;br /&gt;
session optional pam_keyinit.so revoke &lt;/h5&gt;&lt;h5&gt;session required pam_mkhomedir.so skel=/etc/skel umask=0022 &lt;/h5&gt;&lt;h5&gt;session required pam_limits.so &lt;/h5&gt;&lt;h5&gt;session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid &lt;/h5&gt;&lt;h5&gt;session required pam_unix.so &lt;/h5&gt;&lt;h5&gt;session optional pam_krb5.so&lt;br /&gt;
&lt;br /&gt;
&lt;/h5&gt;8. The first Kerberos file to manually configure is the file  /etc/krb.conf. Add two lines at the beginning of the file to define your  new Active Directory Kerberos realm. For example, if the domain is  MILLTEST.LOCAL and the Active Directory server is  ws2003r2.milltest.local, then you would insert the following lines at  the beginning of the file:&lt;br /&gt;
&lt;h5&gt;MILLTEST.LOCAL ws2003r2.milltest.local:88&lt;br /&gt;
MILLTEST.LOCAL ws2003r2.milltest.local:749 admin server&lt;br /&gt;
&lt;br /&gt;
&lt;/h5&gt;9. The next Kerberos file to edit is /etc/krb.realms. Insert your  domain name as the first line of the file. For example, using the  settings in the previous step, you would add:&lt;br /&gt;
&lt;h5&gt;.milltest.local MILLTEST.LOCAL&lt;br /&gt;
&lt;br /&gt;
&lt;/h5&gt;10. The final Kerberos file to edit is /etc/krb5.conf. Ensure that  the [libdefaults], [realms] and [domain_realm] sections have the correct  entries. Using our example settings above, these sections would have  the following entries:&lt;br /&gt;
&lt;h5&gt;[libdefaults] &lt;/h5&gt;&lt;h5&gt;default_realm = MILLTEST .LOCAL &lt;/h5&gt;&lt;h5&gt;dns_lookup_realm = true &lt;/h5&gt;&lt;h5&gt;dns_lookup_kdc = true &lt;/h5&gt;&lt;h5&gt;&lt;br /&gt;
[realms] &lt;/h5&gt;&lt;h5&gt;MILLTEST .LOCAL = { &lt;/h5&gt;&lt;h5&gt;kdc = ws2003r2.milltest .local:88 &lt;/h5&gt;&lt;h5&gt;admin_server = ws2003r2.milltest .local:749 &lt;/h5&gt;&lt;h5&gt;kpasswd_server = ws2003r2.milltest .local:464 &lt;/h5&gt;&lt;h5&gt;kpasswd_protocol = SET_CHANGE &lt;/h5&gt;&lt;h5&gt;default_domain = true &lt;/h5&gt;&lt;h5&gt;} &lt;/h5&gt;&lt;h5&gt;&lt;br /&gt;
[domain_realm] &lt;/h5&gt;&lt;h5&gt;*.addomain.local = MILLTEST .LOCAL &lt;/h5&gt;&lt;h5&gt;.addomain.local = MILLTEST .LOCAL&lt;br /&gt;
&lt;br /&gt;
&lt;/h5&gt;11. The next step is to configure LDAP on Fedora. The central LDAP  file to configure is /etc/ldap.conf. This file needs to be set up  correctly with information related to the Active Directory Windows  Server (the first 5 lines) as well as map the schema to be used for  accessing user and group account information in Active Directory. Note  on lines 4 and 5 we define the “ldap” user that was created in Active  Directory and we set the password that is used for that account. Only  the first 5 lines should be modified for your environment. The following  file shows how we set up our LDAP environment:&lt;br /&gt;
&lt;h5&gt;host 192.168.0.10 &lt;/h5&gt;&lt;h5&gt;base dc=milltest,dc=local &lt;/h5&gt;&lt;h5&gt;uri ldap://ws2003r2.milltest.local/ &lt;/h5&gt;&lt;h5&gt;binddn ldap@milltest.local &lt;/h5&gt;&lt;h5&gt;bindpw not24get! &lt;/h5&gt;&lt;h5&gt;scope sub &lt;/h5&gt;&lt;h5&gt;timelimit 120 &lt;/h5&gt;&lt;h5&gt;bind_timelimit 120 &lt;/h5&gt;&lt;h5&gt;idle_timelimit 3600 &lt;/h5&gt;&lt;h5&gt;nss_initgroups_ignoreusers root,ldap &lt;/h5&gt;&lt;h5&gt;referrals no &lt;/h5&gt;&lt;h5&gt;ssl no &lt;/h5&gt;&lt;h5&gt;nss_base_passwd dc=milltest,dc=local?sub &lt;/h5&gt;&lt;h5&gt;nss_base_shadow dc=milltest,dc=local?sub &lt;/h5&gt;&lt;h5&gt;nss_base_group &lt;br /&gt;
dc=milltest,dc=local?sub?&amp;amp;(objectCategory=group)(gidnumber=*) &lt;/h5&gt;&lt;h5&gt;nss_map_objectclass posixAccount user &lt;/h5&gt;&lt;h5&gt;nss_map_objectclass shadowAccount user &lt;/h5&gt;&lt;h5&gt;nss_map_objectclass posixGroup group &lt;/h5&gt;&lt;h5&gt;nss_map_attribute uid sAMAccountName &lt;/h5&gt;&lt;h5&gt;nss_map_attribute homeDirectory unixHomeDirectory &lt;/h5&gt;&lt;h5&gt;nss_map_attribute gecos cn &lt;/h5&gt;&lt;h5&gt;nss_map_attribute shadowLastChange pwdLastSet &lt;/h5&gt;&lt;h5&gt;nss_map_attribute uniqueMember member &lt;/h5&gt;&lt;h5&gt;pam_login_attribute sAMAccountName &lt;/h5&gt;&lt;h5&gt;pam_filter objectclass=User &lt;/h5&gt;&lt;h5&gt;pam_password ad&lt;br /&gt;
&lt;br /&gt;
&lt;/h5&gt;12. The next system that needs to be set up is the nsswitch  configuration file /etc/nsswitch.conf. The changes to this file direct  the system to use LDAP to look up user and group information from Active  Directory in addition to using local files. The following lines should  be updated with the LDAP directive:&lt;br /&gt;
&lt;h5&gt;passwd: files ldap &lt;/h5&gt;&lt;h5&gt;group: files ldap &lt;/h5&gt;&lt;h5&gt;shadow: files ldap&lt;br /&gt;
&lt;br /&gt;
&lt;/h5&gt;If you are planning on also using Samba, then you will also need to include Samba’s &lt;em&gt;winbind&lt;/em&gt; for name resolution. The /etc/nsswitch.conf file would read:&lt;br /&gt;
&lt;h5&gt;passwd: files ldap winbind &lt;/h5&gt;&lt;h5&gt;group: files ldap winbind &lt;/h5&gt;&lt;h5&gt;shadow: files ldap winbind&lt;br /&gt;
&lt;br /&gt;
&lt;/h5&gt;13. At this point, we have everything in place to enable logging into  a Linux system using an Active Directory username and password and  leveraging Active Directory, via Kerberos and LDAP, for directory  services and authentication. If you had no plans to use Samba for file  and print serving to Windows clients from the Linux server, then you  would need no additional steps. However, adding Samba to the mix has  advantages beyond enabling file and print sharing. The main advantage is  that by joining your Linux system to the Active Directory domain using  Samba allows you to create a computer account for the Linux system in  Active Directory and secure the Kerberos relationship between the two  systems which will help to prevent Kerberos authentication spoofing. The  bottom line is your environment will be more secure, so for this reason  we highly recommend completing the last steps to enable Samba, even if  you have no plans to use file and print serving from Linux.&lt;br /&gt;
14. The final file to set up is the Samba smb.conf file. This file is  the main configuration file for Samba-3 and there are many possible  combinations of settings that can be used to customize your Samba  environment. Refer to the &lt;a href=&quot;http://us4.samba.org/samba/docs/&quot;&gt;Samba-3 documentation&lt;/a&gt;  for details on the various settings. For our environment, we want to  enable our Fedora system as an Active Directory client, with Kerberos  authentication support and use the LDAP services from Active Directory  to provide consistent uid and gid mapping across all Linux machines in  the domain. Since Active Directory user and group names will be  enumerated when we use the &lt;em&gt;getent&lt;/em&gt; command via the LDAP entries in /etc/nsswitch.conf, we do not need to turn on user and group enumeration via &lt;em&gt;winbind&lt;/em&gt;  – which will improve performance. We also want to automatically share  out the home directory for Active Directory users who have logged into  the Fedora system. This is an optional setting. Using our test domain  settings, the /etc/samba/smb.conf file would have the following entries:&lt;br /&gt;
&lt;h5&gt;[global] &lt;/h5&gt;&lt;h5&gt;unix charset = LOCALE &lt;/h5&gt;&lt;h5&gt;workgroup = MILLTEST &lt;/h5&gt;&lt;h5&gt;netbios name = FEDORA100 &lt;/h5&gt;&lt;h5&gt;realm = MILLTEST.LOCAL &lt;/h5&gt;&lt;h5&gt;server string = Fedora_6 &lt;/h5&gt;&lt;h5&gt;security = ADS &lt;/h5&gt;&lt;h5&gt;use kerberos keytab = Yes &lt;/h5&gt;&lt;h5&gt;idmap backend = ad &lt;/h5&gt;&lt;h5&gt;ldap idmap suffix = dc=milltest,dc=local &lt;/h5&gt;&lt;h5&gt;ldap admin dn = cn=ldap,cn=Users,dc=milltest,dc=local &lt;/h5&gt;&lt;h5&gt;ldap suffix = dc=milltest,dc=local &lt;/h5&gt;&lt;h5&gt;idmap uid = 500-100000000 &lt;/h5&gt;&lt;h5&gt;idmap gid = 500-100000000 &lt;/h5&gt;&lt;h5&gt;log level = 1 &lt;/h5&gt;&lt;h5&gt;syslog = 0 &lt;/h5&gt;&lt;h5&gt;log file = /var/log/samba/%m &lt;/h5&gt;&lt;h5&gt;printcap name = CUPS &lt;/h5&gt;&lt;h5&gt;winbind use default domain = yes &lt;/h5&gt;&lt;h5&gt;winbind nested groups = Yes &lt;/h5&gt;&lt;h5&gt;&lt;br /&gt;
[homes] &lt;/h5&gt;&lt;h5&gt;comment = Home Directories &lt;/h5&gt;&lt;h5&gt;valid users = %D\%U &lt;/h5&gt;&lt;h5&gt;read only = No &lt;/h5&gt;&lt;h5&gt;browseable = No&lt;br /&gt;
&lt;br /&gt;
&lt;/h5&gt;15. The final steps to enable this configuration are to reset the  Samba environment and join the Linux system to the Windows Active  Directory domain. In order to complete these steps, you may want to  create and run a shell script with the following commands:&lt;br /&gt;
&lt;h5&gt;service smb stop &lt;/h5&gt;&lt;h5&gt;service winbind stop &lt;/h5&gt;&lt;h5&gt;rm -f /etc/samba/*tdb &lt;/h5&gt;&lt;h5&gt;rm -f /var/cache/samba/*tdb &lt;/h5&gt;&lt;h5&gt;rm -f /var/cache/samba/*dat &lt;/h5&gt;&lt;h5&gt;echo &quot;Enter the password for the Active Directory Administrator” &lt;/h5&gt;&lt;h5&gt;net ads join -U Administrator &lt;/h5&gt;&lt;h5&gt;smbpasswd –w not24get! &lt;/h5&gt;&lt;h5&gt;service winbind start &lt;/h5&gt;&lt;h5&gt;service smb start &lt;/h5&gt;&lt;h5&gt;chkconfig smb on &lt;/h5&gt;&lt;h5&gt;chkconfig winbind on&lt;br /&gt;
&lt;br /&gt;
&lt;/h5&gt;Note on line 8 we use the “smbpasswd –w” command to store the ldap user password in the Samba secrets.tdb file.&lt;br /&gt;
Your Fedora Linux system should now be configured to use Active  Directory for user and group information directory services and Kerberos  authentication using the KDC on Windows Server. In order to test the  setup, use the “getent passwd” command to confirm that you can see both  local users that exist in /etc/passwd and Windows domain users from  Active Directory.&lt;br /&gt;
You should also test whether the setup is working correctly by  logging in to the Linux system using a standard Active Directory account  name and password. If the user has no home directory on the system, it  should be automatically created for them. If the login fails, double  check that the clocks are synchronized to the same time on both Windows  and Linux. If the clocks are off by even a few minutes, then Kerberos  will not work correctly.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/6388153155533435043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/6388153155533435043'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/native-ldap-native-kerberos-and-windows.html' title='Native LDAP, native Kerberos and Windows Server 2003 R2 AD Services and schema for cross platform identity management'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-3080076894752427721</id><published>2011-01-11T09:25:00.000+05:30</published><updated>2011-01-11T09:25:28.274+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Using Server for NIS, IdMU and Kerberos for Unix/Linux Directory and Authentication Services</title><content type='html'>&lt;span class=&quot;sizeLess15&quot;&gt;&lt;h3&gt;Scenario &lt;/h3&gt;The scenario for this tech note is as follows. You have Active Directory  installed on Windows Server 2003 R2 and use Active Directory to provide  directory and authentication services to Windows-based clients. You  also have Linux and UNIX installed in the same datacenter and you wish  to use Active Directory as your central system for providing consistent  directory and authentication services to these systems as well. In the  past you have used NIS for centralized directory services on UNIX.  Ultimately you want to have one centralized account entry and password  for each user and group in Active Directory and have users and systems  able to leverage the account information and credentials from Windows,  UNIX and Linux client systems.&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;Solution Overview&lt;/h3&gt;This solution uses NIS (Network Information Service) technology for user  and group information look-ups. NIS has been used on UNIX systems for  many years and is a standard part of virtually every Linux and UNIX  system. NIS support is also built into Windows Server 2003 R2 and  Microsoft Windows Services for UNIX. Kerberos is used for authentication  and password validation in this solution. Kerberos is the default  system for authentication for modern Windows domains and is also widely  used and included in most UNIX and Linux systems. The final solution  will allow users to log into UNIX and Linux systems using their Windows  account name and password via Active Directory. In addition, UNIX  specific information such as the user’s shell is also stored in Active  Directory and used during the login session. This solution can also lay  the groundwork for enabling true single sign-on capabilities through the  use of Kerberos-enabled utilities on UNIX.  &lt;h3&gt;Solution Implementation Details &lt;/h3&gt;To implement this solution we used Microsoft Windows Server 2003 R2  Standard Edition with Service Pack 2 as the server environment. This  server was configured with the following capabilities installed and  enabled: &lt;ul&gt;&lt;li&gt;&lt;div&gt;Active Directory Domain Controller&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;DNS Server&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;DHCP Server&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Active Directory Services: Identity Management for UNIX (which includes Server for NIS)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Other Network File and Print Services: Microsoft Services for NFS (which includes the User Name Mapping service)&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;On the client side, we installed Fedora Core Linux 6. The key packages that were leveraged for this solution include:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;div&gt;krb5-libs&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;pam_krb5&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;krb5-workstation&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;The required NIS client components are installed by default on Fedora  Core. For other systems, you may need to install NIS client software  separately. This tech note assumes that you are familiar with the basic  administration concepts for both Windows Server and Fedora Core Linux. &lt;br /&gt;
&lt;h3&gt;Setting up Windows Server 2003 R2 &lt;/h3&gt;We begin by setting up the environment on the Windows Server system. Complete the following steps on your Windows Server system: &lt;ol&gt;&lt;li&gt;&lt;div&gt;Install Windows Server 2003 R2 and accept the standard options during the install.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Using the “Manage Your Server” wizards, set up the server as a  first server which means installing and configuring the system as an  Active Directory Domain Controller, DNS Server and DHCP Server. For this  implementation, we called our domain “milltest”.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Using the “Add or Remove Programs” tool in the Control Panel, add the following components:&lt;br /&gt;
-&amp;nbsp; Active Directory Services: Identity Management for UNIX. Be sure that  “Server for NIS” and “Administration Components” are installed as part  of this package.&lt;br /&gt;
-&amp;nbsp; Other Network File and Print Services: Microsoft Services for NFS. It  is recommended that you install all the components of this package  although technically you do not need all the NFS components. &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Run the program: All Programs à Identity Management for UNIX à  Microsoft Identity Management for UNIX. This MMC plugin is the key  interface for configuring the Server for NIS service. Enable the “Server  for NIS” service by right clicking on “Server for NIS” and selecting  “Start Service”.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Run the program: All Programs à Administrative Tools à Active  Directory User and Computers. For this example implementation, create a  Security Group called “unixusers” and open the properties for this  group. Click on the UNIX Attributes tab for “unixusers” and select the  default domain name for your NIS Domain (which should be the same as  your Active Directory domain) and enter a GID such as 10000. Click OK to  save your changes to this new group. You could also enable an existing  group such as “Domain Users” however some UNIX systems are not able to  handle group names beyond a certain length or ones that have spaces in  the name.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;For each Active Directory user that you want to enable for UNIX  logins, you will need to configure their UNIX attribute properties. For  example, create a new user called Bob Smith with a user logon name of  “bob”.&lt;br /&gt;
&amp;nbsp;&lt;span class=&quot;full-image-float-right&quot;&gt;&lt;img alt=&quot;Create-new-user.gif&quot; height=&quot;329&quot; src=&quot;http://www.interopsystems.com/images/Create-new-user.gif&quot; style=&quot;height: 329px; width: 450px;&quot; width=&quot;450&quot; /&gt;&lt;br /&gt;
&lt;/span&gt;Give “bob” a password and uncheck the “User must change password  at next logon” option. Open the properties for user “Bob Smith” and  select the UNIX Attributes tab. For the NIS Domain field, select the  default domain name. The rest of the attributes should be automatically  filled in; however you can change these to suit your needs. For example,  you could change the Login Shell to “/bin/bash”. The primary group name  should be set to “unixusers” or another group that is UNIX enabled. In  our example, we set the primary group to “Domain Users” since Fedora  Core Linux support long group names and group names with spaces.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Run the program: All Programs à Administrative Tools à  Microsoft Services for Network File System. This MMC plug-in is the key  interface for configuring the NFS and User Name Mapping services. Enable  the “User Name Mapping” service by right clicking on “User Name  Mapping” and selecting “Start Service”. Now, right click on “User Name  Mapping” and select Properties. Under the “UNIX User Source” tab, ensure  “Use Network Information Service (NIS)” is enabled. Now, select the  “Simple Mapping” tab and make sure “Use simple maps” is checked and your  domain name is selected as the Windows domain. Click on “Add…” at the  bottom of this dialog box to add a new NIS mapping. The defaults that  are provided should be fine which will have your Windows domain name in  lower case listed as the NIS domain name, the NIS server should be the  name of the Windows server you are working on and the Windows domain  name should be the domain name in all upper case. Hit Apply and then go  back to the “UNIX User Source” tab and select “Synchronize Now”.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Right click on “User Maps” and make sure that “Show simple  maps” is selected and do the same for “Group Maps”. You should see the  enabled users and groups in the right panel. It is also possible to set  up more complex maps between Windows user names and UNIX user names. See  the Microsoft nfsmgmt help system for more information if you need to  do this.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;There are no special steps required to enable Kerberos services for UNIX clients.&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;Your Windows Server system is now ready to provide NIS directory  services and Kerberos authentication services to UNIX and Linux clients.&lt;br /&gt;
&lt;h3&gt;Setting up Fedora Core Linux &lt;/h3&gt;The next step is to set up a Linux system as a client for Active  Directory services. In this case, the Linux client can be either a Linux  desktop or server. The term client refers to how the Linux system is  configured to use Active Directory client services from a Windows server  system. Complete the following steps on your Fedora Core Linux system: &lt;ol&gt;&lt;li&gt;&amp;nbsp;Install a standard version of Fedora Core Linux. We used most of  the defaults for our install. Make sure that the Kerberos (krb) packages  are installed on your system.&lt;/li&gt;
&lt;li&gt;Use DHCP to get an IP address from Windows Server by providing the  IP address for the Windows Server system when prompted for the DHCP  server. Alternatively, you can hard code an IP address in the same  network as the Windows domain.&lt;/li&gt;
&lt;li&gt;Make sure the DNS client is set up to use the Windows Server domain  controller (normally automatic if DHCP is used). Check the  /etc/resolv.conf file once you have installed Linux to be sure that DNS  is configured correctly. &lt;/li&gt;
&lt;li&gt;Configure your Linux system to use the Network Time Protocol and set  it to use the Windows Server IP address as the first NTP Server. This  is done on Fedora by running System&amp;nbsp;&amp;gt;&amp;gt; Administration&amp;nbsp;&amp;gt;&amp;gt;  Date &amp;amp; Time. It is essential to have the Linux system clock  synchronized with the Windows Server clock, otherwise Kerberos  authentication will not work correctly.&lt;/li&gt;
&lt;li&gt;Run the program: System&amp;nbsp;&amp;gt;&amp;gt; Administration&amp;nbsp;&amp;gt;&amp;gt;  Authentication. This tool assists with configuring the appropriate  directory and authentication services for your Fedora system. &lt;/li&gt;
&lt;ul&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;Click on the “User Information” tab, check “Enable NIS Support” and uncheck any other options.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Configure NIS with the Windows domain name and IP address for the Windows Active Directory controller.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Click on the “Authentication” tab and check “Enable Kerberos support” and uncheck any other options.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Click on “Configure Kerberos …” and fill in Kerberos fields with: &lt;/li&gt;
&lt;ul&gt;&lt;li&gt;Realm = Windows domain name in upper case&lt;/li&gt;
&lt;li&gt;KDCs = the fully qualified domain name of the Windows domain controller appended with :88.&lt;/li&gt;
&lt;li&gt;&lt;div&gt;Admin Servers = fully qualified domain name of the Windows domain controller appended with :749.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Check the two DNS options, “Use DNS to resolve hosts to realms” and “Use DNS to locate KDCs for realms”.&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;&lt;div&gt;Click on the “Options” tab and check “Cache User Information” and “Local authentication is sufficient for local users”&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Click on OK to save all changes.&lt;/li&gt;
&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;&lt;div&gt;Once the changes have been made using the Authentication tool,  check the various /etc/krb* files to ensure that there are no example  realm entries in the files. These should just contain information  relevant to connecting to the Windows Server system. &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;It is useful to add an extra entry to the file  /etc/pam.d/system-auth to enable the creation of home directories on  first login to the Linux system by a user. In the session section of  this file towards the end, add the line:&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h5&gt;session required pam_mkhomedir.so skel=/etc/skel umask=0022&lt;/h5&gt;&lt;h5&gt;&amp;nbsp;&lt;/h5&gt;Your Fedora Linux system should now be configured to use the NIS  services on Windows Server for user and group information directory  services and Kerberos authentication using the KDC on Windows Server. In  order to test the setup, use “getent passwd” command to confirm that  you can see both local users that exist in /etc/passwd and Windows  domain users from Active Directory. You will only be able to see Active  Directory users if the Active Directory user has been enabled as a UNIX  user in the “Active Directory Users and Computers” MMC on Windows  Server.&lt;br /&gt;
You should now test whether the setup is working correctly by logging  in to the Linux system using a UNIX-enabled Active Directory account  name and password. If the user has no home directory on the system, it  should be automatically created for them. If the login fails, double  check that the clocks are synchronized to the same time on both Windows  and Linux and that all services mentioned above are enabled. If the  clocks are off by even a few minutes, then Kerberos will not work  correctly. &lt;br /&gt;
&lt;h3&gt;Summary &lt;/h3&gt;By implementing this solution, you will substantially reduce the  management overhead for account and authentication management for  heterogeneous Windows and Linux environments. Users now have one account  name and password to remember for logging into both Windows and Linux.  Administrators can setup new user accounts for both Windows and Linux by  simply adding a single new account entry into Active Directory.  Administrators can also deny access to all systems for any user by  simply disabling their Active Directory account. Policy settings such as  password complexity and length requirements are now enforced for users  on both Windows and Linux. Deploying new Linux systems is simplified  since administrators no longer need to set up individual user accounts  for every new Linux machine.There are two other methods for solving the Windows/UNIX/Linux Active  Directory integration challenge that are presented in this series. If  you wish to use Samba instead of NIS for storing user information then  you should read the tech note titled: “&lt;a href=&quot;http://www.interopsystems.com/community/pubs/Using%20Samba%20client%20technology%20and%20Kerberos%20for%20AD.pdf&quot;&gt;Using Samba client technology and Kerberos for Active Directory-based identity management&lt;/a&gt;”. If you wish to use LDAP for storing user information then you should read the tech note titled: “Using  native LDAP, native Kerberos and Windows Server 2003 R2 Active  Directory services and schema for cross-platform identity management”.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/3080076894752427721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/3080076894752427721'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/using-server-for-nis-idmu-and-kerberos.html' title='Using Server for NIS, IdMU and Kerberos for Unix/Linux Directory and Authentication Services'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-4699308610795301605</id><published>2011-01-11T09:22:00.001+05:30</published><updated>2011-01-11T09:26:04.632+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Implementing and configuring NFS on Windows Server 2003 R2</title><content type='html'>&lt;span class=&quot;sizeLess15&quot;&gt;With Windows Server 2003 R2 several of the  components that were previously part of Windows Services for UNIX (SFU)  became part of the base operating system distribution. This includes the  Network File System (NFS) components. There have been changes to these  components since the release of SFU version 3.5.&lt;/span&gt; &lt;br /&gt;
With Windows Server2003 R2 the NFS components no longer contain  support for PCNFS and Gateway for NFS. The resource overhead with  Gateway for NFS was fairly high and it was deemed much better for the  client machines to connect as full NFS clients. The gained speed and  lower resource use with NFS Client make this decision very clear. Since  more Windows systems are able to run full NFS Clients rather than PCNFS,  a similar decision was made for PCNFS support.&lt;br /&gt;
There is also new functionality added that will continue to be used  in future Windows Server releases. One of these new bits of  functionality is the addition of Unix user ID information within Active  Directory (AD). Based on RFC 2307 this information can be used by NFS  clients and servers for correctly mapping Windows IDs to and from UNIX  IDs. It can be used for NIS support as well. The Username Mapping (UNM)  available with SFU continues to be available with Windows Server 2003 R2  to support IT sites as they transition to using the new AD  functionality. It should be noted that starting with Windows Server 2008  (Longhorn) UNM will no longer be supported.&lt;br /&gt;
These changes mean that administrators need to do some planning for  the longer term to be prepared for later releases of Windows Server.  Server 2003 R2 can be viewed as a “transition release” because UNM and  RFC 2307 in AD are supported. The planning involves not only servers,  but also clients. Client machines running NFS Client from SFU 3.5 are  capable of using UNM, but cannot use the newer 2307/AD capability for ID  mapping. This applies to any Windows client release prior to Windows  Vista, e.g. Windows XP. Windows Vista comes with NFS Client capabilities  that can use both UNM and 2307/AD functionality. Windows Server 2003 R2  is thus capable of supporting both the old UNM and the newer 2307/AD ID  mapping. But from Server 2008 and onward the client machines will need  to be Windows Vista as a minimum.&lt;br /&gt;
&lt;h3&gt;Selecting Component Installation &lt;/h3&gt;The first of several tasks is to install all of the needed components  (NFS Server and any supporting components). Which supporting components  you will need depends on what support is required for the NFS Client  machines in particular. If your client systems are releases of Windows prior to Windows Vista  then you will need to use UNM. Those earlier systems will be running  SFU 3.5’s NFS Client which only works with UNM.&lt;br /&gt;
If you have a completely new array of just Windows Vista machines  then the recommendation is to use the newer RFC 2307 functionality in  AD. The will mean fewer changes and transitions in your next upgrade  cycle.&lt;br /&gt;
For definition purposes here is a brief explanation of what identity  mapping is and why it is required. Modern Windows systems have unique  identifiers for users and groups; these identifiers are different than  with Unix systems. Unix UIDs and GIDs are only guaranteed to be unique  on a per machine basis. A global management system, such as LDAP or NIS,  can be used by Unix machines to enact a network-wide regime. In  contrast the Windows identifiers are virtually unique amongst all  Windows systems with the use of a SID (Security IDentifier). A SID and a  UID/GID naturally do not match.&lt;br /&gt;
To create common ground for identification between the two systems,  identity management on Microsoft Windows has been extended to provide  UIDs and GIDs for users and groups respectively. Initially with SFU an  implementation of NIS in conjunction with a User Name Mapping server  allowed for the common ground between Windows and Unix systems. Starting  with Windows Server 2003 R2 and continuing with Windows Server 2008 the  information to map SIDs to UIDs and GIDs becomes part of AD’s  implementation of RFC 2307.&lt;br /&gt;
With a Unix UID and GID stored in either or both UNM and AD on a per  user basis, an easy mapping between Windows SIDs and Unix UIDs/GIDs is  achievable. Now a Windows computer and a Unix computer can communicate  user identification using common credentials. This leads to NFS  communications between Windows and Unix computers. &lt;br /&gt;
&lt;h3&gt;Installing NFS Server and friends &lt;/h3&gt;&lt;i&gt;Note: It is assumed that you have already installed Active Directory and DNS with the correct configuration.&lt;/i&gt; Open the Control Panel and then start the Add/Remove Programs  utility. After it has started select from the left panel “Add/Remove  Windows Components.”&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;full-image-float-none&quot;&gt;&lt;img alt=&quot;image01.jpg&quot; height=&quot;530&quot; src=&quot;http://www.interopsystems.com/images/image01.jpg&quot; style=&quot;height: 424px; width: 584px;&quot; width=&quot;730&quot; /&gt;&lt;/span&gt;&lt;/div&gt;This will open a new panel. A list of components will be  presented. Those components that already have a checkmark in the box at  their left are already installed. Scroll down until you find the entry  for ‘Other Network File and Print Services.’ (Why NFS is lumped in with  Print Services is unknown, but this arrangement does change with the  next Server release.)&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;full-image-float-none&quot;&gt;&lt;img alt=&quot;image02.jpg&quot; height=&quot;409&quot; src=&quot;http://www.interopsystems.com/images/image02.jpg&quot; style=&quot;height: 327px; width: 404px;&quot; width=&quot;505&quot; /&gt;&lt;/span&gt;&lt;/div&gt;Now select the Details button. A new window will open titled “Other Network File and Print Services.”&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;full-image-float-none&quot;&gt;&lt;img alt=&quot;image03.jpg&quot; height=&quot;346&quot; src=&quot;http://www.interopsystems.com/images/image03.jpg&quot; style=&quot;height: 277px; width: 361px;&quot; width=&quot;451&quot; /&gt;&lt;/span&gt;&lt;/div&gt;From this Window choose “Microsoft Services for NFS” and choose  Details again. Yet another window will open, showing all of the  available components related to NFS, titled ‘Microsoft Services for  NFS.’&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;full-image-float-none&quot;&gt;&lt;img alt=&quot;image04.jpg&quot; height=&quot;346&quot; src=&quot;http://www.interopsystems.com/images/image04.jpg&quot; style=&quot;height: 277px; width: 361px;&quot; width=&quot;451&quot; /&gt;&lt;/span&gt;&lt;/div&gt;In the ‘Microsoft Services for NFS’ window you will select all of the  components that you need to support your local configuration. You  should check all of the available selection boxes in a typical situation  because all of these components will be needed. If you are not going to  use UNM because all of your client machines are now Windows Vista then  you won’t need to select User Name Mapping. Once all of the choices are  made, click on OK (several times) to begin the installation/activation.&lt;br /&gt;
&lt;h3&gt;Configuring NFS Server &lt;/h3&gt;On Windows Server 2003 R2 the NFS Server can be configured to use UNM or  AD/2307. Details on configuring UNM and AD/2307 follow this section. &lt;br /&gt;
&lt;h3&gt;Configuring NFS Server for UNM &lt;/h3&gt;Open the Services for NFS console. This can be started from the Start  Menu then Administrative Tools then Microsoft Services for Network File  System. &lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;full-image-float-none&quot;&gt;&lt;img alt=&quot;image05.jpg&quot; height=&quot;375&quot; src=&quot;http://www.interopsystems.com/images/image05.jpg&quot; style=&quot;height: 300px; width: 438px;&quot; width=&quot;547&quot; /&gt;&lt;/span&gt;&lt;/div&gt;In the left panel select “Microsoft Services for NFS” and then  right-click to pop up the action menu. Choose the Properties entry. A  new window will open labeled ‘Properties.’ Make sure that the box beside  “Active Directory Lookup” is not checked otherwise AD/2307 will be  used. In this window enter either the domain name of the machine or the  IP address of the machine that the UNM server is running on. Since this  is most likely the machine you are starting NFS Server on, this is a  good default choice. Any NFS Clients that communicate with this NFS  Server should have the same UNM Server. This can prevent confusion if  two different UNM Servers have slightly different information. Click OK  to close the window.&lt;br /&gt;
Now right-click on the entry “User Name Mapping” – it is a sub-item  of the “Microsoft Services for NFS” entry in the left panel – to get a  popup menu. From this&lt;br /&gt;
popup menu select “Properties.” A new window will open titled “User  Name Mapping Properties.” You will see two tabs: “UNIX User Source” and  “Simple Mapping.” On the Unix User Source tab you can select between  “Use Network Information Service (NIS)” or “Use Password and Group  files.” (NIS is often grouped under the section “Identity Management,”  which also includes Password Synchronization, when you are looking for  on-line help or other articles).&lt;br /&gt;
When “Use Network Information Service (NIS)” is selected then an NIS  server is used to get the UID and GID information to initialize the  mapping. With this information two types of mapping can happen: simple  and advanced.&lt;br /&gt;
When “Use Password and Group files” is selected you can then specify  the path to the password file and the group file. These two files will  be used to set the information for mapping UIDs and GIDs to users and  groups respectively. Both the password and group files must be kept on a  filesystem (disk) local to the machine. There can only be one of each  file. If you have multiple password and/or group files then it is up to  you to manually merge these files together and insure that each file has  unique IDs for each entry. With this information two types of mapping  can happen: again, simple and advanced.&lt;br /&gt;
Simple mapping can happen when the usernames in the password file are  identical in spelling and the intended user already is in the Windows  user database. This is true when you have specified using NIS or  password/group files. Simple maps are the most straight-forward and  easiest. If you have been manually administering your users and groups  this way then lucky you! Switch to the second tab panel of this Window,  “Simple Mapping.” Then check the box labeled “Use Simple maps.” If you  have more than one Windows Domain and you are using the password and  group files, you may need to select the correct one from the dropdown  menu. However, with most networks with only one domain, the default is  correct. If you are using NIS then on this tab panel you will need to  add the correct NIS domain to get the ID information.&lt;br /&gt;
Now click the OK button to set the information.&lt;br /&gt;
Advanced mapping must be used when one or more of the usernames in  the password file does not match the intended Windows user by either  spelling or intended user. The next section deals with Advanced maps in  more detail. With either NIS or password/group files you should make  sure that the simple mapping is not selected in the User Name Mapping  Properties window’s tab named Simple Mapping. &lt;br /&gt;
The interval at the bottom of the panel for synchronizing the data is  self-explanatory. You can click the “Synchronize now” button to force  an immediate synchronization.&lt;br /&gt;
Don’t reboot just yet. There is still more to do in the next section if you are using Advanced Mapping.&lt;br /&gt;
&lt;h3&gt;Creating Maps &lt;/h3&gt;The user and group maps instruct UNM which Windows user or group is to  match to which UID or GID. Thus when a remote machine makes, for  example, an NFS request using a UID and GID it can be mapped to a  Windows account with a SID so that correct file access permissions are  used. There is a third map that controls which hosts are allowed to have  or not have access. Again, you must be the Administrator or a member of  the Administrators group to make changes to these maps. In the window for managing Microsoft Service for Network File System,  in the left panel expand User Name Mapping by clicking on the plus sign  (“+”). This should expand to show two sub-entries: User Maps and Group  Maps. With little surprise the method for setting Advanced Maps for  users and groups is virtually identical.&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;full-image-float-none&quot;&gt;&lt;img alt=&quot;image06.jpg&quot; height=&quot;375&quot; src=&quot;http://www.interopsystems.com/images/image06.jpg&quot; style=&quot;height: 300px; width: 438px;&quot; width=&quot;547&quot; /&gt;&lt;/span&gt;&lt;/div&gt;To create an Advanced Map for users right click on the “User Maps”  entry to get the popup menu and select “Create Map.” A new window will  open titled “Create Advanced User Mapping.”&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;full-image-float-none&quot;&gt;&lt;img alt=&quot;image07.jpg&quot; height=&quot;466&quot; src=&quot;http://www.interopsystems.com/images/image07.jpg&quot; style=&quot;height: 373px; width: 461px;&quot; width=&quot;576&quot; /&gt;&lt;/span&gt;&lt;/div&gt;You will see two sections on screen. The left side is for listing  Windows users and the right side is for listing Unix users. Click the  appropriate button to get a list of the Windows and Unix users. Select  the Windows user on the left side (with a mouse click) and then select  the Unix user in the right side that are to map to each other. Then  select “Add” to set the mapping. Repeat these steps for as many maps as  you need to do. You can have many Windows users mapping to one Unix  account, but this should be highly discouraged for security reasons.&lt;br /&gt;
Creating an Advanced Map for groups is so similar to creating an  Advanced Map for users you should already understand and need no further  instruction.&lt;br /&gt;
The final map to be concerned with is the “.maphosts” file. This file  sets the criteria for allowing or denying access from remote host  machines. The syntax is similar to NIS syntax. Each line in the file  specifies one hostname. If a line has no modifiers then the current  default is used; initially this is “+”. This is the same as if the “+”  modifier was added at the end of the line. If the “-“ modifier is  specified at the end of the line then this host id is denied access. A  modifier on a line by itself indicates accepting (+) or denying (-) all  hosts not already specified on lines above. An example file is:&lt;br /&gt;
&lt;h5&gt;Rootbeer + &lt;/h5&gt;&lt;h5&gt;Cola – &lt;/h5&gt;&lt;h5&gt;Orange &lt;/h5&gt;&lt;h5&gt;+ &lt;/h5&gt;In this example the host rootbeer is allowed access while cola is  denied access. The host orange is denied access since the last modifier  given was a “-“. The final line, just a “+” indicates that all other  hosts are allowed access.&lt;br /&gt;
You should not have any hosts or modifier listed after a line that has only a “+” or “-“ because these lines will be ignored.&lt;br /&gt;
The “.maphosts” file is located in the %WINDIR%/msnfs directory. It can be edited with either a Windows or Interix editor.&lt;br /&gt;
Now that User Name Mapping is finished you should restart the UNM  Service. You can do this more than one way. One method is with the  Microsoft Services for Network File System panel. Right click the User  Name Mapping entry to get the popup menu. Now stop the service. Once the  service has stopped then start the service again with the popup menu  selection.&lt;br /&gt;
&lt;h3&gt;Configuring 2307/AD for Unix IDs &lt;/h3&gt;By default the ability to set Unix IDs in Active Directory is not  activated. The Server for NIS needs to be installed and activated. The first thing is to get NIS installed. Without it installed then  the RFC 2307 part of AD cannot be used. From Add/Remove Programs select  Add/Remove Windows Components. From the component window select “Active  Directory Services” and then click the Details button. This will display  the “Active Directory Services” window.&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;full-image-float-none&quot;&gt;&lt;img alt=&quot;image08.jpg&quot; height=&quot;346&quot; src=&quot;http://www.interopsystems.com/images/image08.jpg&quot; style=&quot;height: 277px; width: 361px;&quot; width=&quot;451&quot; /&gt;&lt;/span&gt;&lt;/div&gt;In the next window select “Identity Management for UNIX” and click  the Details button again. Another window will open. Select “Server for  NIS” and check the box associated with it. When you do this the check  box with “Administration Components” will be checked automatically. This  is required.&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;full-image-float-none&quot;&gt;&lt;img alt=&quot;image09.jpg&quot; height=&quot;345&quot; src=&quot;http://www.interopsystems.com/images/image09.jpg&quot; style=&quot;height: 276px; width: 360px;&quot; width=&quot;450&quot; /&gt;&lt;/span&gt;&lt;/div&gt;Now click OK in this window and click OK in the next window. You  should be back at the components window now where you will select the  Next button to start the installation. When it is done you will not be  prompted to reboot. However, you must reboot to get the new 2307  information shown when you are looking at AD user information.&lt;br /&gt;
After the reboot, when you look at the Properties of a user in Active  Directory, you will see a new tab labeled “UNIX Attributes.” &lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;full-image-float-none&quot;&gt;&lt;img alt=&quot;image10.jpg&quot; height=&quot;485&quot; src=&quot;http://www.interopsystems.com/images/image10.jpg&quot; style=&quot;height: 388px; width: 326px;&quot; width=&quot;408&quot; /&gt;&lt;/span&gt;&lt;/div&gt;The first thing to do is to select the NIS domain. Once this is done  then the other selectable and settable items become active. There are  default entries for UID, shell and home directory. The entry for the  Primary Group is left empty. You can change these values to match your  needs. For example, it is quite common to change the default shell to  “/bin/csh” or “/bin/bash.”&lt;br /&gt;
You can make these changes one user at a time through the AD GUI or  through the command line utilities. With the command line utilities you  can create a script to automate changes for a large group of users. An  example of this would be changing the default shell for all users. This  is a task that is slow, boring, tedious and error prone when using a GUI  but quick and accurate with a script.&lt;br /&gt;
With Server for NIS installed you will want to set Services for NFS  to use Active Directory. This will use the UNIX Attributes IDs for  mapping identities. From the Microsoft Service for Network File System  management console right click the&lt;br /&gt;
left panel entry “Microsoft Service for NFS” and select Properties.  In the window that opens check the box beside “Active Directory Lookup.”  Then enter the name of the Active Directory domain in the box below.&lt;br /&gt;
You should reboot the system for this change to properly take effect.&lt;br /&gt;
Mapping of user and group IDs to and from NFS for Windows accounts  will get the information from Active Directory now. The IDs used will be  those specified on the UNIX Attributes panel of the User’s or Group’s  property window.&lt;br /&gt;
&lt;h3&gt;Configuring NFS Server for AD/2307 &lt;/h3&gt;With RFC 2307 Active Directory can store Unix IDs (user and group) on a  per user basis. This allows for a mapping between Windows SID and Unix  UIDs/GIDs. If you are going to have both UNM and AD/2307 working at the  same time, please remember that it is important to keep both  synchronized with the same information for security reasons. Open the Microsoft Services for NFS console. This can be started from the Administrative Tools entry in the Start Menu.&lt;br /&gt;
In the left panel select “Services for NFS” and then right-click to  pop up the action menu. Choose the Properties entry. A new window will  open labeled ‘Properties.’ Have the box beside “Active Directory Domain  Lookup” checked. Then enter either the domain name of the machine or the  IP address of the machine that AD is running on for your Windows  Domain. Then click OK.&lt;br /&gt;
You may need to reboot your machine for this change.&lt;br /&gt;
&lt;h3&gt;Sharing filesystems by NFS &lt;/h3&gt;Regardless of which choice is made for ID mapping you will need to  adjust any firewall the system is using so that NFS clients can  communicate with the server. You will need to ensure that the following  ports are open before sharing any filesystem: &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;UDP: 111, 1039, 1047, 1048 and 2049.&lt;/li&gt;
&lt;li&gt;TCP: 111, 1039, 1047, 1048 and 2049.&lt;/li&gt;
&lt;/ul&gt;Once the ports can pass through the firewall then filesystems can be  shared with the NFS Server. Within Windows Explorer select the  filesystem to be shared by NFS. Then open a pop-up menu for the  filesystem to be shared (right-click the mouse). From the popup menu  select ‘Sharing and Security’ or ‘Properties.’ (It doesn’t matter since  both open the same window.) A new window will open with several tabs.  Select the tab labeled ‘NFS Sharing.’ On this panel choose “Share this  folder.” Do set a name for this share so other systems can find it. If  you have a secure enough network you may want to check the box for Allow  Anonymous Access. If your anonymous ID is something other than “-2”  you’ll need to change the default ID.&lt;br /&gt;
By default the filesystem shared by NFS is given read-only access  with root access disallowed (quietly re-mapped to the anonymous ID). You  can adjust this by clicking on the Permissions button to open a new  window labeled “NFS Shared Permission.” Current permissions are listed.  New permissions can be added and/or current permissions deleted and/or  current permissions modified. You can set root access to &quot;allowed&quot; by  selecting the checkbox in this window. How to do each is pretty much  self-explanatory other than to note that “names” to add are machine  names, not user or group names.&lt;br /&gt;
If there are any options you want to adjust you can do so now before  selecting OK. Once you select OK then the filesystem should be available  to an NFS Client.&lt;br /&gt;
It would be good to test that the filesystem is now available by  attempting to mount it with an NFS Client on another machine. Using  another machine will also verify that all network, firewall and access  issues have been resolved. If access is a problem check that the client  host has been listed with access allowed in the “.maphosts” file. This  is the easiest to confirm before checking the firewall ports are open  (on server and client) and verifying DNS information for the server and  client can be found by each computer.&lt;br /&gt;
&lt;h3&gt;Summary &lt;/h3&gt;There are a lot of different items to install and configure just to get  basic NFS Server support; however, the end result can be very productive  in a heterogeneous operating system environment. Very few computer  sites run solely one operating system these days. But interoperability  amongst these systems is a must to avoid confusion and duplication of  stored data. Of course security must be maintained as tightly as  possible and the UNM and RFC 2307 support in Active Directory both help  to ensure this.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4699308610795301605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4699308610795301605'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/implementing-and-configuring-nfs-on.html' title='Implementing and configuring NFS on Windows Server 2003 R2'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-3743985428062473218</id><published>2011-01-07T19:45:00.003+05:30</published><updated>2011-01-11T09:10:17.996+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>(Tutorial) How To Install GNS3 on Centos/Redhat/Fedora</title><content type='html'>&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;IMP::&lt;/span&gt; &lt;/b&gt;Installation of all this packages will take a lot of time. So do it when you are free.&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;OK lets roll&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;First we&#39;ll have to install dependencies&lt;/b&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[user@admin ~]$ su&lt;br /&gt;
&lt;br /&gt;
Password: (Type in your root password here)&lt;br /&gt;
&lt;br /&gt;
[root@admin /]# yum install python python-devel xorg-x11-proto-devel libXext-devel&lt;br /&gt;
&lt;br /&gt;
[root@admin /]# yum install gcc-c++ &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Now we&#39;ll download and install Qt4&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin /]#cd /tmp&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin tmp#wget http://ftp.uludag.org.tr/pub/source/2009/qt-x11-opensource-src-4.5.1.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin tmp]#tar xzf qt-x11-opensource-src-4.5.1.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin tmp]# cd qt-x11-opensource-src-4.5.1&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin qt-x11-opensource-src-4.5.1]#./configure -nomake examples -nomake demos -qt-gif -no-exceptions -debug -qt3support&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin qt-x11-opensource-src-4.5.1]#gmake  &lt;i class=&quot;bbc&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;&amp;lt;====This might take 2-3 hrs&lt;/b&gt;&lt;/i&gt;.&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin qt-x11-opensource-src-4.5.1]#gmake install  &lt;i class=&quot;bbc&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;&amp;lt;====Another 30 mins or so&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin qt-x11-opensource-src-4.5.1]#PATH=/usr/local/Trolltech/Qt-4.5.1/bin:$PATH&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin qt-x11-opensource-src-4.5.1]#export PATH&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Next we&#39;ll install SIP&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin qt-x11-opensource-src-4.5.1]#cd ..&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin tmp]#wget http://ftp.uludag.org.tr/pub/source/2009/sip-4.8.1.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin tmp]#tar xzf sip-4.8.1.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin tmp]#cd sip-4.8.1&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin sip-4.8.1]#python configure.py&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin sip-4.8.1]#make&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin sip-4.8.1]#make install&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Next we&#39;ll Install PyQt4&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin sip-4.8.1]#cd ..&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin tmp]#wget http://ftp.uludag.org.tr/pub/source/2009/PyQt-x11-gpl-4.5.2.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin tmp]#tar xzf PyQt-x11-gpl-4.5.2.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin tmp]#cd PyQt-x11-gpl-4.5.2&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin PyQt-x11-gpl-4.5.2]#python configure.py&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin PyQt-x11-gpl-4.5.2]#make  &lt;i class=&quot;bbc&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;&amp;lt;=====This will take 30-60 mins&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin PyQt-x11-gpl-4.5.2]#make install&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;We are done with compiling part, now lets download GNS3 source files&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin tmp]#cd /opt&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin opt]#wget http://space.dl.sourceforge.net/project/gns-3/GNS3/0.7.2/GNS3-0.7.2-src.tar.bz2&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin opt]#tar -xjvf GNS3-0.7.2-src.tar.bz2 &amp;amp;&amp;amp; rm GNS3-0.7.2-src.tar.bz2&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin opt]#mv GNS3-0.7.2-src /opt/GNS3&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Create the following directories:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
These directories will be used by GNS3 – such as projects – where your    working projects will be stored, cache, temp, IOS images, etc.&lt;br /&gt;
&lt;br /&gt;
[root@admin opt]#cd /opt/GNS3&lt;br /&gt;
[root@admin GNS3]#mkdir Dynamips&lt;br /&gt;
[root@admin GNS3]#mkdir IOS&lt;br /&gt;
[root@admin GNS3]#mkdir Project&lt;br /&gt;
[root@admin GNS3]#mkdir Cache&lt;br /&gt;
[root@admin GNS3]#mkdir tmp&lt;br /&gt;
[root@admin GNS3]#chmod o+rw -R ./Project&lt;br /&gt;
[root@admin GNS3]#chmod o+rw -R ./tmp&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin GNS3]#chmod o+rw -R ./IOS&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Download binary of dynamips and make it executable&lt;/b&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin GNS3]#cd Dynamips &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-x86.bin&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt; IMP:: For 64-bit users&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.bin&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;[root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-amd64.bin &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
You can create a desktop shortcut by right-clicking on the desktop and    select “Create Launcher..”, Name it GNS3 and in the command section  type   in  &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;python &quot;/opt/GNS3/gns3&quot;&lt;/b&gt; &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;Double click  to open GNS3 and we  will edit  the default settings. If you don’t want  to use desktop icons  you can  create a launcher from your programs menu  by right clicking on  the Main  Menu, selecting Edit Menu. Select New  Item on the right and you  will  be presented with the same window where  you type in the above.  From  there you can move the launcher into any  menu section of your  choice. &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Fire up GNS3&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;*&lt;/b&gt; Go to edit | preferences and in the ‘Terminal command:’ section type in: &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;gnome-terminal -t %d -e &#39;telnet %h %p&#39; &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp; &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;*&lt;/b&gt; Under ‘Paths’ change the ‘Project directory:’ to &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;/opt/GNS3/Project &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;and the ‘IOS/PIX directory:’ to &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;/opt/GNS3/IOS &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;*&lt;/b&gt; Click on Dynamips tab on the left &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;For the ‘Executable path:’ type in &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;/opt/GNS3/Dynamips/dynamips-0.2.8-RC2-x86.bin &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;*&lt;/b&gt; Change the ‘Working directory:’ to &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;/opt/GNS3/tmp &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;Click on the Capture tab on the left &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;*&lt;/b&gt; For the ‘Working directory for capture files:’ change it to &lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;/opt/GNS3/Project&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Imp:: &lt;/b&gt;&lt;/span&gt;When you want to stop the router, use right click stop on the router.&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/3743985428062473218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/3743985428062473218'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/tutorial-how-to-install-gns3-on_07.html' title='(Tutorial) How To Install GNS3 on Centos/Redhat/Fedora'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-6793009243058194646</id><published>2011-01-07T09:09:00.002+05:30</published><updated>2011-01-07T09:09:43.014+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><title type='text'>Samba/LDAP configuration on RHEL5</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt; font-weight: bold;&quot;&gt;Samba/LDAP configuration on RHEL5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt; font-weight: bold;&quot;&gt;Introduction&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;A straightfoward tutorial to configure Samba/LDAP as a Primary Domain Controller / Directory on RHEL5.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Note. local user mapping is mandatory as Samba needs UNIX users too.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt; font-weight: bold;&quot;&gt;Package dependencies&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Make sure you&#39;ve got those RHEL packages installed,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;openldap-servers&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;nss_ldap&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;samba&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;httpd&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;mysql&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;mysql-server&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;php-ldap&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;php-mysql&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;php-pdo&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;php-cli&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-DBI&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-DBD-MySQL&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-Convert-ASN1&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-XML-NamespaceSupport&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-XML-SAX&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-Net-SSLeay&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-IO-Socket-SSL&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-LDAP&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-Digest-SHA1&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Note. the &quot;nss_ldap&quot; package provides the PAM/LDAP library,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;ll /lib/security/pam_ldap.so&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Plus those few ones from EPEL (&lt;a href=&quot;http://fedoraproject.org/wiki/EPEL&quot;&gt;fedoraproject.org/wiki/EPEL&lt;/a&gt;),&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-Crypt-SmbHash&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-Digest-MD4&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-Jcode&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-Unicode-Map&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-Unicode-Map8&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-Unicode-MapUTF8&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;perl-Unicode-String&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt; font-weight: bold;&quot;&gt;Network settings&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Configure static look ups,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;vi /etc/hosts&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;like,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;127.0.0.1&amp;nbsp;&amp;nbsp;localhost&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;IP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;HOSTNAME&amp;nbsp;&amp;nbsp;SHORT_HOSTNAME&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt; font-weight: bold;&quot;&gt;OpenLDAP server&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Add that schema,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;cp /usr/share/doc/samba-3.0.25b/LDAP/samba.schema /etc/openldap/schema/&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Configure the daemon,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;mv -f /etc/openldap/slapd.conf /etc/openldap/slapd.conf.dist&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;cat &amp;gt; /etc/openldap/slapd.conf &amp;lt;&lt;eof9 &amp;amp;&amp;amp;=&quot;&quot; done=&quot;&quot; print=&quot;&quot;&gt;&lt;/eof9&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;include         /etc/openldap/schema/core.schema&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;include         /etc/openldap/schema/cosine.schema&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;include         /etc/openldap/schema/inetorgperson.schema&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;include         /etc/openldap/schema/nis.schema&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;include         /etc/openldap/schema/samba.schema&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;allow bind_v2&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;pidfile         /var/run/openldap/slapd.pid&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;argsfile        /var/run/openldap/slapd.args&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;database        bdb&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;suffix          &quot;dc=example,dc=net&quot;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;rootdn          &quot;cn=admin,dc=example,dc=net&quot;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;rootpw          LDAP_PASSWORD&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;# rootpw                {crypt}ijFYNcSNctBYg&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;directory       /var/lib/ldap&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index objectClass                       eq,pres&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index ou,cn,mail,surname,givenname      eq,pres,sub&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index uidNumber,gidNumber,loginShell    eq,pres&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index uid,memberUid                     eq,pres,sub&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index nisMapName,nisMapEntry            eq,pres,sub&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;EOF9&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Note you could use a crypted password.  Then add,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;password-hash   {CRYPT}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Note you could add some Samba indexes,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index           cn,sn,uid,displayName           pres,sub,eq&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index           uidNumber,gidNumber             eq&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index           sambaSID                        eq&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index           sambaPrimaryGroupSID            eq&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index           sambaDomainName                 eq&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index           objectClass                     pres,eq&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;index           default                         sub&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Note you could also add the TLS configuration later on.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Configure the database,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_CONFIG&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;chown ldap:ldap /var/lib/ldap/DB_CONFIG&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;chmod 600 /var/lib/ldap/DB_CONFIG&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Start, check and stop the service,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;service ldap start&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;ldapsearch -x -b &#39;&#39; -s base &#39;(objectclass=*)&#39; namingContexts # should return two lines&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;service ldap stop&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;slapcat # should return empty&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Initialize the database,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;cat &amp;gt; /etc/openldap/init.ldif &amp;lt;&lt;eof9 &amp;amp;&amp;amp;=&quot;&quot; done=&quot;&quot; print=&quot;&quot;&gt;&lt;/eof9&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;dn: dc=example,dc=net&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;objectclass: dcObject&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;objectclass: organization&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;o: Ministere de la justice&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;dc: base&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;dn: cn=admin,dc=example,dc=net&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;objectclass: organizationalRole&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;cn: admin&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;EOF9&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;slapadd -l /etc/openldap/init.ldif &amp;amp;&amp;amp; print &quot; Done&quot;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;chown -R ldap:ldap /var/lib/ldap&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;chmod 600 /var/lib/ldap/*&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;slapcat # should return the two ldap entries&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Start &amp;amp; check the service,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;service ldap start&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;chkconfig ldap on&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;ldapsearch -x -b &quot;dc=example,dc=net&quot;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt; font-weight: bold;&quot;&gt;Phpldapadmin frontend (optional)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Prepare PHP,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;mv -f /etc/php.ini /etc/php.ini.dist&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;sed &#39;s/memory_limit = 16M/memory_limit = 32M/&#39; /etc/php.ini.dist &amp;gt; /etc/php.ini&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Fetch phpldapadmin (&lt;a href=&quot;http://phpldapadmin.sourceforge.net/&quot;&gt;phpldapadmin.sourceforge.net&lt;/a&gt;) and untar it,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;tar xzf phpldapadmin-1.1.0.5.tar.gz&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;mv phpldapadmin-1.1.0.5 /var/www/html/ldap&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Note if this is a fresh OS install,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;mv -f /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf.dist&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Configure the frontend,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;vi /var/www/html/ldap/config/config.php&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;namely,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;$config-&amp;gt;custom-&amp;gt;jpeg[&#39;tmpdir&#39;] = &quot;/tmp&quot;;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Start the http daemon,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;service httpd start&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;chkconfig httpd on&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Check the url and login,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;&lt;a href=&quot;http://ip/ldap&quot;&gt;IP/ldap&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt; font-weight: bold;&quot;&gt;Samba Domain Controller&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Configure the daemons,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;mv /etc/samba/smb.conf /etc/samba/smb.conf.dist&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;cat /usr/share/doc/samba-3.0.25b/LDAP/smbldap-tools-0.9.2/smb.conf \&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;| sed &#39;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/^$/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/^#/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/^[[:space:]]*#/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s|/opt/IDEALX/|/usr/local/|g;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/cn=Manager/cn=admin/g;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/dc=idealx,dc=org/dc=example,dc=net/g;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/idealx.com/example.net/g;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/IDEALX-NT/EXAMPLE/g;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/PDC-SRV/SHORT_HOSTNAME/g;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/Samba Server %v/Domain Controller/g&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/min passwd length/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/printer admin/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;&#39; &amp;gt; /etc/samba/smb.conf &amp;amp;&amp;amp; print &quot; Done&quot;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Edit the configuration,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;vi /etc/samba/smb.conf&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;and add this at the end for user shares,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;[homes]&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;        comment = Home Directories&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;        browseable = no&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;        writable = yes&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;;       valid users = %S&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;;       valid users = MYDOMAIN\%S&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt; font-weight: bold;&quot;&gt;Smbldap-tools connector&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Prepare the scripts,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;cp /usr/share/doc/samba-3.0.25b/LDAP/smbldap-tools-0.9.2/smbldap-* /usr/local/sbin/&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;cp /usr/share/doc/samba-3.0.25b/LDAP/smbldap-tools-0.9.2/smbldap_tools.pm /usr/local/sbin/&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;chmod +x /usr/local/sbin/smbldap*&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Configure the connector,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;cat /usr/share/doc/samba-3.0.25b/LDAP/smbldap-tools-0.9.2/smbldap.conf \&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;| sed &#39;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/^$/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/^#/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/^[[:space:]]*#/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s|/opt/IDEALX/|/usr/local/|g;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/cn=Manager/cn=admin/g;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/dc=idealx,dc=org/dc=example,dc=net/g;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/idealx.com/example.net/g;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/IDEALX-NT/EXAMPLE/g;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/PDC-SRV/SHORT_HOSTNAME/g;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;s/ldapTLS=&quot;1&quot;/ldapTLS=&quot;0&quot;/;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/cafile/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/clientcert/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/clientkey/d;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;&#39; &amp;gt;&amp;gt; /etc/smbldap-tools/smbldap.conf &amp;amp;&amp;amp; print &quot; Done&quot;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Get the Domaine Controller&#39;s SID,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;net getlocalsid&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;and edit the configuration to change the SID,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;vi /etc/smbldap-tools/smbldap.conf&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;like,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;SID=_SID_&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Configure the access information,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;cat &amp;gt; /etc/smbldap-tools/smbldap_bind.conf &amp;lt;&lt;eof9 &amp;amp;&amp;amp;=&quot;&quot; done=&quot;&quot; print=&quot;&quot;&gt;&lt;/eof9&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;masterDN=&quot;cn=admin,dc=example,dc=net&quot;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;masterPw=&quot;LDAP_PASSWD&quot;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;EOF9&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Fix file permissions,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;chmod 644 /etc/smbldap-tools/smbldap.conf&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;chmod 600 /etc/smbldap-tools/smbldap_bind.conf&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt; font-weight: bold;&quot;&gt;Ready to go&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Configure the UNIX users&#39; LDAP mapping,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;authconfig-tui&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Note. enable local authorize&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Note. those files get altered,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;#/etc/nsswitch.conf&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;#/etc/pam.d/system-auth-ac&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;#/etc/ldap.conf&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;#/etc/openldap/ldap.conf&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Check Samba&#39;s configuration and setyp the LDAP master password,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;testparm&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;smbpasswd -w LDAP_MASTER_PASSWORD&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Populate the LDAP tree,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;/usr/local/sbin/smbldap-populate&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Start the Domain Controller,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;tail -f /var/log/messages &amp;amp;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;tail -f /var/log/samba/* &amp;amp;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;service smb start&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;chkconfig on&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;net groupmap list&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Join the &quot;EXAMPLE&quot; domain from a Windows box with those creditentials:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;Login : root&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;Password : LDAP_MASTER_PASSWORD&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt; font-weight: bold;&quot;&gt;Usage&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Create a group,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;smbldap-groupadd -a GROUPNAME&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;getent group | grep GROUPNAME&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Create a user,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;smbldap-useradd -a -g GROUPNAME -G &#39;Domain Users&#39; -m -s /bin/ksh -d /home/USERNAME -F &#39;&#39; -P USERNAME&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;getent passwd | grep USERNAME&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Note. primary group &#39;GROUPNAME&#39; and secondary group &#39;Domain Users&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Note. other possible groups : &quot;Administrators&quot; and &quot;Domain Admins&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;Check in the LDAP repository for USERNAME&#39;s primary group,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;dn: uid=USERNAME,ou=Users,dc=example,dc=net&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;...&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;gidNumber: GID_NUMBER&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;and secondary groups (primary group is also referenced as secondary group in the LDAP repo),&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;dn: cn=GROUPNAME,ou=Groups,dc=example,dc=net&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;...&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;memberUid: USERNAME&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &#39;Arial&#39;,sans-serif; font-size: 10pt;&quot;&gt;also,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;dn: cn=Domain Users,ou=Groups,dc=example,dc=net&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;...&lt;/div&gt;&lt;div style=&quot;border-left: 3px solid gray; font-family: monospace,&#39;Courier New&#39;; font-size: 9pt; margin: 0px 0px 0px 20px; padding: 0px 0px 0px 7px;&quot;&gt;memberUid: USERNAME&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/6793009243058194646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/6793009243058194646'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2011/01/sambaldap-configuration-on-rhel5.html' title='Samba/LDAP configuration on RHEL5'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-4313201285337808698</id><published>2010-12-13T10:50:00.003+05:30</published><updated>2010-12-13T10:51:53.313+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="HACKER_NEWS"/><title type='text'>World Record : 404907 websites hacked by iskorpitx (Turkish Hacker) !</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;404907 websites&lt;/span&gt;&lt;/b&gt; hacked by &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Iskorpitx&lt;/span&gt; (&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Turkish Hacker&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCNkmuPZR8rshmDCgJ48reOOzXUBrDnNkno0yzbN2qckdteNiYkoCzM9yb1lf3bDZjFWwbX9KIO9PhvWQ9p2QNeItwlAbIW80v89ecKzfvKn3YGtf8Ctema7zZ4VaOsE1nlp7g37aRVFFt/s1600/Untitled.jpg&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;285&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCNkmuPZR8rshmDCgJ48reOOzXUBrDnNkno0yzbN2qckdteNiYkoCzM9yb1lf3bDZjFWwbX9KIO9PhvWQ9p2QNeItwlAbIW80v89ecKzfvKn3YGtf8Ctema7zZ4VaOsE1nlp7g37aRVFFt/s400/Untitled.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Type the word “&lt;b&gt;Iskorpitx&lt;/b&gt;”  into Google, and see what you get. Exactly the same word spit back at  you, except from any number of different sites. That’s because Iskorpitx  is the handle of a hacker who recently committed the biggest hacking  incident in web-hosting history. Those search results are the graffiti  he left.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;,Arial,Helvetica; font-size: xx-small;&quot;&gt;&lt;b&gt;Quote from zone-h.org:&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;,Arial,Helvetica; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;,Arial,Helvetica; font-size: xx-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;,Arial,Helvetica; font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Turkish  cracker going by the handle &quot;Iskorpitx&quot;, succesfully hacked 21,549  websites in one shot (plus 17,000 as our last update) and defaced (on a  secondary page) all of them with a message showing the Turkish flag  (with AtaTurk face on it)&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;,Arial,Helvetica; font-size: xx-small;&quot;&gt;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;,Arial,Helvetica; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Also,&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;b&gt;Iskorpitx &lt;/b&gt;was reportedly responsible for the largest defacement in web history, successfully hacking &lt;b&gt;21,549 websites&lt;/b&gt; in one shot in May 2006.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;,Arial,Helvetica; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;Biggest news was about &lt;b&gt;NZ Parliament video site&lt;/b&gt; being hacked, and also sites hosted by &lt;b&gt;A2Hosting&lt;/b&gt; and &lt;b&gt;GoDaddy&lt;/b&gt;.But the attack was actually bigger than that, even some &lt;b&gt;Estonian sites&lt;/b&gt; were attacked.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;After doing a research, it appears to me that&lt;b&gt; iSKORPiTX&lt;/b&gt;&amp;nbsp;does this sort of thing from time to time, every 3-6 months or so. I found one place where someone said &lt;b&gt;he attacked over 20,000 sites in under 24 hours&lt;/b&gt;.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Iskorpitx has quite a reputation for this sort of thing. &lt;b&gt;Since 2003, he&#39;s hacked an estimated 117,000 websites&lt;/b&gt;, not even including this latest round, and some of those were the sites of his own country&#39;s government.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Based on Zone-H’s record which is always verified to be accurate, tens of thousands of &lt;b&gt;GoDaddy customers were defaced&lt;/b&gt;.&amp;nbsp;  Without some kind of investigation, we can’t be certain if GoDaddy knew  what and when but if the forum thread from April 2005 is authentic and  accurate, then we have a big problem that nothing was done in over a  year which resulted in the biggest mass web defacement ever.&amp;nbsp; As a  customer of GoDaddy hosting myself, I want to know the truth.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;It  remains unknown whether the most recent attacks where made at the root  or webserver level. Iskorpitx executes his hacks by creating subpages,  regardless of what authorization level he achieves on the servers.&lt;br /&gt;
&lt;br /&gt;
Iskorpitx&#39;s motivations are unclear. Although many of the Turkish  hackers have religious agendas, he does not seem to share them. Whatever  his reasons or inspiration, Iskorpitx is acting as a massive nuisance  throughout the Web.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4313201285337808698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4313201285337808698'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2010/12/world-record-404907-websites-hacked-by.html' title='World Record : 404907 websites hacked by iskorpitx (Turkish Hacker) !'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCNkmuPZR8rshmDCgJ48reOOzXUBrDnNkno0yzbN2qckdteNiYkoCzM9yb1lf3bDZjFWwbX9KIO9PhvWQ9p2QNeItwlAbIW80v89ecKzfvKn3YGtf8Ctema7zZ4VaOsE1nlp7g37aRVFFt/s72-c/Untitled.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-9041590703938508461</id><published>2010-12-13T10:48:00.000+05:30</published><updated>2010-12-13T10:48:05.068+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="HACKER_NEWS"/><title type='text'>Pakistan Law Website and 9 other Hacked By Team NUTS</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Pakistan Law Website&lt;/span&gt;&lt;/b&gt; and 9 other Hacked By &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;Team NUTS&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvmU_xgGSd30jGPR2aVS6UdGnEYgQ5d4JJu5-3yAdF6S6I0Kc95xUzPmax-IzACe5fGaz5mjv7tuPcWMUfQIOH67zI8_BOoRZEHZRZFPoeVYI5lGBcyNO08yOD4UfnYhGt-ePu8RCEGtxs/s1600/Untitled.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvmU_xgGSd30jGPR2aVS6UdGnEYgQ5d4JJu5-3yAdF6S6I0Kc95xUzPmax-IzACe5fGaz5mjv7tuPcWMUfQIOH67zI8_BOoRZEHZRZFPoeVYI5lGBcyNO08yOD4UfnYhGt-ePu8RCEGtxs/s640/Untitled.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;Law website :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;a href=&quot;http://nwfplaws.gon.pk/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://nwfplaws.gon.pk/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Other websites Hacked are :&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span data-jsid=&quot;text&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;text_exposed_root text_exposed&quot; id=&quot;id_4d042b60390e63f09994066&quot;&gt;&lt;a href=&quot;http://aits.com.pk/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://aits.com.pk/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://tsn.com.pk/index.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;span&gt;http://tsn.com.pk/index.ht&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span class=&quot;word_break&quot;&gt;&lt;/span&gt;ml&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://supersoft.com.pk/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://supersoft.com.pk/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://pizzanpratha.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://pizzanpratha.com/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://icms.pk/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://icms.pk/&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;text_exposed_show&quot;&gt;&lt;a href=&quot;http://theexperts.com.pk/index.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;span&gt;http://theexperts.com.pk/i&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span class=&quot;word_break&quot;&gt;&lt;/span&gt;ndex.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://hydrotech.org.pk/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://hydrotech.org.pk/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://aits.com.pk/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://aits.com.pk/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://techsense.com.pk/default.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;span&gt;http://techsense.com.pk/de&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span class=&quot;word_break&quot;&gt;&lt;/span&gt;fault.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/9041590703938508461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/9041590703938508461'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2010/12/pakistan-law-website-and-9-other-hacked.html' title='Pakistan Law Website and 9 other Hacked By Team NUTS'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvmU_xgGSd30jGPR2aVS6UdGnEYgQ5d4JJu5-3yAdF6S6I0Kc95xUzPmax-IzACe5fGaz5mjv7tuPcWMUfQIOH67zI8_BOoRZEHZRZFPoeVYI5lGBcyNO08yOD4UfnYhGt-ePu8RCEGtxs/s72-c/Untitled.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-7576717742226331908</id><published>2010-12-13T10:44:00.000+05:30</published><updated>2010-12-13T10:44:45.726+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="HACKER_NEWS"/><title type='text'>Genesco&#39;s Credit Card Processing System Hacked !</title><content type='html'>&lt;div style=&quot;font-family: Verdana; font-size: 13px; margin-top: 0px;&quot;&gt;Specialty retailer &lt;b&gt;Genesco Inc.&lt;/b&gt;  said Friday that it suffered a criminal intrusion into the part of its  computer network that processes payment card transactions and certain  details of cards might have been compromised, but added that the  intrusion was likely contained after the company took immediate steps to  secure the affected part of its network. The company expressed  confidence that customers can now safely use their credit and debit  cards in its stores.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdmge02hgsp7_AhF0825MxPsV_6VvBh2KuZqZmD7q_96H2kZ92pTn_ojGS45RwWFYVnPt-c5hAAmt_gI-_JTdTb_Odn0eE6dkvrfsv5rXs2xexecV87Lu7o3Iq1_v-sRJir0ZXbY6xi691/s1600/credit-card-merchant-account.jpg&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdmge02hgsp7_AhF0825MxPsV_6VvBh2KuZqZmD7q_96H2kZ92pTn_ojGS45RwWFYVnPt-c5hAAmt_gI-_JTdTb_Odn0eE6dkvrfsv5rXs2xexecV87Lu7o3Iq1_v-sRJir0ZXbY6xi691/s640/credit-card-merchant-account.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana; font-size: 13px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana; font-size: 13px;&quot;&gt;Nashville,  Tennessee-based Genesco said that the portion of its computer network  that processes payment card transactions for its United States Journeys,  Journeys Kidz, Shi by Journeys and Johnston &amp;amp; Murphy stores, and  for some of its Underground Station stores suffered a criminal  intrusion. While the extent of the intrusion was not known at the  current point of time, the company said it is conducting a probe with  the help of an outside expert to determine the extent of any possible  compromise of customer information that occurred in the intrusion.&lt;/div&gt;&lt;div style=&quot;font-family: Verdana; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana; font-size: 13px;&quot;&gt;Robert Dennis, Chairman, President and Chief Executive Officer of Genesco said, &quot;&lt;b&gt;Since  we learned of the intrusion, we have worked diligently with outside  experts to protect our customers&#39; information and we are confident that  they are safe shopping with their credit and debit cards at our stores.  We recommend that our customers review their card statements and other  account information carefully and immediately notify their card issuer  if they suspect fraudulent use. We sincerely regret any inconvenience  this attack on our network may cause our customers.&lt;/b&gt;&quot;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana; font-size: 13px;&quot;&gt;Genesco  noted it was possible that the credit or debit card number, expiration  date and card verification code contained on the magnetic stripe of some  payment cards used at stores in the affected chains may have been  compromised during the intrusion. However, the company said it currently  has no reason to believe that personal information, such as names,  addresses or Social Security numbers, was acquired by the intruder.  Further, the company said that payment card transactions in any of its  e-commerce or catalog businesses, Lids Sports businesses, or its  Canadian stores did not seem to be affected by the intrusion.&lt;/div&gt;&lt;div style=&quot;font-family: Verdana; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana; font-size: 13px;&quot;&gt;Genesco said  it has notified law enforcement authorities as well as the major payment  card brands and is cooperating with them to identify those responsible  for the intrusion. On Wednesday, Mastercard Inc.&amp;nbsp;said its website was  experiencing heavy traffic, but credit card use was not affected. The  company made no comment on whether the website had been taken down by  hackers. The media had earlier reported a series of hacker attacks on  various websites belonging to organizations that have denied service to  Wikileaks, the whistleblower website. &lt;b&gt;Mastercard had said on Monday that &#39;it would no longer process donations&quot; to Wikileaks, terming the site&#39;s activities &quot;illegal&quot;.&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-top: 0px;&quot;&gt;Paypal,  Visa Inc. and other banks previously connected to Wikileaks also  severed their ties with Wikileaks. These companies withdrew services to  the controversial website after it leaked secret U.S. diplomatic cables.  In retaliation, hackers in support of Wikileaks brought down the  websites of the credit card giants.&lt;/div&gt;&lt;div style=&quot;margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;In Friday&#39;s regular trading session, GCO is trading at $38.86, up  $0.20 or 0.52% on a volume of 1,580 shares. The stock has been trading  in a range of $21.00-$41.20 in the past 52 weeks.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/7576717742226331908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/7576717742226331908'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2010/12/genescos-credit-card-processing-system.html' title='Genesco&#39;s Credit Card Processing System Hacked !'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdmge02hgsp7_AhF0825MxPsV_6VvBh2KuZqZmD7q_96H2kZ92pTn_ojGS45RwWFYVnPt-c5hAAmt_gI-_JTdTb_Odn0eE6dkvrfsv5rXs2xexecV87Lu7o3Iq1_v-sRJir0ZXbY6xi691/s72-c/credit-card-merchant-account.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-7932057468857573288</id><published>2010-09-05T09:00:00.000+05:30</published><updated>2010-09-05T09:00:18.154+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="BlackBerry"/><title type='text'>Cracking the BlackBerry</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, clean, sans-serif; font-size: 14px; line-height: 17px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;first&quot; style=&quot;line-height: 17px; margin-top: 0px;&quot;&gt;The showdown between the Indian government and Research in Motion, the Canadian company behind the BlackBerry service has reached a crescendo. Indian security agencies have always been leery of BlackBerry&#39;s walled garden approach. But after the UAE, Saudi Arabia and now Lebanon announced a ban on BlackBerry services, the Indian government seems to have been galvanised into action.&lt;/div&gt;&lt;div style=&quot;line-height: 17px;&quot;&gt;Is there really a security risk with the BlackBerry or is the government over-reacting? There are many ways to access email with your mobile device. Most smartphones are designed to integrate the mobile device with the office network. To the server, the smartphone appears as just another computer which can pull emails from the server and users read emails on their phones in much the same way as they do on their laptops. The BlackBerry service, on the other hand, is designed so that all data sent by a BlackBerry device is compressed to a fraction of its original size before being sent to vast RIM server farms in Canada. These servers connect to individual BlackBerries using a &quot;push&quot; technology that allows email messages to reach the recipient device almost as soon as it hits the Canadian server. The compression also ensures that the message is encrypted, imparting, in addition to rock-steady reliability, an unparalleled privacy in email communication.&lt;/div&gt;&lt;div style=&quot;line-height: 17px;&quot;&gt;Now, while privacy is good — perhaps even necessary for the legitimate business user — it is a nightmare for law enforcement agencies constantly locking horns with tech-savvy terrorists. The inability to read email exchanges between individuals plotting anti-national activity is often the difference between preventing a crime and getting there too late.&lt;/div&gt;&lt;div style=&quot;line-height: 17px;&quot;&gt;Under Indian telecom licenses, the government has the right to require telcos to allow the government access to their networks. However, interception is of little use if the message being intercepted is itself encrypted. The encryption algorithms used by BlackBerries are designed to withstand decryption attempts by super-computers. Which is why the Indian government wants RIM to part with its encryption keys.&lt;/div&gt;&lt;div style=&quot;line-height: 17px;&quot;&gt;Even if RIM does agree to do this, of itself, this will not solve the problem. Even if the government has access to encryption keys in respect of all retail customers, it would still be unable to access emails sent from corporate BlackBerry accounts. Enterprise customers can buy their own BlackBerry servers with advanced security features. These private BlackBerry servers have their own encryption keys, over which RIM has no access, in order to assure customers that no one outside their organisation have access to their email. It is currently impossible for RIM to provide the government access to the many thousands of keys already issued to enterprise customers even if a decision is taken to do so going forward.&lt;/div&gt;&lt;div style=&quot;line-height: 17px;&quot;&gt;There is a third service that is potentially even more dangerous from a law enforcement perspective — BlackBerry Messenger. Anyone who has a BlackBerry device can share their PIN with any other BlackBerry owner and send messages between their respective devices instantly and without charge. This extremely popular application has a huge following in the Blackberry universe, but since it enables instant messaging, has real time implications for law enforcement.&lt;/div&gt;&lt;div style=&quot;line-height: 17px;&quot;&gt;There is little doubt that the fears of Indian law enforcement agencies are well founded. But practically, is there anything one can do about it?&lt;/div&gt;&lt;div style=&quot;line-height: 17px;&quot;&gt;The BlackBerry service provides an encrypted solution that protects customer emails without the need for customers to implement complex settings. However, encryption technology, of the high level used by the BlackBerry service, is not the exclusive preserve of RIM. Anyone with even moderate computer skills would be able to implement the same level of encryption to cloak email passing between personal computers or other mobile devices. It will be relatively easy for a terrorist armed with such devices and using the normal 3G or GPRS data connectivity to ensure that their messages are impossible to read, even if intercepted. What then will the government do next — ban all connected mobile devices? While there is every need to be vigilant and to constantly evolve our defences, we must be rational and measured in our reactions. There is a fine line between precaution and paranoia.&lt;/div&gt;&lt;div style=&quot;line-height: 17px;&quot;&gt;The writer is a Bangalore-based lawyer&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/7932057468857573288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/7932057468857573288'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2010/09/cracking-blackberry.html' title='Cracking the BlackBerry'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8200638605161253887.post-4198264956285905778</id><published>2010-08-30T08:54:00.000+05:30</published><updated>2010-08-30T08:54:37.270+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="RHCSS"/><title type='text'>RHS333 - Red Hat Enterprise Security and Network Services</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, &#39;Bitstream Vera Sans&#39;, helvetica, verdana, arial, sans-serif; font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px;&quot;&gt;Components of the Exam&lt;/h2&gt;&lt;div style=&quot;line-height: 1.25em; margin-top: 0.25em;&quot;&gt;The Enterprise Security: Network Services Expertise Exam is organized into two sections:&lt;/div&gt;&lt;ul style=&quot;margin-left: 12px; padding-left: 12px;&quot;&gt;&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;Centralized Authentication Security: 3.0 hours&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;Network Service Security: 3.0 hours&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;line-height: 1.25em;&quot;&gt;In order to earn the Enterprise Security: Network Services Certificate of Expertise, one must earn a score of 70 or higher on each section.&lt;/div&gt;&lt;h2 style=&quot;font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px;&quot;&gt;Study Points for the Exam&lt;/h2&gt;&lt;h3 style=&quot;font-size: small; margin-bottom: 0px; margin-top: 0px; padding-bottom: 0px;&quot;&gt;Prerequisite skills for the Exam&lt;/h3&gt;&lt;div style=&quot;line-height: 1.25em; margin-top: 0.25em;&quot;&gt;Candidates must be a Red Hat Certified Engineer on a release that is considered current in order to take this exam.&lt;/div&gt;&lt;h3 style=&quot;font-size: small; margin-bottom: 0px; margin-top: 0px; padding-bottom: 0px;&quot;&gt;Enterprise Security: Network Services&lt;/h3&gt;&lt;div style=&quot;line-height: 1.25em; margin-top: 0.25em;&quot;&gt;Candidates should be able to perform the tasks listed below.&lt;/div&gt;&lt;h3 style=&quot;font-size: small; margin-bottom: 0px; margin-top: 0px; padding-bottom: 0px;&quot;&gt;Centralized Authentication Security&lt;/h3&gt;&lt;ul style=&quot;margin-left: 12px; padding-left: 12px;&quot;&gt;&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure an NIS server to provide directory services&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure Kerberos to provide user authentication&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure NFSv4 server&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure a network client to use NIS for directory information&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure a network client to use Kerberos for authentication&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure a network client to mount an NFSv4 export&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure r-clients (rlogin, rcp, etc.) and telnet to use Kerberos&lt;/li&gt;
&lt;/ul&gt;&lt;h3 style=&quot;font-size: small; margin-bottom: 0px; margin-top: 0px; padding-bottom: 0px;&quot;&gt;Network Services Security&lt;/h3&gt;&lt;ul style=&quot;margin-left: 12px; padding-left: 12px;&quot;&gt;&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;Use xinetd and TCP wrappers to restrict access to network services&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;Configure Postfix and Sendmail to:&lt;ul style=&quot;margin-left: 12px; padding-left: 12px;&quot;&gt;&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;filter mail based on message characteristics&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;use TLS for secure communication&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;use the Real-time Blackhole List (RBL) via DNS&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;Configure POP/IMAP to use SSL/TLS for secure communication&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;Configure the following aspects of DNS:&lt;ul style=&quot;margin-left: 12px; padding-left: 12px;&quot;&gt;&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;master domain&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;slave domain&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;views&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;forwarders&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;blackhole lists (RBL)&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;TSIG&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;Use GPG tools to:&lt;ul style=&quot;margin-left: 12px; padding-left: 12px;&quot;&gt;&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;generate key pairs&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;sign documents&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;encrypt documents&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;decrypt documents&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;verify document signatures&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure a certificate authority (CA) and sign certificate requests&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure httpd to use a SSL certificate signed by a certifying authority&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure httpd to use passwords and/or network location to restrict access to content&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;configure FTP security to&lt;ul style=&quot;margin-left: 12px; padding-left: 12px;&quot;&gt;&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;support FTP only users&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px;&quot;&gt;implement host based access restrictions&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;line-height: 1.25em;&quot;&gt;As with all Red Hat performance-based exams, configurations must persist after reboot without intervention.&lt;/div&gt;&lt;h2 style=&quot;font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px;&quot;&gt;&lt;br /&gt;
&lt;/h2&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4198264956285905778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8200638605161253887/posts/default/4198264956285905778'/><link rel='alternate' type='text/html' href='http://jigneshdhameliya.blogspot.com/2010/08/rhs333-red-hat-enterprise-security-and.html' title='RHS333 - Red Hat Enterprise Security and Network Services'/><author><name>JIGNESH PATEL</name><uri>http://www.blogger.com/profile/03375808547266533257</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzjQomb67n9dY-jqQW_LxW9icgnDslj9LZqm-LNtKrimnh3NZn7PrOTzi7zpemmpHR9dhDVMQKxkETceMG7aKoXubid_n9g29K8bfnLb4MYt9dzsCE2Ym8X-YD6AeoxGo/s220/images.jpg'/></author></entry></feed>