<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>yurisk.info &#187; Esafe</title>
	<atom:link href="http://yurisk.info/tag/esafe/feed/" rel="self" type="application/rss+xml" />
	<link>http://yurisk.info</link>
	<description>Yuri Slobodyanyuk&#039;s blog on IT Security and Networking</description>
	<lastBuildDate>Mon, 16 Apr 2012 17:23:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>New spam on the block</title>
		<link>http://yurisk.info/2010/12/21/new-spam-on-the-block/</link>
		<comments>http://yurisk.info/2010/12/21/new-spam-on-the-block/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 13:20:45 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Esafe]]></category>
		<category><![CDATA[Stories from the trenches]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1468</guid>
		<description><![CDATA[May be not new , but new to me &#8211; spam mails that instead of direct links to their websites list links cached in google. So , you get in the email not http://degayfisk.com/ but http://google.nr/search?q=cache:c2tHRUQ2mx4J:google.co.nz It is ,by the way, recognized by eSafe 8.5 as a Clean mail, what a shame.]]></description>
			<content:encoded><![CDATA[<p>May be not new , but new to me &#8211; spam mails that instead of direct links to their websites list links cached in google. So , you get in the email not  http://degayfisk.com/ but <a href="http://google.nr/search?q=cache:c2tHRUQ2mx4J:google.co.nz" > http://google.nr/search?q=cache:c2tHRUQ2mx4J:google.co.nz</a><br />
It is ,by the way, recognized by eSafe 8.5 as a Clean mail, what a shame.</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2010/12/21/new-spam-on-the-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>See what your users are doing &#8211; awk one-line scripts to parse eSafe logs</title>
		<link>http://yurisk.info/2010/10/19/see-what-your-users-are-doing-awk-one-line-scripts-to-parse-esafe-logs/</link>
		<comments>http://yurisk.info/2010/10/19/see-what-your-users-are-doing-awk-one-line-scripts-to-parse-esafe-logs/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 20:49:46 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Awk weekly]]></category>
		<category><![CDATA[Esafe]]></category>
		<category><![CDATA[awk weekly]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1283</guid>
		<description><![CDATA[As most of the posts here this one is also inspired by a client. There was an unassuming shy and not making any troubles eSafe 8.5 appliance XG-200. Then one day Security Admin of the company complained to me about &#8216;high CPU utilization&#8217; &#8211; getting somewhere up to 60% . eSafe looked absolutely fine and [...]]]></description>
			<content:encoded><![CDATA[<p>As most of the posts here this one is also inspired by a client. There was an unassuming shy and not making any troubles <a href="http://aladdin.com" target="_blank">eSafe 8.5 </a>appliance XG-200. Then one day Security Admin of the company complained to me about &#8216;high CPU utilization&#8217; &#8211; getting somewhere up to 60% . eSafe looked absolutely fine and doing its work.<br />
Also I noticed it was kinda working hard , nothing special but just general feeling that it handles a lot of load. And boy was I right &#8211; it was doing 200 Mb of logs per day . Given the number of stations in LAN and working hours that was huge. I looked with awk at the logs and happily updated the SecAdmin that eSafe is doing its work and blocks all the users trying frantically to visit various porno sites ignoring the &#8220;Site is blocked ..&#8221;message by the eSafe.  &#8220;What?  my users to pron sites, can&#8217;t be, can you show me the logs, who does it ?&#8221; . No problem, and so the awk one-liners  you see below were written to parse esafe Aladdin logs to get some insight. Also at the end of the post see eSafe log format in case you want to develop your own scripts.<br />
All logs are located at /opt/eSafe/eSafeCR/SessionLog/<br />
One-liner number one &#8211; Gather IPs that sent spam , count number of spam messages per IP, sort the list in ascending order .</p>
<div class="cmd"># awk -F&quot;|&quot; &#39;$4~SMTP &amp;&amp; ( $6~/Spam blocked/ || $6~/Mail rejected/ ) { print $11} &#39;    *.log  | sort -n | uniq -c | sort -n | tail -10</div>
<div class="cmdout">29 80.179.60.37<br />
32 41.59.0.205<br />
41 74.63.80.6<br />
41 83.16.167.14<br />
48 125.163.188.31<br />
54 125.163.192.184<br />
57 113.168.9.224<br />
78 89.223.56.16<br />
80 212.143.70.26<br />
104 212.143.70.27</div>
<p>One-liner number two – Mail sender fileds of spam messages , just for fun , no real value for security purpose:</p>
<div class="cmd"># awk -F&quot;|&quot; &#39; $4~SMTP &amp;&amp; ( $6~/Spam blocked/ || $6~/Mail rejected/ ) { print $15}  &#39; *.log  | sort  | uniq -c | sort -n</div>
<div class="cmdout">8 Stephan@117.40.136.73<br />
10 bsb@bsbinfo.in<br />
13 info@all-free.co.il<br />
13 Janette@2.90.58.204<br />
15 Ronnie@178.34.19.174<br />
17 KellieClements@cramerspointmotel.com<br />
22 notifs@m.snapinteractiveapps.com<br />
60 ezrachmudag26@gmail.com<br />
25 Simone@187.63.223.21<br />
102 Angelo@31.subnet125-163-188.speedy.telkom.net.id</div>
<p>One-liner to see all the blocks/rejects reasons and respective statistics.</p>
<div class="cmd"># awk -F&quot;|&quot;&#39; {print $6}&#39; *.log | sort -k1,1 | uniq -c</div>
<div class="cmdout">8 Application blocked<br />
21967 File allowed<br />
360 File blocked<br />
114891 File clean<br />
1731 File modified to remove malicious content<br />
3650 Mail clean<br />
111 Mail modified to remove malicious content<br />
13 Mail rejected  #912 &#8211; Anti-spoofing &#8211; Mail rejected. Attempt to impersonate a local user<br />
164 SMTP error<br />
803 Spam blocked</div>
<p><strong>Now let&#8217;s move to HTTP browsing.</strong><br />
One-liner number four – blocked access to websites : number of blocked attempts per website, hostname of the website,  internal LAN IP of PC that tried to access the resource.<br />
I do not bring examples here as they are quite embarrassing, even to be brought anonymously, so just trust me – run it on your esafe and you will blush.</p>
<div class="cmd"># awk -F&quot;|&quot; &#39;$4~HTTP &amp;&amp;  /File blocked/  { print $7,$17} &#39; *.log   | sort -k1,1 | uniq -c  | sort -n -k1,1</div>
<p>Same as above but with full path to the prohibited file.</p>
<div class="cmd"># awk -F&quot;|&quot; &#39;$4~HTTP &amp;&amp;  /File blocked/  { print $8,$17,$11}  &#39; *.log   | sort -k1,1 | uniq -c  | sort -n -k1,1</div>
<p>And finally as promised the  format of eSafe logs. All the fields in logs are separated by vertical bar (as you probably guessed awk –F&#8221;|&#8221; accounts for that). All the fields are present, while irrelevant fields are empty. So it is really scripting-friendly. I broke down the fields into separate lines with field number of each field. Enjoy.</p>
<div class="cmd">#  awk  -F&quot;|&quot; &#39; { for (i=1;i&lt;=NF;i++) print i,$i}&#39; header.txt</div>
<div class="cmdout">1 Date (yyyy-mm-dd  HH:mm:ss)<br />
2 eSafe name<br />
3 Record ID<br />
4 ProtocolType<br />
5 Method<br />
6 Event<br />
7 URL host<br />
8 File Name\Mail Subject<br />
9 File Type<br />
10 #File Size<br />
11 Source IP<br />
12 Destination IP<span id="more-1283"></span><br />
13 #VLAN<br />
14 #Port<br />
15 Mail Sender<br />
16 Mail Recipients<br />
17 URL category<br />
18 User<br />
19 LDAP domain<br />
20 Host<br />
21 Decision By<br />
22 Profile<br />
23 Policy<br />
24 #Policy ID<br />
25 Details<br />
26 Extended result<br />
27 SessionID<br />
28 MessageID<br />
29 #Rule<br />
30 #File Binary Family<br />
31 File container path<br />
32 File name<br />
33 #File parameter<br />
34 #Engine code<br />
35 #Activity code<br />
36 Blocked URL category code<br />
37 URL category mask<br />
38 Result name<br />
39 #Result code<br />
40 #Server type ID<br />
41 #Application code<br />
42 #Action<br />
43 #Risky<br />
44 #Source IP<br />
45 #Destination IP<br />
46 #MachineIP<br />
47 #Duration<br />
48 #AID<br />
49 Referrer<br />
50 UUID<br />
51 #Has CMF<br />
52 Date<br />
53 Time<br />
54 #Mail status<br />
55 DLP profile</div>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2010/10/19/see-what-your-users-are-doing-awk-one-line-scripts-to-parse-esafe-logs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RBLs &#8211; more hassle than benefit</title>
		<link>http://yurisk.info/2010/10/18/rbls-more-hassle-than-benefit/</link>
		<comments>http://yurisk.info/2010/10/18/rbls-more-hassle-than-benefit/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 10:30:12 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Esafe]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1278</guid>
		<description><![CDATA[as I wrote earlier Google mail servers got blacklisted , but it was only the beginning. Now I got complains from the client that hotmail.com users also get mail bounced because of this list . So, as running after each and every IP blocked by this list endlessly wasn&#8217;t the best use of my time, [...]]]></description>
			<content:encoded><![CDATA[<p>as I wrote earlier <a href="http://yurisk.info/2010/10/05/skynet-got-blacklisted-google-mail-servers-entered-rbl-of-sorbs-net/"> Google mail servers got blacklisted</a> , but it was only the beginning. Now I got complains from the client that hotmail.com users also get mail bounced because of this list . So, as running after each and every IP blocked by this list endlessly wasn&#8217;t the best use of my time, I disabled this specific RBL in eSafe. So far no complains neither about bounced mail nor increased spam. The screenshot below shows where to find this RBL in the eSafe.<br />
<img src="/disable_RBL.PNG" alt="How to disable specific RBL server" /></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2010/10/18/rbls-more-hassle-than-benefit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visio stencils for Cisco, Juniper, Fortinet, Checkpoint, Avaya</title>
		<link>http://yurisk.info/2010/06/26/visio-stencils-for-cisco-juniper-fortinet-checkpoint-avaya/</link>
		<comments>http://yurisk.info/2010/06/26/visio-stencils-for-cisco-juniper-fortinet-checkpoint-avaya/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 12:43:25 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Fortigate]]></category>
		<category><![CDATA[Checkpoint]]></category>
		<category><![CDATA[Esafe]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=942</guid>
		<description><![CDATA[Some links to download Visio stencils of the few most popular vendors. Juniper Cisco Avaya BlueCoat Fortinet DellCheckpoint happen not to have official stencils set, only Nokia appliances stuff can be found. So someone volunteered and using icons/press releases/PowerPoint presentations done by the Checkpoint turned it into the Visio stencils&#58; fireverse.orgIf nothing else helps here [...]]]></description>
			<content:encoded><![CDATA[<p>Some links to download Visio stencils of the few most popular vendors.<br />
<a href="http://www.juniper.net/us/en/products-services/icons-stencils/">Juniper</a><br />
<a href="http://www.cisco.com/en/US/products/prod_visio_icon_list.html">Cisco</a><br />
<a href="http://support.avaya.com/css/appmanager/public/support?_nfpb=true&#038;_pageLabel=WNContent_Public&#038;contentid=C20097681410857094">Avaya</a><br />
<a href="http://www.bluecoat.com/resources/productimageslogos">BlueCoat</a><br />
<a href="http://kb.fortinet.com/kb/microsites/search.do?cmd=displayKC&#038;docType=kc&#038;externalId=11091&#038;sliceId=1&#038;docTypeID=DT_KCARTICLE_1_1&#038;dialogID=7440262&#038;stateId=0%200%207442231"> Fortinet</a><br />
<a href="http://www.dell.com/content/topics/topic.aspx/global/products/pvaul/topics/en/visio?c=us&#038;l=en&#038;s=gen">Dell</a><br />Checkpoint happen not to have official stencils set, only Nokia appliances stuff can be found. So someone volunteered and using icons/press releases/PowerPoint presentations done by the Checkpoint turned it into the Visio stencils&#58;<br />
<a href="http://fireverse.org/?page_id=14">fireverse.org</a><br />If nothing  else helps here you  can find the rest&#58;<br />
<a href="http://nag.ru/projects/visio/">nag.ru/projects/visio</a></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2010/06/26/visio-stencils-for-cisco-juniper-fortinet-checkpoint-avaya/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quick and dirty way to bypass eSafe inspection</title>
		<link>http://yurisk.info/2010/05/12/quick-and-dirty-way-to-bypass-esafe-inspection/</link>
		<comments>http://yurisk.info/2010/05/12/quick-and-dirty-way-to-bypass-esafe-inspection/#comments</comments>
		<pubDate>Wed, 12 May 2010 18:46:26 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Esafe]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=747</guid>
		<description><![CDATA[There are times when you need to make some website work immediately while it is being blocked by eSafe for some (many) reasons. And you just don&#8217;t get it working the educated way &#8211; adding to white/exclude lists, changing script/category block options etc. For the cases just like that Aladdin have provided us with Exclusion [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when you need to make some website work immediately while it is being blocked by eSafe for some (many) reasons. And you just don&#8217;t get it working the educated way &#8211; adding to white/exclude lists, changing script/category block options etc.<br />
For the cases just like that Aladdin have provided us with <strong> Exclusion List</strong> in <strong> NitroInspection Configuration</strong> . It basically means traffic to/from the IP addresses you put into this list will be COMPLETELY ignored by eSafe scanning engine, and will be moved from interface to interface at the NIC driver speed.<br /> To get there you go to <strong>Options-&gt;-NitroInspection Configuration-&gt;-Exclusion list-&gt;Add</strong><br />
In example below I add facebook.com IP range to such exclusion list.<br />
<a href="http://yurisk.info/nitroinspection.gif"><img src="http://yurisk.info/nitroinspectionsmall.gif" alt="NitroInspection Exclusion list screenshot" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2010/05/12/quick-and-dirty-way-to-bypass-esafe-inspection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increase log size in eSafe</title>
		<link>http://yurisk.info/2009/12/14/310/</link>
		<comments>http://yurisk.info/2009/12/14/310/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 12:26:38 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Esafe]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=310</guid>
		<description><![CDATA[Session logs in eSafe are  essential for debugging  . By default ,nevertheless each Session log file is limited to 100 megabytes in size , after reaching this limit eSafe stops writing the Session logs until the next log rotation &#8211; that is midnight. To fix this , edit  the file /opt/eSafe/eSafeCR/esafecfg.ini: [ALERT GENERAL]   Size [...]]]></description>
			<content:encoded><![CDATA[<p>Session logs in eSafe are  essential for debugging  . By default ,nevertheless each Session log file is limited to 100 megabytes in size , after reaching this limit eSafe stops writing the Session logs until the next log rotation &#8211; that is midnight.</p>
<p>To fix this , edit  the file <strong>/opt/eSafe/eSafeCR/esafecfg.ini</strong>:</p>
<p>[ALERT GENERAL]  <br />
Size limit=2<br />
Last overflow=0<br />
Minimum free disk space=2000<br />
Block if internal error=1<br />
File name=^M<br />
Report days=10<br />
Session log days=7    = &gt;  <strong>Session log days= 365</strong><br />
Report max length=100<br />
Session log max length=100  =&gt;  <strong>Session log max length=500</strong><br />
Log sessions=1<br />
Detailed log sessions=0<br />
Log System Info Interval=10<br />
MMS block if internal error=1<br />
SessionLog To EventLog=0</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2009/12/14/310/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eSafe has iptables too ….</title>
		<link>http://yurisk.info/2009/09/08/esafe-has-iptables-too/</link>
		<comments>http://yurisk.info/2009/09/08/esafe-has-iptables-too/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 17:58:05 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Esafe]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=215</guid>
		<description><![CDATA[Did you know that eSafe  software is based on RedHat Enterprise  Linux (RHEL) ? Of course you did. But what does it mean? It means that all (or almost all) tools/utilities/programming logic of the Linux is at your fingertips. Let’s take for example software eSafe runs on the boot  [root@esafe root]# chkconfig &#8211;list rdisc                          [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know that eSafe  software is based on RedHat Enterprise  Linux (RHEL) ? Of course you did.<br />
But what does it mean? It means that all (or almost all) tools/utilities/programming logic of the Linux is at your fingertips.<br />
Let’s take for example software eSafe runs on the boot</p>
<p> [root@esafe root]# <strong>chkconfig &#8211;list</strong><br />
rdisc                          0:off   1:off   2:off   3:off   4:off   5:off   6:off<br />
anacron                   0:off   1:off   2:off   3:off   4:off   5:off   6:off<br />
kudzu                        0:off   1:off   2:off   3:on    4:on    5:on    6:off<br />
syslog                       0:off   1:off   2:on    3:on    4:on    5:on    6:off<br />
network                   0:off   1:off   2:on    3:on    4:on    5:on    6:off<br />
random                    0:off   1:off   2:on    3:on    4:on    5:on    6:off<br />
saslauthd                 0:off   1:off   2:off   3:off   4:off   5:off   6:off<br />
microcode_ctl      0:off   1:off   2:on    3:on    4:on    5:on    6:off<br />
irqbalance              0:off   1:off   2:off   3:on    4:on    5:on    6:off<br />
smartd                     0:off   1:off   2:off   3:off   4:off   5:off   6:off<br />
atd                             0:off   1:off   2:off   3:on    4:on    5:on    6:off<br />
log2trap                   0:off   1:off   2:off   3:off   4:off   5:off   6:off<br />
sshd                          0:off   1:off   2:on    3:on    4:on    5:on    6:off<br />
crond                       0:off   1:off   2:on    3:on    4:on    5:on    6:off<br />
ntpd                         0:off   1:off   2:off   3:off   4:off   5:off   6:off<br />
<span style="color:#0000ff;">iptables                   0:off   1:off   2:on    3:on    4:on    5:on    6:off<br />
</span>webmin                   0:off   1:off   2:on    3:on    4:off   5:on    6:off<br />
esafe                        0:off   1:off   2:off   3:on    4:on    5:on    6:off</p>
<p>Today I played with just one of them – iptables. First things first – eSafe is not a firewall . You don’t usually give<br />
bunch of papers (called money) to use eSafe for the function that any Pentium 4 PC can do for the fraction of the price. So, it<br />
is not supported and not to be used as the mainstream feature. Nevertheless it is here and may come handy in some situations.</p>
<p>In the output of <span style="text-decoration:underline;">chkconfig &#8211;list</span>  chckconfig showed that whenever eSafe is on, iptables is on as well. The default iptables policy is ALLOW ANY ANY :<br />
[root@esafe root]#<strong> iptables -L</strong><br />
Chain INPUT (policy ACCEPT)<br />
target     prot opt source               destination</p>
<p>Chain FORWARD (policy ACCEPT)<br />
target     prot opt source               destination</p>
<p>Chain OUTPUT (policy ACCEPT)<br />
target     prot opt source               destination</p>
<p>Few observations:<br />
- To block incoming connections destined for the eSafe itself you use INPUT chain, FORWARD chain has no meaning in bridged eSafe Gateway (in routing Gateway mode it  would be applicable I guess)<br />
- I tried few basic rules on the eSafe Hellgate 200 while turning on High-Debug mode , and while machine was loaded by debug<br />
mode , using iptables filtering did not add visible overhead to it.<br />
In most of the deployment scenarios eSafe is installed between internal interface of the firewall and LAN. It means from outside it is protected quite well whereas from LAN it is wide open to any trouble coming in. eSafe has its own means of  limiting access to it from certain IPs.<br />
To limit access to eConsole – you go in eConsole to <strong>Options -&gt; Access and Permissions -&gt; configure user</strong> (by default admin will be there)  and IP from which this user will be granted access.<br />
To limit access to WebGUI (HTTPS) : in the WebGUI go to <strong>Settings -&gt; Access Control -&gt;</strong>  put IP to allow it access in “eSafe Appliance accepts connections from:”<br />
To limit access by SSH use Linux means (there are few ways but I show just one of them) :<br />
 <strong>vi /etc/ssh/sshd_config</strong><br />
# add at the end the following line to limit ssh access to 10.99.99.150 only:<br />
<strong>AllowUsers</strong>   <a href="mailto:*@10.99.99.150">*@10.99.99.150</a><br />
Or, using wildcards to the whole network only:<br />
<strong>AllowUsers</strong>   <a href="mailto:*@10">*@10</a>.*.*.*</p>
<p>All the above is correct and fine BUT – what if you need to temporarily limit access and not permanently ? All the above are permanent changes that will survive  reboot and  if you make a mistake you grant someone a visit to the appliance for  console connection. On the other hand you may use iptables to achieve the same access control and should something go wrong reboot will return all back to normal.</p>
<p>So, let’s go:</p>
<p>- I don’t like when debugging some complicated issue after logging off from eConsole I can’t access it again as someone from LAN already logged in :<br />
1) Grant your IP the access to econsole:<br />
[root@esafe root]# <strong>iptables -I INPUT    -p tcp -s 10.99.99.150 &#45;&#45;dport 43969:43982 -j ACCEPT</strong><br />
2) Deny anyone else<br />
[root@esafe root]# <strong>iptables -I INPUT 2 -p tcp &#45;&#45;dport 43969:43982 -j DROP<br />
</strong>- SSH in general isn’t something  a client should have access to :<br />
1) First allow youself access:<br />
 [root@esafe root]# <strong>iptables -I INPUT -p tcp &#45;&#45;dport 22 -s 10.99.99.150  -j ACCEPT</strong><br />
2) Then deny anyone else:<br />
[root@esafe root]# <strong>iptables -I  INPUT 2 -p tcp &#45;&#45;dport 22   -j DROP</strong></p>
<p>3) Restart ssh daemon (it won&#8217;t disconnect your current session):</p>
<p>[root@esafe root]# <strong>service sshd restart</strong></p>
<p>[root@esafe root]# iptables -L<br />
Chain INPUT (policy ACCEPT)<br />
target     prot opt source               destination<br />
ACCEPT     tcp  &#8211;  10.99.99.150         anywhere           tcp dpt:ssh<br />
DROP       tcp  &#8211;  anywhere             anywhere           tcp dpt:ssh</p>
<p> <br />
Those  addicted to iptables know that some spicy features come with modules and kernel options set at compile time.<br />
To give you the taste of  what is included in eSafe iptables, the listing follows:</p>
<p>/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/arp_tables.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/arpt_mangle.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/arptable_filter.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_conntrack.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_conntrack_amanda.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_conntrack_ftp.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_conntrack_irc.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_conntrack_tftp.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_nat_amanda.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_nat_ftp.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_nat_irc.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_nat_snmp_basic.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_nat_tftp.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_queue.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ip_tables.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipchains.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipfwadm.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_DSCP.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_ECN.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_LOG.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_MARK.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_MASQUERADE.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_MIRROR.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_REDIRECT.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_REJECT.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_TCPMSS.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_TOS.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_ULOG.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_ah.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_conntrack.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_dscp.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_ecn.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_esp.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_helper.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_length.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_limit.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_mac.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_mark.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_multiport.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_owner.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_pkttype.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_recent.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_state.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_tcpmss.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_tos.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_ttl.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/ipt_unclean.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/iptable_filter.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/iptable_mangle.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv4/netfilter/iptable_nat.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/ah6.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/esp6.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/ip6_tunnel.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/ipcomp6.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/ipv6.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6_tables.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_LOG.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_MARK.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_ah.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_dst.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_esp.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_eui64.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_frag.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_hbh.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_hl.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_ipv6header.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_length.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_limit.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_mac.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_mark.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_multiport.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_owner.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6t_rt.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6table_filter.o<br />
/lib/modules/2.4.21-47.ELsmp/kernel/net/ipv6/netfilter/ip6table_mangle.o</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2009/09/08/esafe-has-iptables-too/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Website/malware categorization in eSafe</title>
		<link>http://yurisk.info/2009/06/12/websitemalware-categorization-in-esafe/</link>
		<comments>http://yurisk.info/2009/06/12/websitemalware-categorization-in-esafe/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 08:41:02 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Esafe]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=162</guid>
		<description><![CDATA[If some website gets blocked by eSafe for being categorized wrongly you may fix it actually very simple. You enter the link below and change the website category; this takes some time , usually from few hours up to a day,for the change to take effect. If website has no category already then update takes [...]]]></description>
			<content:encoded><![CDATA[<p>If some website gets blocked by eSafe for being categorized wrongly you<br />
may fix it actually very simple. You enter the link below  and change the website category; this takes some time , usually from few hours up to a day,for  the change to take effect. If website  has no category already then update takes effect fast.</p>
<p><a href="http://filterdb.iss.net/urlcheck/">filterdb.iss.net/urlcheck/</a></p>
<p>To see what each category includes:<br />
<a href="http://www-935.ibm.com/services/us/index.wss/detail/iss/a1029077?cntxt=a1027244">www-935.ibm.com/services/us/index.wss/detail/iss/a1029077?cntxt=a1027244 </a></p>
<p>When you want to report an item that was falsely detected as virus/malware by<br />
eSafe you should send your request to :</p>
<p><img src="http://yurisk.files.wordpress.com/2009/06/info1.jpg" alt="info" title="info" width="383" height="49" class="alignnone size-full wp-image-167" /></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2009/06/12/websitemalware-categorization-in-esafe/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>eSafe Certified Professional</title>
		<link>http://yurisk.info/2009/03/07/esafe-certified-professional/</link>
		<comments>http://yurisk.info/2009/03/07/esafe-certified-professional/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 15:30:52 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Esafe]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=89</guid>
		<description><![CDATA[Recently I&#8217;ve taken the 2-day course and then successfully passed eSCP certification and here are some impressions about that. First, for serial certification obtainers,for the main question &#8211; what is the gain here? &#8211; I will frankly say &#8211; I don&#8217;t know. This cert isn&#8217;t found under &#8216;most wanted/hot/industry leading&#8217; headings anywhere, so whether it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve taken the 2-day course and then successfully passed eSCP certification and here are some impressions about that. First, for serial certification obtainers,for the main question &#8211; what is the gain here? &#8211; I will frankly say &#8211; I don&#8217;t know. This cert isn&#8217;t found under &#8216;most wanted/hot/industry leading&#8217; headings anywhere, so whether it&#8217;s gonna get you an advantage in  promotion/job search/etc remains an open question.<br />
The course was fully funded by my work and I took part in it for the benfit  of the knowledge I would gain there only. And to take test is possible only after you passed the course. So , let&#8217;s head over to the course.<br />
The course was administered at 3rd-part learning center but by folks from Aladdin  itself ONLY &#8211; one of the strong points of the course. As I understood even if  the course would be given in the heart of Amazonia,Brazil it still would be presented by Aladdin folks, no &#8216;certified instructors&#8217; are employed.<br />
There were 2 instructors , one doing talking and helping in labs , and the other helping in labs . While first instructor  is from Presale team, she could answer any technical questions I had (&#8220;- Can you remind me name of the file to add Ip address to the interface so it survives reboot, unlike ifconfig ?&#8221;).</p>
<p>The overall course consisted of approximately 20% presentations/talks and  80% hands-on labs. The contents can be seen here, only that we dealt with  version 7 only, not 6.2 as in pdf: <a href="ftp://ftp.aladdin.com/pub/marketing/eSafe/Agenda/Expert_Agenda.pdf"><br />
ftp://ftp.aladdin.com/pub/marketing/eSafe/Agenda/Expert_Agenda.pdf</a> .<br />
Every pair of students was given Hellgate appliance to play with. And we used it to the full &#8211; our team even succeeded to push beyond the limit,crash and do RMA on our HellGate &#8211; fastest  RMA ever seen &#8211; took 5 mins to bring new Hellgate.</p>
<p>Everyone was given a book-sized course material including presentations we heard  and labs. The flow was &#8211; presentation then lab. Started with reimaging eSafe from usb, then all config labs as per pdf above. The LDAP lab took much more then was allocated for it as many (including me) are not good fiends with all the AD/LDAP/OU/CN/DN stuff ,eventhough the AD server was preconfigured and we had to  just(?) connect eSafe to it.<br />
Due to time shortage we haven&#8217;t done Web SSL/Reporter/Proxy (not a big deal for me as I am yet to see any of them in the wild) labs.<br />
All setup had access to the Internet , so URL-filtering we could test real-time.</p>
<p>To conclude &#8211; I enjoyed the course, learned lots of new things (my job involves  supporting already installed and working eSafe, so I don&#8217;t do  installing/configuring from scratch the appliance, something our integration department always do) and therefore it was worthwhile.<br />
Upon completion we were given link to password-protected CBT, possibility to open  personal account with portal.aladdin.com , link to download eSafe 7.1 ISO disk  (every eSafe has built-in evaluation license for 30 days), nice bag, and user/pass and link to the website to take exam.</p>
<p>Now to exam &#8211; it is a web based test, with 50 questions and 90 minutes to do it.<br />
The test is pretty easy given you took active part in the course before as it recaptures the same topics. So I did it in about 30 mins, got the web page  &#8220;Congradulations you passed&#8221; and a week later received by a courier framed certificate that I am now eSafe Certified Professional.</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2009/03/07/esafe-certified-professional/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eSafe download &#8211; demo, docs</title>
		<link>http://yurisk.info/2009/01/28/esafe-download-demo-docs/</link>
		<comments>http://yurisk.info/2009/01/28/esafe-download-demo-docs/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 18:48:10 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Esafe]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=69</guid>
		<description><![CDATA[Today newcomer to our department asked me how he should start learning eSafe &#8211; should he install Mail or Gateway on VMware ? Erm &#8230; May be docs and manuals (as I did) ? No ,old-fashioned, in our age of CBTs/virtualization/Camtasia-everywhere buzzwords it needs to be with GUI and interactive, so &#8230; The best way [...]]]></description>
			<content:encoded><![CDATA[<p>Today newcomer to our department asked me how he should start learning eSafe &#8211; should he install Mail or Gateway on VMware ? Erm &#8230; May be docs and manuals (as I did) ? No ,old-fashioned, in our age of<br />
CBTs/virtualization/Camtasia-everywhere buzzwords it needs to be with GUI and interactive, so &#8230;<br />
The best way to start learning a product is first to see it <img src='http://yurisk.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; for this Aladdin made a <strong>demo econsole. </strong><br />
After you run it it presents you with dosen of eSafe &#8221;machines&#8221; to any of which you can login by double clicking and feel like you are configuring a real eSafe machine &#8211; all GUI and options are exact copy of real<br />
product. You can get it here after filling form with (ir)relevant details.<br />
<a href="http://www.esafe.com/esafe/demo.aspx">Demo econsole </a></p>
<p>Here is the link for econsole download eSafe 7.1, be aware that is quite important that  you use econsole verison matching <span style="text-decoration:underline;">exactly </span>the<br />
eSafe software version you are trying to connect to. I once had client that installed eSafe 7.0 (some beta release) and downloaded locally econsole from the machine, all worked fine.Then he upgraded eSafe software to 7.1 but did  NOT reinstall  new econsole , as the  result<br />
he couldn&#8217;t find bunch of options in the econsole. In worst scenario using non-matching version of econsole to make configuration changes might cause substantial damage to the eSafe software, up to complete reinstall/reimage.<br />
<a href="http://rapidshare.com/files/278956115/esg_gui.exe" title="eSafe econsole 7.1"> eSafe econsole 7.1 </a><br />
<strong>Docs</strong> Also freely available at :<br />
<a href="http://www.esafe.com/support/esafe_documentation.aspx">eSafe Documenation</a><br />
<strong>Knowledgebase</strong> &#8211; if you work for Aladdin partner you will have access to<br />
complete knowledgebase , while anyone else can see a smaller part of it (that will suffice for few long<br />
weeks of studying nevertheless ).<br />
<a href="https://kb.aladdin.com">kb.aladdin.com </a></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2009/01/28/esafe-download-demo-docs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

