<?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-1882332153809759054</id><updated>2024-08-28T00:46:48.377-07:00</updated><category term="email eposta eklenti attachment uuencode linux terminal"/><category term="how to ping linux unix"/><category term="ssh linux unix secure shell"/><title type='text'>Linux Günlüğü</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxtutkusu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://linuxtutkusu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Özkan</name><uri>http://www.blogger.com/profile/10120716519831468011</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1882332153809759054.post-1999622516235549085</id><published>2010-06-07T17:45:00.000-07:00</published><updated>2010-06-07T17:51:41.925-07:00</updated><title type='text'>qsheff handboook</title><content type='html'>&lt;pre&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;WHAT IS qSheff?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;qSheff is a content scanner which can work with qmail e-mail server. It can&lt;br /&gt;also be used as qmail-queue interface to execute other content scanners.&lt;br /&gt;E-mails that contains spam or virus are blocked at SMTP level. Transfers clean&lt;br /&gt;e-mails to queue.&lt;br /&gt;&lt;br /&gt;Because qSheff runs at SMTP level, it fairly reduces servers load by cutting&lt;br /&gt;e-mails before entering queue. For the best performance, it&#39;s fully coded in&lt;br /&gt;pure C language.&lt;br /&gt;&lt;br /&gt;qSheff offers much better features than alternatives.&lt;br /&gt;&lt;br /&gt;Features:&lt;br /&gt;&lt;br /&gt;. ClamAv antivirus (With direct domain-socket communication)&lt;br /&gt;. Option to run external content filter or antivirus (custom program)&lt;br /&gt;. Ability to pass internal variables to external programs in the form&lt;br /&gt;  of %%mailfrom%%, %%mailto%%, %%remoteip%%, %%msgfile%% and %%tempdir%%&lt;br /&gt;. Header and body filtering with the support of regular expressions&lt;br /&gt;. Attachment filtering&lt;br /&gt;. Protecting e-mails from predefined origin with ignore list (ignore list)&lt;br /&gt;. Quarantine support for spam and virus&lt;br /&gt;. Ability to store all e-mail traffic to local disk&lt;br /&gt;. Subject tagging for MUA&#39;s to write their own filters&lt;br /&gt;. Deleting content of infected e-mails and delivering to user with subject&lt;br /&gt;  tag and predefined message&lt;br /&gt;. Blocking e-mails with broken headers&lt;br /&gt;. Detailed logging within one line&lt;br /&gt;. Logging to custom file or to syslog server&lt;br /&gt;. Clean C source code which is open to further development&lt;br /&gt;. Easy error detection and debugging&lt;br /&gt;. Ability to run with qmail-queue symbolic link after qmailqueue patch&lt;br /&gt;. Support for custom error patch. Can respond with user-defined error codes,&lt;br /&gt;  can return the name of the virus or spam-catching rule&lt;br /&gt;. Ability to inactivate filtering for e-mails from local&lt;br /&gt;. Basic countermeasures for DOS attacks&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:180%;&quot; &gt;WORKING THEORY&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Without any plugins, qSheff can work like described below:&lt;br /&gt;&lt;br /&gt;SMTP  --&gt; tcpserver --&gt; qmail-smtpd --&lt;br /&gt;                                     |&lt;br /&gt;                                      --&gt; qmail-queue --&gt;&lt;br /&gt;                                     |&lt;br /&gt;Local --&gt; MUA --&gt; qmail-inject -------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A qmail system with qsheff installed is shown below:&lt;br /&gt;&lt;br /&gt;SMTP  --&gt; tcpserver --&gt; qmail-smtpd --&lt;br /&gt;                                     |&lt;br /&gt;                                      --&gt; qSheff --&gt; qmail-queue --&gt;&lt;br /&gt;                                     |&lt;br /&gt;Local --&gt; MUA --&gt; qmail-inject -------&lt;br /&gt;&lt;br /&gt;qmail picture: http://www.nrg4u.com/qmail/the-big-qmail-picture-103-p1.gif&lt;br /&gt;&lt;br /&gt;In qmail, e-mail can enter queue in two ways: 1. If e-mail is from remote SMTP&lt;br /&gt;server, with qmail-smtpd, 2. If e-mail from local user, with qmail-inject.&lt;br /&gt;In both ways an e-mail enters queue through qmail-queue. qSheff stays on this&lt;br /&gt;common point and directs all e-mail traffic to itself. There are to ways to&lt;br /&gt;insert qSheff between qmail-queue and qmail-smtpd/qmail-inject&lt;br /&gt;&lt;br /&gt;a. qmail-queue is renamed to qmail-queue.orig and qmail-queue is symbolic-&lt;br /&gt;  linked to qSheff:&lt;br /&gt;&lt;br /&gt;  # mv /var/qmail/bin/qmail-queue /var/qmail/bin/qmail-queue.orig&lt;br /&gt;  # ln -s /var/qmail/bin/qmail-qsheff /var/qmail/bin/qmail-queue&lt;br /&gt;&lt;br /&gt;  From this point, when qmail-smtpd or qmail-inject tried to run qmail-queue,&lt;br /&gt;  qSheff is run with symbolic link and e-mail is delivered to qSheff via&lt;br /&gt;  standart input. After processing own tasks, qSheff runs qmail-queue.orig and&lt;br /&gt;  delivers e-mail from standart output. E-mail goes its way likewise.&lt;br /&gt;&lt;br /&gt;b. qmail is patched with qmailqueue patch. This patch is included within qSheff&lt;br /&gt;  distribution under contrib/ folder. With this patch qmail checks for&lt;br /&gt;  QMAILQUEUE environment variable and runs the program claimed there. If&lt;br /&gt;  QMAILQUEUE is defined as /var/qmail/bin/qmail-qsheff, qSheff is run by&lt;br /&gt;  qmail-smtpd or qmail-inject directly. After processing own tasks, qSheff&lt;br /&gt;  runs qmail-queue and delivers via standart output. E-mail goes its way.&lt;br /&gt;&lt;br /&gt;qsheff proceeds to one of the below after processing own tasks:&lt;br /&gt;&lt;br /&gt;a. Spam or virus is found.&lt;br /&gt;&lt;br /&gt;  a) If Subject tag or virus tag is activated, subject is tagged and e-mail&lt;br /&gt;  is delivered to user. If infected, e-mail content is completely replaced&lt;br /&gt;  with a descriptive text and delivered to user afterwise.&lt;br /&gt;&lt;br /&gt;  b) If subject tag or virus tag is inactive, responds with PERMANENTLY REJECTED&lt;br /&gt;  If qmail is patched with &quot;custom error patch&quot;, user is responded with a&lt;br /&gt;  predefined error message. If quarantine is activated, e-mail is also&lt;br /&gt;  saved to /var/qsheff/quarantine folder.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;b. There is an error&lt;br /&gt;&lt;br /&gt;  Then, responds with TEMPORARY REJECTED error.&lt;br /&gt;&lt;br /&gt;c. &quot;enable_blackhole = 1&quot; is set&lt;br /&gt;&lt;br /&gt;  This time, there is no remote response for the above two situations.&lt;br /&gt;&lt;br /&gt;d. E-mail is clean&lt;br /&gt;&lt;br /&gt;  E-mail is delivered to queue&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;PLATFORM SUPPORT&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;qSheff is written to run on different UNIX platforms. Systems below are teste&lt;br /&gt;successfully.&lt;br /&gt;&lt;br /&gt;Solaris 5.8 (gcc version 3.4.2)&lt;br /&gt;OpenBSD 3.5 (gcc version 3.3.2)&lt;br /&gt;FreeBSD 4.10 (gcc version 2.95.4 20020320)&lt;br /&gt;FreeBSD 5.4 (gcc version 3.4.2)&lt;br /&gt;GNU istanbuLX/Linux (gcc version 3.4.2)&lt;br /&gt;Red Hat Enterprise Linux ES release 3 (gcc version 3.2.3 20030502)&lt;br /&gt;GNU/Linux Debian (gcc 3.3.5, Debian 1:3.3.5-12)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;INSTALLING&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Installing qSheff is pretty easy. Before installing, remove other content fil-&lt;br /&gt;tering software if exists (RAV, simscan, mailscanner, old versions of qSheff..)&lt;br /&gt;Afterwards qmail-queue should be like below:&lt;br /&gt;&lt;br /&gt;# ls -l /var/qmail/bin/qmail-queue&lt;br /&gt;-rws--x--x 1 qmailq qmail 12396 Nov 28 13:18 /var/qmail/bin/qmail-queue&lt;br /&gt;&lt;br /&gt;In orter to run qSheff, &quot;ripmime&quot; software of PLDaniels should be installed.&lt;br /&gt;Ripmime splits e-mail into header, body and extensions parts. Ripmime can be&lt;br /&gt;downloaded from http://www.pldaniels.com/ripmime/&lt;br /&gt;&lt;br /&gt;# fetch http://pldaniels.com/ripmime/ripmime-1.4.0.6.tar.gz&lt;br /&gt;ripmime-1.4.0.6.tar.gz                        100% of  159 kB   31 kBps&lt;br /&gt;&lt;br /&gt;# tar -zxf ripmime-1.4.0.6.tar.gz&lt;br /&gt;# cd ripmime-1.4.0.6&lt;br /&gt;# make&lt;br /&gt;# make install&lt;br /&gt;# ripmime -V&lt;br /&gt;v1.4.0.6 - December 12, 2005 (C) PLDaniels http://www.pldaniels.com/ripmime&lt;br /&gt;&lt;br /&gt;Antivirus is an optional feature. qSheff, unlike other content filters, can&lt;br /&gt;connect to ClamAv directly via socket for e-mail scanning. Does not run&lt;br /&gt;client software like &quot;clamdscan&quot;. This reduces using of system resources and&lt;br /&gt;increases performance of filtering. In order to run other antivirus or&lt;br /&gt;content scanner programs, &quot;custom program&quot; feature is used. Further&lt;br /&gt;information about this feature is given below.&lt;br /&gt;&lt;br /&gt;ClamAv can be downloaded and installed from http://www.clamav.net/&lt;br /&gt;&lt;br /&gt;For installing and configuring other antivirus software, check their own&lt;br /&gt;documentation.&lt;br /&gt;&lt;br /&gt;qSheff can be downloaded from official site.&lt;br /&gt;&lt;br /&gt;http://www.enderunix.org/qsheff/&lt;br /&gt;&lt;br /&gt;# fetch http://www.enderunix.org/qsheff/qsheff-II-2.1.tar.gz&lt;br /&gt;qsheff-II-2.1.tar.gz                          100% of  129 kB 5208  Bps 00m00s&lt;br /&gt;&lt;br /&gt;# tar -zxf qsheff-II-2.1.tar.gz&lt;br /&gt;# cd qsheff-II-2.1&lt;br /&gt;&lt;br /&gt;To see installing options:&lt;br /&gt;&lt;br /&gt;# ./configure --help&lt;br /&gt; --enable-debug                 Enable debug messages&lt;br /&gt; --disable-local-users          Disable the filters for local users&lt;br /&gt; --enable-syslog                Enable syslog messages&lt;br /&gt; --enable-backup                Enable backup&lt;br /&gt; --enable-spam-tag              Enable Spam Tagging&lt;br /&gt; --enable-virus-tag             Enable virus tagging&lt;br /&gt; --enable-custom-error          Enable the custom error patch&lt;br /&gt; --enable-qq-patch              Enable qmailqueue patch&lt;br /&gt;&lt;br /&gt; --with-max-bodyline            Maximum number of lines to filter, default=40&lt;br /&gt; --with-maxfiles                Maximum numbers of files in a dir.&lt;br /&gt; --with-qmailgroup              Define qmail group, default=qmail&lt;br /&gt; --with-qmaildir                Define qmail directory, default=/var/qmail&lt;br /&gt; --with-clamav                  Enable ClamAv&lt;br /&gt; --with-clamd-socket            Path to clamd socket, default=/tmp/clamd&lt;br /&gt; --with-custom-prog             Enable User Defined Program, check qsheff.conf&lt;br /&gt;&lt;br /&gt;You can you any of these options.&lt;br /&gt;&lt;br /&gt;A typical installation should be like this:&lt;br /&gt;&lt;br /&gt;# ./configure --disable-local-users --with-clamav \&lt;br /&gt;   --with-clamd-socket=/var/run/clamav/clamd&lt;br /&gt;&lt;br /&gt;Options are described below. Installing should continue like this:&lt;br /&gt;&lt;br /&gt;# make &amp;amp;&amp;amp; make install&lt;br /&gt;# /usr/local/etc/qsheff-II/install-wrapper.sh&lt;br /&gt;&lt;br /&gt;After installing, /var/qmail/bin folder shoul be seen like:&lt;br /&gt;&lt;br /&gt;-r-s--x--x  1 root    qmail  36766 17 May 16:57 qmail-qsheff&lt;br /&gt;lrwxr-xr-x  1 root    qmail     27 16 May 15:28 qmail-queue -&gt; qmail-qsheff&lt;br /&gt;-r-s--x--x  1 qmailq  qmail  12396  2 May 15:43 qmail-queue.orig&lt;br /&gt;&lt;br /&gt;Options:&lt;br /&gt;&lt;br /&gt; --enable-debug                 Enable debug messages&lt;br /&gt;   Used for printing debugging information to screen in case of any problem&lt;br /&gt;&lt;br /&gt; --disable-local-users          Disable the filters for local users&lt;br /&gt;   qSheff filters local users by default. Bu small corporations does not&lt;br /&gt;   need this. This option deactivates this feature.&lt;br /&gt;&lt;br /&gt; --enable-syslog                Enable syslog messages&lt;br /&gt;   Logging information is sent both to qsheff.log and to syslog. With this&lt;br /&gt;   option, logs can be stored in a remote syslog server.&lt;br /&gt;&lt;br /&gt; --enable-backup                Enable backup&lt;br /&gt;   Enables logging all incoming/outgoing e-mail traffic&lt;br /&gt;&lt;br /&gt; --enable-spam-tag              Enable Spam Tagging&lt;br /&gt;   Instead of rejecting spammed e-mails, qSheff tags subject and delivers&lt;br /&gt;   e-mail to user. Users can store these e-mails in a seperate folder by&lt;br /&gt;   writing their own rules in client side.&lt;br /&gt;&lt;br /&gt; --enable-virus-tag             Enable virus tagging&lt;br /&gt;   Infected e-mail is delivered to user after replacing content with a&lt;br /&gt;   warning text about the virus. This message is predefined as VIRI_CENSOED&lt;br /&gt;   in src/main.h. custom_sign in qsheff.conf is appended to this message&lt;br /&gt;   automatically.&lt;br /&gt;&lt;br /&gt; --enable-custom-error          Enable the custom error patch&lt;br /&gt;   By default, qmail responds to users with &quot;permanently error&quot; in the case&lt;br /&gt;   of spam or virus. Usually this response does not have much information.&lt;br /&gt;   Bu option enables custom-error patch. But qmail should be patched with&lt;br /&gt;   this patch before. Predefined messages are in src/main.h like DEFAULTMSG,&lt;br /&gt;   SPAMMSG and VIRUSMSG. Messages are tagged with &quot;SPAM&quot; keyword or name of&lt;br /&gt;   the virus automatically.&lt;br /&gt;&lt;br /&gt; --enable-qq-patch              Enable qmailqueue patch&lt;br /&gt;   Enables qmail-queue patch. This patch should be applied before. More infor-&lt;br /&gt;   mation is described in Chapter 3 WORKING PRINCIPLES. With this option,&lt;br /&gt;   qSheff is triggered through QMAILQUEUE environment variable, not symbolic&lt;br /&gt;   link. This environment variable usually assigned in /etc/tcp.smtp&lt;br /&gt;&lt;br /&gt; --with-max-bodyline            Maximum number of lines to filter, default=40&lt;br /&gt;   Limits maximum number of lines in an e-mail to filter. Predefined value is&lt;br /&gt;   40. This option is a countermeasure for DOS attacks which can be caused by&lt;br /&gt;   sending very large e-mails. Spam words usually appear in first 10 lines.&lt;br /&gt;   It&#39;s not needed to scan all of the body.&lt;br /&gt;&lt;br /&gt; --with-maxfiles                Maximum numbers of files in a dir.&lt;br /&gt;   if --enable-backup is activated, qSheff logs all e-mail traffic. Every OS&lt;br /&gt;   has limit for number of file entries in a folder. If this option is defined,&lt;br /&gt;   qSheff will switch to next folder afterwards. qSheff assumes 32000 by default.&lt;br /&gt;&lt;br /&gt; --with-qmailgroup              Define qmail group, default=qmail&lt;br /&gt;   if qmail is installed with a group id other than &quot;qmail&quot;, should be specified&lt;br /&gt;   here&lt;br /&gt;&lt;br /&gt; --with-qmaildir                Define qmail directory, default=/var/qmail&lt;br /&gt;   If qmail is installed other than /var/qmail, should be specified here.&lt;br /&gt;&lt;br /&gt; --with-clamav                  Enable ClamAv&lt;br /&gt;   Activates ClamAv antivirus software. If ClamAv is installed to nonstandart&lt;br /&gt;   folder like /opt/clamav, this folder should be specifed here. Otherwise,&lt;br /&gt;   ClamAv library functions will fail during make.&lt;br /&gt;&lt;br /&gt; --with-clamd-socket            Path to clamd socket, default=/tmp/clamd&lt;br /&gt;   qSheff connects to ClamAv daemon directly throug UNIX socket. Path to socket&lt;br /&gt;   should be specified here if different than /tmp/clamd. Another solution is&lt;br /&gt;   changing LocalSocket variable to &quot;/tmp/clamd&quot; from clamd.conf&lt;br /&gt;&lt;br /&gt; --with-custom-prog             Enable User Defined Program, check&lt;br /&gt;   User can make qSheff run any program or script. 3rd party software, anti-&lt;br /&gt;   virus programs or your own scripts can be run this way. Full path to&lt;br /&gt;   program/script and parameters is given as parameter. Internal variables&lt;br /&gt;   can be passed to custom program like %%mailfrom%%, %%mailto%%, %%remoteip%%,&lt;br /&gt;   %%msgfile%% ve %%tempdir%%. This parameters or path to program can be&lt;br /&gt;   changed within qsheff.conf later.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;CONFIGURATION&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;qSheff configuration files are placed in etc/qsheff-II under install directory&lt;br /&gt;&lt;br /&gt;qsheff.conf:&lt;br /&gt;&lt;br /&gt;QSHEFFDIR: qSheff folder. Contaions backup, quarantine, spool and tmp folders.&lt;br /&gt;LOGFILE: Specifies the file which qSheff will write logs to.&lt;br /&gt;RIPMIME: Specifies full path to ripmime binary. Automatically detected and&lt;br /&gt;written by qSheff in configure process.&lt;br /&gt;debug_level: Logging level. Default value is 99 and logs everything. If you&lt;br /&gt;set 14, then HEADER debugging informations will not be logged.&lt;br /&gt;  0      ERR       &lt;br /&gt;  2      QUEUE   &lt;br /&gt;  3      VIRUS  &lt;br /&gt;  5      CUSTOM&lt;br /&gt; 11      SPAM &lt;br /&gt; 13      ATTACH&lt;br /&gt; 15      HEADER&lt;br /&gt;enable_blackhole: If set to 1, no response will be sent to sender of the mail&lt;br /&gt;in case of error, spam or virus&lt;br /&gt;paronia_level: Not yet implemented&lt;br /&gt;drop_empty_from: If set to 1, qSheff rejects mails without a &quot;From:&quot; header.&lt;br /&gt;enable_quarantine: If set to 1, spam or infected mails are quarantined.&lt;br /&gt;enable_ignore_list: If set to 1, does not filter the mail addresses and ip&lt;br /&gt;addresses in ignore list&lt;br /&gt;enable_header_filter: If set to 1, header filter is activated&lt;br /&gt;enable_body_filter: If set to 1, body filter is activated&lt;br /&gt;enable_attach_filter: If set to 1, attachment filter is activated&lt;br /&gt;enable_clamd: If set to 1, ClamAv virus checking is activated&lt;br /&gt;enable_custom_prog: If set to 1, running custom program is activated.&lt;br /&gt;CUSTOM_PROG: Spesifies the full path and parameters of custom program.&lt;br /&gt;CUSTOM_RET_MIN: The minimum return value of custom program in case of a match&lt;br /&gt;CUSTOM_RET_MAX: The maximum return value of custom program in case of a match&lt;br /&gt;For example a custom prog which returns 5 for virus and returns 9 for spam&lt;br /&gt;can be set with 5 as CUSTOM_RET_MIN and 9 as CUSTOM_RET_MAX&lt;br /&gt;CUSTOM_RET_ERR: Value which custom program returns in case of error.&lt;br /&gt;custom_sign: When virus tagging is enabled, this message is appended to the&lt;br /&gt;warning mail. Can be company logo/signature. This message is also contaions&lt;br /&gt;the information message which will be sent to user when &quot;custom error&quot; patch&lt;br /&gt;is applied.&lt;br /&gt;qsheff.attach: The list which attachment filter looks for matching&lt;br /&gt;qsheff.ignore: The list of e-mail and ip addresses which will not be filtered&lt;br /&gt;Regular expressions can be written. qSheff will try to match expressions&lt;br /&gt;with remote side IP and sender email address.&lt;br /&gt;qsheff.rules: Contains qSheff spesific rules. Rules beginning with &quot;h&quot; are&lt;br /&gt;header rules. Rules in the same line like (rule1)(rule2) are operated with&lt;br /&gt;logic AND and rules in different lines are operated with logic OR.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;USAGE&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;After installing qSheff, log file should be examined in order to be sure that&lt;br /&gt;everything is fine.&lt;br /&gt;&lt;br /&gt;# tail -f /var/log/qsheff.log&lt;br /&gt;04/05/2006 19:12:39: [qSheff] SPAM, queue=q1146759159-792935-50066, relayfrom=&lt;br /&gt;88.247.172.183, from=`simsek@enderunix.org&#39;, to=`simsek@acikakademi.com&#39;, subj&lt;br /&gt;=`viagra&#39;, size=575, spam=`Subject: viagra&#39;, rule=`(Subject:)([vV]iagra)&#39;&lt;br /&gt;&lt;br /&gt;17/05/2006 16:59:50: [qSheff] VIRUS, queue=q1147899588-883933-43385, recvfrom=&lt;br /&gt;83.26.32.122, from=`olago@neostrada.pl&#39;, to=`biwi@turx.com&#39;, subj=`Re: Merry&lt;br /&gt;Christmas!&#39;, size=19082, virus=`Worm.Zafi.D&#39;,&lt;br /&gt;&lt;br /&gt;17/05/2006 17:03:39: [qSheff] HEADER, queue=q1147899819-136265-43522, recvfrom=&lt;br /&gt;84.50.27.182, from=`&#39;, to=`&#39;, subj=`&#39;, size=0,,&lt;br /&gt;&lt;br /&gt;If filtering local users is deactivated, attempts from server will not be logged&lt;br /&gt;in log file.&lt;br /&gt;&lt;br /&gt;If drop_empty_from=1 is set, attempts without &quot;From:&quot; line will be rejected and&lt;br /&gt;logged with HEADER tag.&lt;br /&gt;&lt;br /&gt;If there is an error after qSheff delivers mail to qmail-queue, qmail-queue&#39;s&lt;br /&gt;exit value will be logged as exitcode.&lt;br /&gt;&lt;br /&gt;17/05/2006 16:24:51: [qSheff] QUEUE, queue=q1147897465-631231-42376, recvfrom=&lt;br /&gt;83.17.118.150, from=`edhzovsc@queretaro.com&#39;, to=`alii@linuxxproggramlama.com&#39;,&lt;br /&gt;subj=`Fw[36]: Hi !..&#39;, size=10240, error=`&#39;, exitcode=54&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;GET HELP&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Send your questions about qSheff directly to the maillist. To subscribe send&lt;br /&gt;an empty mail to qsheff-subscribe at lists.enderunix.org reply incoming approval&lt;br /&gt;mail. Maillist address is qsheff at lists.enderunix.org&lt;br /&gt;&lt;br /&gt;Maillist archive is at http://news.gmane.org/gmane.mail.qmail.qsheff. Before&lt;br /&gt;asking a question please search list archive and read this document carefully.&lt;br /&gt;Do not forget to check INSTALL and UPGRADE files which are shipped with each&lt;br /&gt;version.&lt;br /&gt;&lt;br /&gt;If maillist and documents does not help, you can contact Author directly.&lt;br /&gt;&lt;br /&gt;Commercial firms may ask for paid special development.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:180%;&quot; &gt;FAQ&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Not yet available.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;SUPPORT&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;You can support qSheff in one of the following ways:&lt;br /&gt;&lt;br /&gt;. Provide the required books for the Author&lt;br /&gt;. Support Author financially by ordering books from http://www.acikakademi.com&lt;br /&gt;. Use qSheff and report bugs and wishes to Author&lt;br /&gt;. If installed qSheff with success, provide Author following outputs:&lt;br /&gt;    # uname -a&lt;br /&gt;    # gcc -v&lt;br /&gt;    # /var/qmail/bin/qmail-qsheff -V&lt;br /&gt;. Translate this document to your language&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AUTHOR&lt;br /&gt;&lt;br /&gt;qSheff has been written by Baris Simsek (simsek at enderunix org). This software&lt;br /&gt;contains patches from other contributors which are mentioned in THANKS file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;12. THANKS&lt;br /&gt;&lt;br /&gt;To EnderUNIX for their friendship,&lt;br /&gt;To all users for valuable feedbacks.&lt;br /&gt;&lt;br /&gt;for tests:&lt;br /&gt;- Huseyin Yuce&lt;br /&gt;- Omer Faruk Sen&lt;br /&gt;- Afsin Taskiran&lt;br /&gt;&lt;br /&gt;for english documentation:&lt;br /&gt;- Doruk Fisek&lt;br /&gt;- Umut Demirhan&lt;br /&gt;- Adnan Sancak&lt;br /&gt;&lt;br /&gt;A list of contributors sent some small patches to improve qSheff.&lt;br /&gt;- Atilim Boy &lt;aboy&gt;&lt;br /&gt;- Stephan Bielmann &lt;stephan&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtutkusu.blogspot.com/feeds/1999622516235549085/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://linuxtutkusu.blogspot.com/2010/06/qsheff-handboook.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default/1999622516235549085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default/1999622516235549085'/><link rel='alternate' type='text/html' href='http://linuxtutkusu.blogspot.com/2010/06/qsheff-handboook.html' title='qsheff handboook'/><author><name>Özkan</name><uri>http://www.blogger.com/profile/10120716519831468011</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1882332153809759054.post-4918352028528903517</id><published>2010-06-07T17:06:00.000-07:00</published><updated>2010-06-07T17:07:44.668-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="email eposta eklenti attachment uuencode linux terminal"/><title type='text'>Linux terminalinden ekli e-posta gönderme</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;&quot;&gt;&lt;div style=&quot;background-color: rgb(255, 255, 255); font: 13px/19px Georgia,&#39;Times New Roman&#39;,&#39;Bitstream Charter&#39;,Times,serif; padding: 0.6em; margin: 0px;&quot;&gt;&lt;p&gt;Gerekli olduğu durumlarda linux konsolundan bir dosyanın içeriğini e-mail ile göndermek için genellikle mailx kullanırız. Örnek vermek gerekirse:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;# cat /etc/apache2/apache2.conf |mail -s apache2.conf emailadresi@alanadiniz.com&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Client olarak kullandığınız bilgisayar üzerinde yüklü olan işletim sistemi Windows ise, e-mail&#39;in içerisinde gönderdiğiniz dosya içeriğinin satır sonları ile ilgili sorun yaşayabilirsiniz. Bu gibi durumlarda dosyayı eklenti (attachment) olarak göndermeniz daha sağlıklı olacaktır. Bunun için sisteminizde uuencode var ise eğer (Debian&#39;da içerisinde bulunduğu paket &quot;sharutils&quot;. ) Şu komutu kullanabilirsiniz.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;#uuencode dosyaadi.uzanti dosyaadi.uzanti| mail -s &quot;baslik&quot; emailadresiniz@alanadiniz.com&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Örnek kullanım:&lt;/p&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 118px; width: 1px; height: 1px; overflow: hidden;&quot;&gt;q:/usr/src/qmail/qmail-1.03# uuencode qmail-smtpd.c qmail-smtpd.c |mail -s &quot;qmail-smptd.c ekte&quot; maniaction@gmail.com&lt;/div&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 118px; width: 1px; height: 1px; overflow: hidden;&quot;&gt;q:/usr/src/qmail/qmail-1.03#&lt;/div&gt;&lt;blockquote&gt;&lt;p&gt;#q:/usr/src/qmail/qmail-1.03# uuencode qmail-smtpd.c qmail-smtpd.c |mail -s &quot;qmail-smptd.c ekte&quot; maninthemiddle@gmail.com&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Dosyayı bilgisayarınıza indirdikten sonra düzenlemek daha kolay olacaktır.&lt;/p&gt;&lt;p&gt;Aynı şekilde binary formatta çalıştırılabilir dosyaları ya da jpeg resim dosyalarını da gönderebilirsiniz.&lt;/p&gt;&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtutkusu.blogspot.com/feeds/4918352028528903517/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://linuxtutkusu.blogspot.com/2010/06/linux-terminalinden-ekli-e-posta.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default/4918352028528903517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default/4918352028528903517'/><link rel='alternate' type='text/html' href='http://linuxtutkusu.blogspot.com/2010/06/linux-terminalinden-ekli-e-posta.html' title='Linux terminalinden ekli e-posta gönderme'/><author><name>Özkan</name><uri>http://www.blogger.com/profile/10120716519831468011</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1882332153809759054.post-7287515764415902567</id><published>2010-06-07T16:54:00.000-07:00</published><updated>2010-06-07T17:00:27.275-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ssh linux unix secure shell"/><title type='text'>SSH FAQ</title><content type='html'>&lt;a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:&#39;Times New Roman&#39;;font-size:medium;&quot;  &gt;&lt;/span&gt;&lt;/a&gt;&lt;h1&gt;&lt;a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:&#39;Times New Roman&#39;;font-size:medium;&quot;  &gt;1. &lt;/span&gt;&lt;/a&gt;&lt;a name=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:&#39;Times New Roman&#39;;font-size:medium;&quot;  &gt;&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:&#39;Times New Roman&#39;;font-size:medium;&quot;  &gt;About Secure Shell&lt;/span&gt;&lt;/h1&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:&#39;Times New Roman&#39;;font-size:medium;&quot;  &gt;This section should answer general questions about Secure Shell and what it does and doesn&#39;t do.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;h2&gt;1.1. &lt;a name=&quot;ss1.1&quot;&gt;&lt;/a&gt;What is Secure Shell?&lt;/h2&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Secure Shell is a program to log into another computer over a network, to execute commands in a remote machine, and to move files from one machine to another. It provides strong authentication and secure communications over unsecure channels. It is intended as a replacement for telnet, rlogin, rsh, and rcp. For SSH2, there is a replacement for FTP: sftp.&lt;/p&gt;&lt;p&gt;Additionally, Secure Shell provides secure X connections and secure forwarding of arbitrary TCP connections. You can also use Secure Shell as a tool for things like&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;rsync&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;and secure network backups.&lt;/p&gt;&lt;p&gt;The traditional BSD &#39;r&#39; - commmands (rsh, rlogin, rcp) are vulnerable to different kinds of attacks. Somebody who has root access to machines on the network, or physical access to the wire, can gain unauthorized access to systems in a variety of ways. It is also possible for such a person to log all the traffic to and from your system, including passwords (which ssh never sends in the clear).&lt;/p&gt;&lt;p&gt;The X Window System also has a number of severe vulnerabilities. With ssh, you can create secure remote X sessions which are transparent to the user. As a side effect, using remote X clients with ssh is more convenient for users.&lt;/p&gt;&lt;p&gt;There are two versions of Secure Shell available: SSH1 and SSH2. This FAQ does its best to distinguish when the situation calls for the difference between the two.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;1.2 &lt;a name=&quot;ss1.2&quot;&gt;&lt;/a&gt;How widespread is its use?&lt;/h2&gt;&lt;p&gt;The most current figures available are over 2 million Secure Shell users in over 60 countries. This is not an accurate amount, but an estimate. It also does not necessarily include the different implementations of Secure Shell for different operating systems.&lt;/p&gt;&lt;p&gt;Note that this includes both SSH1 and SSH2 implementations.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;1.3 &lt;a name=&quot;ss1.3&quot;&gt;&lt;/a&gt;What protocols does Secure Shell use?&lt;/h2&gt;&lt;p&gt;&lt;em&gt;It should be noted that the SSH1 and SSH2 protocols are in fact different and not compatible with each other.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;For the SSH1 protocol, you can find this information in an old IETF draft&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;available here. It is also available with the latest source distribution for SSH1 at&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;ftp.ssh.com/pub/ssh/ssh-1.2.27.tar.gz.&lt;/p&gt;&lt;p&gt;For the SSH2 protocol, you can find this information in the SSH2 IETF drafts:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;http://www.ietf.org/ids.by.wg/secsh.html&lt;/li&gt;&lt;/ul&gt;The fifth IETF draft for Secure Shell, Generic Message Exchange Authentication For Secure Shell&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;is no longer available and expired after 6 months.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;h2&gt;1.4 &lt;a name=&quot;ss1.4&quot;&gt;&lt;/a&gt;What encryption algorithms does Secure Shell use?&lt;/h2&gt;Secure Shell uses the following ciphers for encryption:&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Cipher&lt;/td&gt;&lt;td&gt;SSH1&lt;/td&gt;&lt;td&gt;SSH2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;DES&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;td&gt;no&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;3DES&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;IDEA&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;td&gt;no&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Blowfish&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Twofish&lt;/td&gt;&lt;td&gt;no&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Arcfour&lt;/td&gt;&lt;td&gt;no&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Cast128-cbc&lt;/td&gt;&lt;td&gt;no&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;Secure Shell uses the following ciphers for authentication:&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Cipher&lt;/td&gt;&lt;td&gt;SSH1&lt;/td&gt;&lt;td&gt;SSH2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;RSA&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;td&gt;no&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;DSA&lt;/td&gt;&lt;td&gt;no&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;Ciphers may be added or deleted later depending on implementations.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;1.5 &lt;a name=&quot;ss1.5&quot;&gt;&lt;/a&gt;How does Secure Shell authenticate?&lt;/h2&gt;&lt;p&gt;Secure Shell authenticates using one or more of the following:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Password (the /etc/passwd or /etc/shadow in UNIX)&lt;/li&gt;&lt;li&gt;User public key (RSA or DSA, depending on the release)&lt;/li&gt;&lt;li&gt;Kerberos (for SSH1)&lt;/li&gt;&lt;li&gt;Hostbased (.rhosts or /etc/hosts.equiv in SSH1 or public key in SSH2)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Since there is quite a big demand for it, there are some patches available for various forms of authentication. It is up to the authors to make those available. If you wish to have a particular type of authentication in Secure Shell, please submit a&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;feature request&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;to the SSH Secure Shell team. For OpenSSH features,&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;please contact the OpenSSH team.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;1.6 &lt;a name=&quot;ss1.6&quot;&gt;&lt;/a&gt;What does Secure Shell protect against?&lt;/h2&gt;&lt;p&gt;Secure Shell protects against (again, from the README):&lt;/p&gt;&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;IP spoofing, where a remote host sends out packets which pretend to come from another, trusted host. Ssh even protects against a spoofer on the local network, who can pretend he is your router to the outside.&lt;/li&gt;&lt;li&gt;IP source routing, where a host can pretend that an IP packet comes from another, trusted host.&lt;/li&gt;&lt;li&gt;DNS spoofing, where an attacker forges name server records&lt;/li&gt;&lt;li&gt;Interception of cleartext passwords and other data by intermediate hosts&lt;/li&gt;&lt;li&gt;Manipulation of data by people in control of intermediate hosts&lt;/li&gt;&lt;li&gt;Attacks based on listening to X authentication data and spoofed connection to the X11 server&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;p&gt;In other words, ssh never trusts the net; somebody hostile who has taken over the network can only force ssh to disconnect, but cannot decrypt or play back the traffic, or hijack the connection.&lt;/p&gt;&lt;p&gt;The above only holds if you actually use encryption. Secure Shell does have an option to use encryption of type &quot;none&quot; this is only for debugging purposes, and should not be used.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;1.7 &lt;a name=&quot;ss1.7&quot;&gt;&lt;/a&gt;What doesn&#39;t Secure Shell protect against?&lt;/h2&gt;&lt;p&gt;Secure Shell will not help you with anything that compromises your host&#39;s security in some other way. Once an attacker has gained root access to a machine, he can then subvert ssh, too.&lt;/p&gt;&lt;p&gt;If somebody malevolent has access to your home directory, then security is nonexistent. This is very much the case if your home directory is exported via NFS.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;1.8 &lt;a name=&quot;ss1.8&quot;&gt;&lt;/a&gt;What is the difference between SSH1 and SSH2?&lt;/h2&gt;The difference between SSH1 and SSH2 is they are two entirely different protocols. SSH1 and SSH2 encrypt at different parts of the packets, and SSH1 uses server and host keys to authenticate systems where SSH2 only uses host keys. SSH2 is a complete rewrite of the protocol, and it does not use the same networking implementation that SSH1 does. Also, SSH2 is more secure.&lt;p&gt;Because of the different protocol implementation, they are not compatible.&lt;/p&gt;&lt;p&gt;In a nutshell, SSH2 is a rewrite of the SSH1 protocol, with improvements to security, performance, and portability.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;1.9 &lt;a name=&quot;ss1.9&quot;&gt;&lt;/a&gt;Who maintains Secure Shell?&lt;/h2&gt;&lt;p&gt;SSH Communications Security, is the developer of Secure Shell (secsh) protocol and maintains the releases of SSH1 and SSH2. The&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;IETF&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;maintains the Secure Shell standards, which is vendor-neutral. The standards are currently in draft form; once there are two independent implementations available, then they can be submitted as an RFC.&lt;/p&gt;&lt;p&gt;There are currently several implementors, both freeware and commercial, of Secure Shell.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;1.10 &lt;a name=&quot;ss1.10&quot;&gt;&lt;/a&gt;Can I run Secure Shell legally?&lt;/h2&gt;&lt;p&gt;Most likely. It depends on your country&#39;s laws for cryptography and which version of Secure Shell that you&#39;re using. Check out the information on licensing, cryptography laws, and patents on cryptographic algorithms below.&lt;/p&gt;&lt;h3&gt;1.10.1 &lt;a name=&quot;ss1.10.1&quot;&gt;&lt;/a&gt;Licensing&lt;/h3&gt;&lt;p&gt;The licensing for SSH2 as of the 2.1.0 release has been completely revised. You can use Secure Shell for free if you are a university user (student, professor, staff, etc) or if you are using it for non-commercial use (playing games, checking personal email, etc.). For any commercial use, you need to have the appropriate license for Secure Shell.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;Click here&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;for the current licensing information and&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;click here&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;for an FAQ on the licensing from SSH Communications Security.&lt;/p&gt;&lt;p&gt;The UNIX version of ssh 1.2.27 may be used freely for non-commercial purposes and may not be sold commercially as a separate product, as part of a bigger product or project, or otherwise used for financial gain without a separate license. The definition of &quot;commercial use&quot; is generally interpreted as using ssh for anything that would generate financial gain, such as logging into a customers system to do administration, or providing ssh as a secure login to your partners or vendors.&lt;/p&gt;&lt;p&gt;Other licensing is developer-dependent.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3&gt;1.10.2 &lt;a name=&quot;ss1.10.2&quot;&gt;&lt;/a&gt;Cryptography laws&lt;/h3&gt;&lt;p&gt;In some countries, particularly France, Russia, Iraq, and Pakistan, it may be illegal to use any encryption at all without a special permit.&lt;/p&gt;&lt;p&gt;If you are in the United States, you should be aware that, while ssh was written outside the United States using information publicly available everywhere, the US Government may consider it a criminal offence to export this software from the US once it has been imported, including putting it on a ftp site. Contact the&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;Bureau of Export Administration, which is under the Department of Commerce.&lt;/p&gt;&lt;p&gt;There&#39;s a really good link that keeps up to date with the Wassenaar Agreement and the cryptography laws throughout the world. Check out Bert-Jaap Koops&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;Crypto Law Survey.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3&gt;1.10.3 &lt;a name=&quot;ss1.10.3&quot;&gt;&lt;/a&gt;Patents on Cryptographic algorithms&lt;/h3&gt;&lt;p&gt;The algorithms RSA and IDEA, which are used by ssh, are claimed as patented in different countries, including the US. Linking against the RSAREF library, which is possible, may or may not make it legal to use ssh for non-commercial purposes in the US. You may need to obtain licenses for commercial use of IDEA; ssh can be configured without IDEA and works perfectly fine without it.&lt;/p&gt;&lt;p&gt;For information on software patents in general, see the League for Programming Freedom&#39;s homepage at&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;http://lpf.ai.mit.edu/.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;1.11 &lt;a name=&quot;ss1.11&quot;&gt;&lt;/a&gt;What operating systems does Secure Shell run on?&lt;/h2&gt;&lt;p&gt;From the&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;Secure Shell home page:&lt;/p&gt;&lt;p&gt;For SSH1 and the current release of SSH2 (2.2.0), check out the portability page at&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;http://www.ssh.com/ssh/portability.html. For compatability with OpenSSH, check out&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;http://www.openssh.com/portable.html.&lt;/p&gt;&lt;p&gt;There are also non-commercial ports of Secure Shell for SSH1 including PalmOS, Windows, Macintosh, OS/2, BeOS, WindowsCE, Java, and OpenVMS. See&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;section 2 of this FAQ&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;for information on how to get Secure Shell.&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;1.12 &lt;a name=&quot;ss1.12&quot;&gt;&lt;/a&gt;. Shouldn&#39;t I be using only SSH2?&lt;/h2&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;Maintainer&#39;s note:&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;Since this brought up an interesting discussion on the mailing list, it seems to be a good idea to incorporate some of the helpful information that folks brought up. Thanks! Also, if someone has a better way to organize this section, please let me know.&lt;/i&gt;&lt;/p&gt;&lt;p&gt;The SSH1 protocol is not being developed anymore, as SSH2 is being developed as the standard. Even if you are not using SSH2, many folks are establishing a path towards it. With three implementations (and growing) of SSH2 currently in the works, there is growing support (especially with the SSH2 protocol in IETF draft). However, there are arguments for and against running SSH1.&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;Note:&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;If you have any additional arguments either way, I&#39;ll post them. -AC&lt;/i&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;There are structural weaknesses in SSH1 which leave it open to additional attacks&lt;/li&gt;&lt;li&gt;SSH1 is subject to a man-in-the-middle attack&lt;/li&gt;&lt;li&gt;SSH1 has more supported platforms&lt;/li&gt;&lt;li&gt;SSH1 supports .rhosts authentication (it&#39;s against the draft for SSH2&lt;/li&gt;&lt;li&gt;SSH1 has more diverse authentication support (AFS, Kerberos, etc.)&lt;/li&gt;&lt;li&gt;Performance for SSH2 is not equal to SSH1&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Rick Moen posted this software matrix on the mailing list that shows software from diverse authors will perhaps partially explain protocol 1.5&#39;s persistence:&lt;/p&gt;&lt;p&gt;Highest protocol version supported in software that is:&lt;/p&gt;&lt;h3&gt;Servers&lt;/h3&gt;&lt;table&gt;&lt;/table&gt;&lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Straight Proprietary&lt;/td&gt;&lt;td&gt;Gratis-Usage (non-commercial)&lt;/td&gt;&lt;td&gt;Unconditional Gratis-usage&lt;/td&gt;&lt;td&gt;Open Source [1]&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;OpenVMS&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;OS/2&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;UNIX&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Win32&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3&gt;Clients&lt;/h3&gt;&lt;table&gt;&lt;/table&gt;&lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;Straight Proprietary&lt;/td&gt;&lt;td&gt;Gratis-Usage (non-commercial)&lt;/td&gt;&lt;td&gt;Unconditional Gratis-usage&lt;/td&gt;&lt;td&gt;Open Source [1]&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Amiga OS&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;BeOS&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Java&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;td&gt;1.5 [2]&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Macintosh&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;OpenVMS&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;OS/2&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;PalmOS&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;UNIX&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Win16&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;td&gt;1.4&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Win32&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;td&gt;2.0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;WinCE&lt;/td&gt;&lt;td&gt;1.5&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;[1] As is defined by the Open Source Initiative at&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;http://www.opensource.org/osd.html. The three columns leftwards are breakdowns of all non-open-source categories, i.e., different classes of proprietary licences.&lt;/p&gt;&lt;p&gt;[2] Mats Andersson says&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;MindTerm&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;will soon support secsh 2.0.&lt;/p&gt;&lt;p&gt;Diane Yi of the Beckman Institute had some slides that compare the protocols:&lt;br /&gt;http://www.beckman.uiuc.edu/biss/security/workshops/2000-02/tsld001.htm&lt;/p&gt;&lt;p&gt;If you are installing a daemon, check to make sure your remote clients are connecting to you with the right version of Secure Shell. An SSH1 daemon will only work with SSH1 clients. An SSH2 daemon will work with SSH2 clients. However, an SSH2 daemon built with SSH1 compability will support both SSH1 and SSH2 clients. For more information on building SSH2 with SSH1 compatibility, see Section 9.5&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtutkusu.blogspot.com/feeds/7287515764415902567/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://linuxtutkusu.blogspot.com/2010/06/ssh-faq.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default/7287515764415902567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default/7287515764415902567'/><link rel='alternate' type='text/html' href='http://linuxtutkusu.blogspot.com/2010/06/ssh-faq.html' title='SSH FAQ'/><author><name>Özkan</name><uri>http://www.blogger.com/profile/10120716519831468011</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1882332153809759054.post-5144694618117660810</id><published>2010-06-07T16:51:00.000-07:00</published><updated>2010-06-07T16:54:09.794-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="how to ping linux unix"/><title type='text'>Using ping for N packets! How to</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(17, 17, 17); font-family: &#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;p style=&quot;padding: 0px; margin: 0px 0px 1.571em;&quot;&gt;&lt;strong style=&quot;padding: 0px; margin: 0px;&quot;&gt;&lt;br /&gt;Question:&lt;/strong&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;When I execute&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;strong style=&quot;padding: 0px; margin: 0px;&quot;&gt;ping command&lt;/strong&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;from the command line, it keeps sending the packets until I hit CTRL-C to terminate the ping command output. How can I execute ping command only for&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;b style=&quot;padding: 0px; margin: 0px;&quot;&gt;N&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;number of packets and terminate the output automatically?&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin: 0px 0px 1.571em;&quot;&gt;&lt;strong style=&quot;padding: 0px; margin: 0px;&quot;&gt;Answer:&lt;/strong&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;Use ping option -c to specify the number of packets. After sending N number of packets, ping command will terminate automatically as explained below.&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin: 0px 0px 1.571em;&quot;&gt;&lt;span id=&quot;more-2476&quot; style=&quot;padding: 0px; margin: 0px;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;padding: 0px; margin: 1.833em 0px 0.611em; font-weight: normal; font-size: 1.286em; line-height: 1.222em;&quot;&gt;Ping Command – Interactive Mode&lt;/h3&gt;&lt;p style=&quot;padding: 0px; margin: 0px 0px 1.571em;&quot;&gt;In the following example, you have to press CTRL-C to terminate the ping command output.&lt;/p&gt;&lt;pre style=&quot;padding: 0.667em 0.917em; margin: 0px 0px 1.833em; background-color: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); overflow: auto; clear: both; font-family: Consolas,&#39;Andale Mono&#39;,Monaco,Courier,&#39;Courier New&#39;,Verdana,sans-serif; font-size: 0.857em; line-height: 1.5em;&quot;&gt;$ ping 0&lt;br /&gt;PING 0 (127.0.0.1) 56(84) bytes of data.&lt;br /&gt;64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.023 ms&lt;br /&gt;64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.006 ms&lt;br /&gt;64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.004 ms&lt;br /&gt;64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.005 ms&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;&lt;strong style=&quot;padding: 0px; margin: 0px;&quot;&gt;Note:&lt;/strong&gt; Press CTRL-C to terminate.&lt;br /&gt;&lt;br /&gt;--- 0 ping statistics ---&lt;br /&gt;5 packets transmitted, 5 received, 0% packet loss, time 3999ms&lt;br /&gt;rtt min/avg/max/mdev = 0.004/0.008/0.023/0.007 ms&lt;br /&gt;&lt;/pre&gt;&lt;ul style=&quot;padding: 0px; margin: 0px 0px 1.571em 1.571em; list-style-type: square;&quot;&gt;&lt;li style=&quot;padding: 0px; margin: 0px;&quot;&gt;Note: ping 0 — pings the local host.&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;padding: 0px; margin: 1.833em 0px 0.611em; font-weight: normal; font-size: 1.286em; line-height: 1.222em;&quot;&gt;Ping Command – Non Interactive Mode (Specify number of packets to be sent)&lt;/h3&gt;&lt;p style=&quot;padding: 0px; margin: 0px 0px 1.571em;&quot;&gt;In the following example, ping command will send only 2 packets and you don’t need to press CTRL-C to terminate the output.&lt;/p&gt;&lt;pre style=&quot;padding: 0.667em 0.917em; margin: 0px 0px 1.833em; background-color: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); overflow: auto; clear: both; font-family: Consolas,&#39;Andale Mono&#39;,Monaco,Courier,&#39;Courier New&#39;,Verdana,sans-serif; font-size: 0.857em; line-height: 1.5em;&quot;&gt;$ ping 0 -c 2&lt;br /&gt;PING 0 (127.0.0.1) 56(84) bytes of data.&lt;br /&gt;64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.024 ms&lt;br /&gt;64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.006 ms&lt;br /&gt;&lt;br /&gt;--- 0 ping statistics ---&lt;br /&gt;2 packets transmitted, 2 received, 0% packet loss, time 999ms&lt;br /&gt;rtt min/avg/max/mdev = 0.006/0.015/0.024/0.009 ms&lt;br /&gt;&lt;/pre&gt;&lt;h3 style=&quot;padding: 0px; margin: 1.833em 0px 0.611em; font-weight: normal; font-size: 1.286em; line-height: 1.222em;&quot;&gt;Ping Command Option -c Usages&lt;/h3&gt;&lt;p style=&quot;padding: 0px; margin: 0px 0px 1.571em;&quot;&gt;Redirect the ping command output to a file&lt;/p&gt;&lt;pre style=&quot;padding: 0.667em 0.917em; margin: 0px 0px 1.833em; background-color: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); overflow: auto; clear: both; font-family: Consolas,&#39;Andale Mono&#39;,Monaco,Courier,&#39;Courier New&#39;,Verdana,sans-serif; font-size: 0.857em; line-height: 1.5em;&quot;&gt;$ ping 127.0.0.1 -c 2 &gt; ping-output.txt&lt;br /&gt;&lt;br /&gt;$ cat ping-output.txt&lt;br /&gt;PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.&lt;br /&gt;64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.015 ms&lt;br /&gt;64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.005 ms&lt;br /&gt;&lt;br /&gt;--- 127.0.0.1 ping statistics ---&lt;br /&gt;2 packets transmitted, 2 received, 0% packet loss, time 999ms&lt;br /&gt;rtt min/avg/max/mdev = 0.005/0.010/0.015/0.005 ms&lt;br /&gt;&lt;/pre&gt;&lt;p style=&quot;padding: 0px; margin: 0px 0px 1.571em;&quot;&gt;Redirect to another process. This example shows only the ping output summary (last two lines).&lt;/p&gt;&lt;pre style=&quot;padding: 0.667em 0.917em; margin: 0px 0px 1.833em; background-color: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); overflow: auto; clear: both; font-family: Consolas,&#39;Andale Mono&#39;,Monaco,Courier,&#39;Courier New&#39;,Verdana,sans-serif; font-size: 0.857em; line-height: 1.5em;&quot;&gt;$ ping 127.0.0.1 -c 10 | tail -2&lt;br /&gt;10 packets transmitted, 10 received, 0% packet loss, time 8999ms&lt;br /&gt;rtt min/avg/max/mdev = 0.005/0.006/0.014/0.003 ms&lt;br /&gt;&lt;/pre&gt;&lt;div class=&quot;social-bar&quot; style=&quot;padding: 10px 10px 48px; margin: 0px; background-color: rgb(242, 240, 232); clear: left;&quot;&gt;&lt;ul style=&quot;padding: 0px; margin: 0px; list-style-type: none;&quot;&gt;&lt;li class=&quot;social-bar-share&quot; style=&quot;padding: 0px; margin: 0px; display: inline; float: left; width: 290px; list-style-type: none;&quot;&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtutkusu.blogspot.com/feeds/5144694618117660810/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://linuxtutkusu.blogspot.com/2010/06/using-ping-for-n-packets-how-to.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default/5144694618117660810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default/5144694618117660810'/><link rel='alternate' type='text/html' href='http://linuxtutkusu.blogspot.com/2010/06/using-ping-for-n-packets-how-to.html' title='Using ping for N packets! How to'/><author><name>Özkan</name><uri>http://www.blogger.com/profile/10120716519831468011</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1882332153809759054.post-5071109438636927368</id><published>2010-06-07T16:42:00.000-07:00</published><updated>2010-06-07T16:51:04.531-07:00</updated><title type='text'>Backport nedir ve nasıl kullanılır?</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;&quot;&gt;&lt;div style=&quot;background-color: rgb(255, 255, 255); font: 13px/19px Georgia,&#39;Times New Roman&#39;,&#39;Bitstream Charter&#39;,Times,serif; padding: 0.6em; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;h2 style=&quot;font-size: 1.5em;&quot;&gt;&lt;u&gt;Backports Nedir?&lt;/u&gt;&lt;/h2&gt;&lt;p&gt;Backports, Debian için yapılmış bir paket yansısıdır. Testing ve Unstable sürümlerinde oluşturulmuş, yeni yazılımlara ait paketlerin, &quot;stable&quot; sürüm Debian Linux kurulu sistemlerde kütüphane ve paket bağımlılığı sorunu yaşamadan kurulmasını sağlamak amacıyla, stable sürümdeki kütüphanelerle tekrar derlenmiş halini sunar.&lt;/p&gt;&lt;p&gt;Örneklendirmek gerekirse;&lt;/p&gt;&lt;p&gt;Yazının yazıldığı şu tarihte roundcube web mail, stable sürüm Debian paket arşivinde yer almıyor. Fakat  ben &quot;Roundcube Webmail&quot; uygulamasını manuel olarak kurmak istemiyorum. Debian paket&#39;ine ihtiyacım var. Eğer sid veya testing paket arşivinden indirip kurmayı denersem biliyorum ki, paket bağımlılıkları ile ilgili birçok sorun çıkacak, bir çoğunu update etmem gerekecek, daha sonra başka bir paket kurulumu sırasında da silmek zorunda kalacağım. Tüm bunlarla uğraşmak yerine &quot;sources.list&quot; dosyasına backports yansısını girip stable sürüm Debian için hazırlanmış paketlerden rahatlıkla kurulum yapabilirim.&lt;/p&gt;&lt;h2 style=&quot;font-size: 1.5em;&quot;&gt;&lt;u&gt;Nasıl kullanılır?&lt;/u&gt;&lt;/h2&gt;&lt;p&gt;/etc/apt/sources.list dosyanızı açıp, metin editörünüzle en alta şu satırı ekleyin:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span mce_name=&quot;strong&quot; mce_style=&quot;font-weight: bold;&quot; class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;deb http://www.backports.org/debian lenny-backports main contrib non-free&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Dosyayı kaydedip kapattıktan sonra, &quot;apt-get update&quot; komutunu çalıştırarak sisteminizdeki paket listesini güncelleyin. Daha güncel sürümünü yüklemek istediğiniz paket&#39;in adını biliyorsanız şu komutla backports paket arşivinden sorunsuzca yükleyebilirsiniz:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span mce_name=&quot;strong&quot; mce_style=&quot;font-weight: bold;&quot; class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;apt-get -t lenny-backports install&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&lt;span mce_name=&quot;em&quot; mce_style=&quot;font-style: italic;&quot; class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&quot;paketadı&quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&quot;Roundcube Webmail&quot; örneğinden devam edersek şu şekilde:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span mce_name=&quot;strong&quot; mce_style=&quot;font-weight: bold;&quot; class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;apt-get -t lenny-backports install roundcube&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Eğer update ve backports paket arşivinden kurulum yaparken aldığınız doğrulama hatalarını durdurmak isterseniz aşağıdaki yöntemlerden birini uygulayabilirsiniz:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span mce_name=&quot;strong&quot; mce_style=&quot;font-weight: bold;&quot; class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;apt-get install debian-backports-keyring&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;veya&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span mce_name=&quot;strong&quot; mce_style=&quot;font-weight: bold;&quot; class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;gpg --keyserver hkp://subkeys.pgp.net --recv-keys 16BA136C&lt;br /&gt;gpg --export 16BA136C | apt-key add -&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;veya&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span mce_name=&quot;strong&quot; mce_style=&quot;font-weight: bold;&quot; class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;wget -O - http://backports.org/debian/archive.key | apt-key add -&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Ayrıntılı bilgi için: http://www.backports.org (İngilizce)&lt;br /&gt;Kaynak: http://www.backports.org&lt;/p&gt;&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtutkusu.blogspot.com/feeds/5071109438636927368/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://linuxtutkusu.blogspot.com/2010/06/backport-nedir-ve-nasl-kullanlr.html#comment-form' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default/5071109438636927368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1882332153809759054/posts/default/5071109438636927368'/><link rel='alternate' type='text/html' href='http://linuxtutkusu.blogspot.com/2010/06/backport-nedir-ve-nasl-kullanlr.html' title='Backport nedir ve nasıl kullanılır?'/><author><name>Özkan</name><uri>http://www.blogger.com/profile/10120716519831468011</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>