<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I think you may be calling "service ipsec xxx" using execve or
system() from another program.<br>
Is it so ? TCP port 3082 might be opened by your program that
invokes pluto.<span style="color: rgb(0, 0, 0); font-family: Arial,
'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 18px; orphans: 2; text-align:
left; text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none; "><br>
</span>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a
href="http://stackoverflow.com/questions/6945865/process-started-from-system-command-in-c-inherits-parent-fds">http://stackoverflow.com/questions/6945865/process-started-from-system-command-in-c-inherits-parent-fds</a><br>
Your child process inherits every open file descriptor from the
parent, including the sockets you opened.<br>
<br>
<div class="moz-cite-prefix">On Tuesday 31 July 2012 07:57 AM,
Willie Gillespie wrote:<br>
</div>
<blockquote cite="mid:50174284.10902@es2eng.com" type="cite">On
07/30/2012 04:54 PM, Igor Lasic wrote:
<br>
<blockquote type="cite">Hello Muhammad, thanks for responding.
<br>
<br>
I am seeing TCP port 3082 opened as in below. We have also tried
with
<br>
port 3081 and got the same result where pluto took it.
<br>
<br>
Unfortunately we cannot guarantee the order in which services
will start
<br>
and cannot use other means such as SE security.
<br>
<br>
netstat -nap | grep 3082
<br>
*tcp 0 0 0.0.0.0:3082 0.0.0.0:*
LISTEN
<br>
_7450_/sh*
<br>
</blockquote>
<br>
Very strange. My installs only show they are listening on UDP/500
and UDP/4500.
<br>
<br>
They also show the PID/pluto (instead of the PID/sh that yours
show).
<br>
<br>
Do you think something is messed up with your installation?
<br>
_______________________________________________
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.openswan.org">Users@lists.openswan.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.openswan.org/mailman/listinfo/users">https://lists.openswan.org/mailman/listinfo/users</a>
<br>
Micropayments:
<a class="moz-txt-link-freetext" href="https://flattr.com/thing/38387/IPsec-for-Linux-made-easy">https://flattr.com/thing/38387/IPsec-for-Linux-made-easy</a>
<br>
Building and Integrating Virtual Private Networks with Openswan:
<br>
<a class="moz-txt-link-freetext" href="http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155">http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155</a>
<br>
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Best Regards,
Elison Niven</pre>
</body>
</html>