<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I have two stunnel processes. One listing on 443 -> localhost:80. The other listening on 8000 -> localhost:7001. (See configs below.)<DIV><BR class="khtml-block-placeholder"></DIV><DIV>However, when I stop the process listening on port 7001, both stunnel processes start listening on 7001 (and a few other ports). I'm completely confused as to why this would happen.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>This is what I see normally:</DIV><DIV>mta4-tiny-support (epgate)[6]$ sudo lsof -p 25253 -p 25255 -a -i4</DIV><DIV>Password:</DIV><DIV>COMMAND� � PID USER�� FD�� TYPE� DEVICE SIZE NODE NAME</DIV><DIV>stunnel4 25253 root� � 6u� IPv4 3439450� � �� TCP *:8000 (LISTEN)</DIV><DIV>stunnel4 25255 root� � 6u� IPv4 3439456� � �� TCP *:https (LISTEN)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>This is what I see when stunnel appears to go bizerk: (after stopping the process that was listening on ports *:7000, localhost:7001 & localhost:7005)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">COMMAND� � PID USER�� FD�� TYPE� DEVICE SIZE NODE NAME</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">stunnel4 22788 root� � 5u� IPv4 1269640� � �� TCP 127.0.0.1:4341->127.0.0.1:19996 (CLOSE_WAIT)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>stunnel4 22788 root� � 6u� IPv4 1273504� � �� TCP 127.0.0.1:7001 (LISTEN)</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">stunnel4 22788 root� � 7u� IPv4 1273476� � �� TCP 127.0.0.1:4606->127.0.0.1:19995 (ESTABLISHED)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">stunnel4 22788 root� � 9u� IPv4 1273477� � �� TCP 127.0.0.1:19995->127.0.0.1:4606 (ESTABLISHED)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">stunnel4 22788 root�� 11u� IPv4 1273507� � �� TCP *:7000 (LISTEN)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>stunnel4 22788 root�� 17u� IPv4 1273515� � �� TCP 127.0.0.1:7005 (LISTEN)</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">stunnel4 22788 root�� 19u� IPv4 1274895� � �� TCP 127.0.0.1:7001->127.0.0.1:1793 (CLOSE_WAIT)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">stunnel4 22788 root�� 24u� IPv4 1275089� � �� TCP *:8000 (LISTEN)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">stunnel4 22790 root� � 5u� IPv4 1269640� � �� TCP 127.0.0.1:4341->127.0.0.1:19996 (CLOSE_WAIT)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>stunnel4 22790 root� � 6u� IPv4 1273504� � �� TCP 127.0.0.1:7001 (LISTEN)</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">stunnel4 22790 root� � 7u� IPv4 1273476� � �� TCP 127.0.0.1:4606->127.0.0.1:19995 (ESTABLISHED)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">stunnel4 22790 root� � 9u� IPv4 1273477� � �� TCP 127.0.0.1:19995->127.0.0.1:4606 (ESTABLISHED)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>stunnel4 22790 root�� 11u� IPv4 1273507� � �� TCP *:7000 (LISTEN)</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>stunnel4 22790 root�� 17u� IPv4 1273515� � �� TCP 127.0.0.1:7005 (LISTEN)</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">stunnel4 22790 root�� 19u� IPv4 1274895� � �� TCP 127.0.0.1:7001->127.0.0.1:1793 (CLOSE_WAIT)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>stunnel4 22790 root�� 24u� IPv4 1275094� � �� TCP *:443 (LISTEN)</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Courier New; min-height: 12px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Active Internet connections (only servers)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Proto Recv-Q Send-Q Local Address� � � � �� Foreign Address� � � �� State� � �� User� � �� Inode� � � PID/Program name��</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 127.0.0.1:7008� � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1281907� � 24848/python� � � �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>tcp� � � � 0� � � 0 0.0.0.0:8000� � � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1275089� � 22788/stunnel4� � �</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 0.0.0.0:1025� � � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1681� � �� -� � � � � � � � ��</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 0.0.0.0:963� � � � � �� 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1556� � �� 1205/rpc.statd� � �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 0.0.0.0:111� � � � � �� 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1238� � �� 986/portmap� � � ��</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 0.0.0.0:80� � � � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1281911� � 24848/python� � � �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 127.0.0.1:7025� � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1281130� � 24605/master� � � �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 127.0.0.1:7026� � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1281542� � 24677/python� � � �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 0.0.0.0:818� � � � � �� 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1356� � �� 1061/ypbind� � � ��</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 127.0.0.1:7027� � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1281731� � 24777/python� � � �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 127.0.0.1:7028� � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1281910� � 24848/python� � � �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 0.0.0.0:22� � � � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1486� � �� 1195/sshd� � � � ��</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>tcp� � � � 0� � � 0 0.0.0.0:7000� � � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1273507� � 22788/stunnel4� � �</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 127.0.0.1:5432� � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 400� � � � 1269115� � 20559/postmaster� �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 172.16.80.213:25� � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1281126� � 24605/master� � � �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 172.16.80.212:25� � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1280994� � 24584/master� � � �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>tcp� � � � 0� � � 0 127.0.0.1:7001� � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1273504� � 22788/stunnel4� � �</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>tcp� � � � 0� � � 0 0.0.0.0:443� � � � � �� 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1275094� � 22790/stunnel4� � �</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 127.0.0.1:955� � � � �� 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1518� � �� 1201/famd� � � � ��</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><B>tcp� � � � 0� � � 0 127.0.0.1:7005� � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1273515� � 22788/stunnel4� � �</B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 127.0.0.1:7006� � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1281540� � 24677/python� � � �</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">tcp� � � � 0� � � 0 127.0.0.1:7007� � � � � 0.0.0.0:*� � � � � � �� LISTEN� �� 0� � � � � 1281724� � 24777/python� � � �</SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm running stunnel 4.09 on Debian 3.1/Linux 2.6 Kernel. My configurations are:</DIV><DIV>pid=/var/run/epgate_admin_stunnel4.pid</DIV><DIV>cert=/epgate/etc/ssl/admin.stunnel</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[Admin]</DIV><DIV>accept=8000</DIV><DIV>connect=7001</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>and:</DIV><DIV>pid=/var/run/epgate_quarantine_stunnel4.pid</DIV><DIV>cert=/epgate/etc/ssl/quar.stunnel</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[Quarantine]</DIV><DIV>accept=443</DIV><DIV>connect=80</DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>