<p>What would be the benefit? It would slow stunnel down. </p>
<div class="gmail_quote">On Jul 26, 2013 5:47 PM, "<a href="mailto:mkanet@yahoo.com">mkanet@yahoo.com</a>" <<a href="mailto:mkanet@yahoo.com">mkanet@yahoo.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif"><div><span>Thanks, I guess I could do the equivalent with a batch file; but, was really hoping for buitin support for this in stunnel.  It would be nice to see in the upcoming 5.00 release as an option.<br>
</span></div><div style="font-style:normal;font-size:13.0667px;background-color:transparent;font-family:arial,helvetica,sans-serif"><span><br></span></div><div style="font-style:normal;font-size:13.0667px;background-color:transparent;font-family:arial,helvetica,sans-serif">
<span>-----------------<br></span></div><div></div><div>

<div> </div>

<div>Don't know on windows, but did a little test with a
script to get the hostnames. First did a test using you records, and then used
my current stunnel.log</div>

<div> </div>

<div>script stlog.chk</div>

<div>==================</div>

<div>grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}'
/var/log/stunnel.log | sort | uniq </div>

<div>>stout</div>

<div> </div>

<div>echo "" >stout2</div>

<div>for a in `cat stout` ; do</div>

<div><span>  </span>echo -n $a "
">>stout2;</div>

<div><span>  </span>host $a | awk
'{print $5}' >>stout2;</div>

<div>done</div>

<div> </div>

<div> </div>

<div>The results of stout2 are</div>

<div>127.0.0.1<span> 
</span>localhost.</div>

<div><a href="tel:173.194.74.108" value="+17319474108" target="_blank">173.194.74.108</a><span> 
</span><a href="http://qe-in-f108.1e100.net" target="_blank">qe-in-f108.1e100.net</a>.</div>

<div><a href="tel:173.194.74.109" value="+17319474109" target="_blank">173.194.74.109</a><span> 
</span><a href="http://qe-in-f109.1e100.net" target="_blank">qe-in-f109.1e100.net</a>.</div>

<div>192.168.128.201<span> 
</span>3(NXDOMAIN)</div>

<div>74.125.25.108<span> 
</span><a href="http://pa-in-f108.1e100.net" target="_blank">pa-in-f108.1e100.net</a>.</div>

<div>74.125.25.109<span> 
</span><a href="http://pa-in-f109.1e100.net" target="_blank">pa-in-f109.1e100.net</a>.</div>

<div> </div>

<div>Probable would want to add some code to filter out
private address. </div>

<div> </div>

<div> </div>

<div>Final step would be to scan original log and add the name
on </div>

<div>each of the lines with an ip. </div>

<div>+----------------------------------------------------------+</div>

<div><span>  </span>Michael D. Setzer
II -<span>  </span>Computer Science Instructor<span>      </span></div>

<div><span>  </span>Guam Community
College<span>  </span>Computer Center <span>                 </span></div>

<div><span>  </span><a href="mailto:mikes@kuentos.guam.net" target="_blank">mailto:mikes@kuentos.guam.net</a><span>                            </span></div>

<div><span>  </span><a href="mailto:msetzerii@gmail.com" target="_blank">mailto:msetzerii@gmail.com</a></div>

<div><span>  </span><a href="http://www.guam.net/home/mikes" target="_blank">http://www.guam.net/home/mikes</a></div>

<div><span>  </span>Guam - Where
America's Day Begins<span>                       
</span></div>

<div><span>  </span>G4L Disk Imaging
Project maintainer </div>

<div><span>  </span><a href="http://sourceforge.net/projects/g4l/" target="_blank">http://sourceforge.net/projects/g4l/</a></div>

<div>+----------------------------------------------------------+</div>

<div> </div>

<div><a href="http://setiathome.berkeley.edu/" target="_blank">http://setiathome.berkeley.edu</a>
(Original)</div>

<div>Number of Seti Units Returned:<span>  </span>19,471</div>

<div>Processing time:<span> 
</span>32 years, 290 days, 12 hours, 58 minutes</div>

<div>(Total Hours: 287,489)</div>

<div> </div>

<div>BOINC@HOME CREDITS</div>

<div>SETI<span>       
</span>15540600.945971<span>   </span>|<span>   </span>EINSTEIN<span>   
</span>12495097.479852</div>

<div>ROSETTA<span>     
</span>8051875.704643<span>   </span>|<span>   </span>ABC<span>        
</span>16197684.012277</div>

<div> </div>

</div>  <div style="font-family:arial,helvetica,sans-serif;font-size:10pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> ----- Forwarded Message -----<br>  <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> "<a href="mailto:mkanet@yahoo.com" target="_blank">mkanet@yahoo.com</a>" <<a href="mailto:mkanet@yahoo.com" target="_blank">mkanet@yahoo.com</a>><br>
 <b><span style="font-weight:bold">To:</span></b> "<a href="mailto:stunnel-users@stunnel.org" target="_blank">stunnel-users@stunnel.org</a>" <<a href="mailto:stunnel-users@stunnel.org" target="_blank">stunnel-users@stunnel.org</a>> <br>
 <b><span style="font-weight:bold">Sent:</span></b> Friday, July 26, 2013 11:16 AM<br> <b><span style="font-weight:bold">Subject:</span></b> Fw: Reverse DNS lookup in stunnel log possible?<br> </font> </div> <div><br>
<div><div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif"><div>I haven't posted on this mail list in a while.  Is there anyone still out there?  I hope I'm sending to the correct mail-list.  Is there a better place I can ask my question below?</div>
<div><br></div><div style="font-style:normal;font-size:13.0667px;background-color:transparent;font-family:arial,helvetica,sans-serif">I'm pretty sure I can't be the first person who wanted to see reverse DNS name lookup in the stunnel log.  I tried looking in the settings and documentation; but, didn't see anything related to this.<br>
<span></span></div><div><br></div>  <div style="font-family:arial,helvetica,sans-serif;font-size:10pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div> ----- Forwarded Message
 -----<br><br>
<div><div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif"><div>I currently have stunnel strip SSL from incoming https connections; which then passes the connections to a proxy before ultimately reaching my web server.  So, the only easy way to see where incoming connections are coming from are in the stunnel log.</div>
<div><br></div><div style="font-style:normal;font-size:13.0667px;background-color:transparent;font-family:arial,helvetica,sans-serif">Below, is a small example of what my stunnel log looks like (no, those arent the real IPs <img src="https://s.yimg.com/ok/u/assets/img/emoticons/emo1.gif" alt="*:) happy">).  The information below would be much more useful to me if it included the DNS names in addition to their numeric IP.</div>
<div style="font-style:normal;font-size:13.0667px;background-color:transparent;font-family:arial,helvetica,sans-serif"><br></div><div style="font-style:normal;font-size:12.8px;background-color:transparent;font-family:arial,helvetica,sans-serif">
I currently have the latest Windows version of stunnel installed.  It would be great to know how to get it to resolve DNS names as well in the log file; preferably without impeding general stunnel performance.  I tried several debug levels; but none them did reverse DNS lookup.  Hopefully someone know how to do this on a Windows stunnel setup.<br>
</div><div style="font-style:normal;font-size:13.0667px;background-color:transparent;font-family:arial,helvetica,sans-serif"><br></div><div style="font-style:normal;font-size:12.8px;background-color:transparent;font-family:arial,helvetica,sans-serif">
<a href="tel:2013.07.23%2010" value="+12013072310" target="_blank">2013.07.23 10</a>:16:00 LOG5[10152:15136]: Service [stunnel-sslh] connected remote server from
 <a href="http://24.12.152.129:58773" target="_blank">24.12.152.129:58773</a><br><a href="tel:2013.07.23%2010" value="+12013072310" target="_blank">2013.07.23 10</a>:16:00 LOG3[10152:15136]: SSL_read: Connection reset by peer (WSAECONNRESET) (10054)<br>
<a href="tel:2013.07.23%2010" value="+12013072310" target="_blank">2013.07.23 10</a>:16:00 LOG5[10152:15136]: Connection reset: 272 byte(s) sent to SSL, 96 byte(s) sent to socket<br><a href="tel:2013.07.23%2010" value="+12013072310" target="_blank">2013.07.23 10</a>:17:53 LOG5[10152:4000]: Service [stunnel-sslh] accepted connection from <a href="http://71.194.51.232:5535" target="_blank">71.194.51.232:5535</a><br>
<a href="tel:2013.07.23%2010" value="+12013072310" target="_blank">2013.07.23 10</a>:17:53 LOG5[10152:4000]: connect_blocking: connected <a href="http://24.12.152.129:7777" target="_blank">24.12.152.129:7777</a><br><a href="tel:2013.07.23%2010" value="+12013072310" target="_blank">2013.07.23 10</a>:17:53 LOG5[10152:4000]: Service [stunnel-sslh] connected remote server from <a href="http://24.12.152.129:58799" target="_blank">24.12.152.129:58799</a><br>
<a href="tel:2013.07.23%2010" value="+12013072310" target="_blank">2013.07.23 10</a>:17:53 LOG5[10152:13212]: Service [stunnel-sslh] accepted connection from <a href="http://71.194.51.232:5508" target="_blank">71.194.51.232:5508</a><br>
<a href="tel:2013.07.23%2010" value="+12013072310" target="_blank">2013.07.23 10</a>:17:53 LOG5[10152:3348]: Service [stunnel-sslh] accepted connection from <a href="http://71.194.51.232:5509" target="_blank">71.194.51.232:5509</a><br>
<a href="tel:2013.07.23%2010" value="+12013072310" target="_blank">2013.07.23 10</a>:17:53 LOG5[10152:2884]: Service [stunnel-sslh] accepted connection from <a href="http://71.194.51.232:5519" target="_blank">71.194.51.232:5519</a></div>
</div></div></div><br><br></div> </div> </div>  </div></div></div><br><br></div> </div> </div> 
 </div></div><br>_______________________________________________<br>
stunnel-users mailing list<br>
<a href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br>
<a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br>
<br></blockquote></div>