[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Thu, 25 Aug 2005 17:10:40 -0400 -->
- <!--x-from-r13: nqeva ng oryyfbhgu.arg (V. O. Egbel) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] port forwarding with nc -->
- <li><em>date</em>: Thu, 25 Aug 2005 17:10:40 -0400</li>
- <li><em>from</em>: adrin at bellsouth.net (H. A. Story)</li>
- <li><em>in-reply-to</em>: <<a href="msg00426.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00415.html">[email protected]</a>> <<a href="msg00423.html">[email protected]</a>> <<a href="msg00426.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] port forwarding with nc</li>
James P. Kinney III wrote:
>OK. So I reverse the ends and run the ssh tunnel from B to A and it
>works.
>
>There is a firewall between B and the internet but it was set for full
>forwarding (which is getting closed up now).
>
>On Thu, 2005-08-25 at 12:47 -0400, James P. Kinney III wrote:
>
>
>>More stuff:
>>
>>established an ssh tunnel from A to B with:
>>ssh -fNL 26150:machineB:26150 machineB &
>>
>>now try to simply connect netcat to the localhost port 26150:
>>nc localhost 26150
>>
>>I get the error message:
>>
>>channel 1: open failed: connect failed: No route to host
>>
>>????? I'm connecting to localhost. ?!?!?!?!?
>>
>>On Thu, 2005-08-25 at 09:51 -0400, James P. Kinney III wrote:
>>
>>
>>>The scenario:
>>>
>>>take serial port data from /dev/ttyS14 on machineA and route it securely
>>>with an ssh tunnel to machineB where it is picked up and put onto serial
>>>port /dev/ttyS1
>>>
>>>I have been trying to do it with a combination of nc and ssh as follows:
>>>
>>>on machineA:
>>>#!/bin/sh
>>>
>>>TCP_PORT=26150
>>>SERIAL_PORT=/dev/ttyS14
>>>BAUDRATE=38400
>>>
>>>while (true)
>>> do
>>> (stty $BAUDRATE -echo clocal raw pass8 ; exec nc -l -p
>>>$TCP_PORT) < $SERIAL_PORT > $SERIAL_PORT
>>>done
>>>
>>>followed by:
>>>
>>>ssh -L 26150:machineB:26150 machineB
>>>(ssh connection is with keys)
>>>
>>>And on machineB the same script as above with SERIAL_PORT=/dev/ttyS1
>>>
>>>I keep running into the issue of not being able to "share connections"
>>>to port 26150 on machineA. Both nc and ssh want to lock it on their
>>>connection. How do I get around this?
>>>
>>>(stupid, ancient DOS app that can't be run over a nice fast network
>>>line)
>>>
>>>
>>>_______________________________________________
>>>Ale mailing list
>>>Ale at ale.org
>>><a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
>>>
>>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>><a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>><a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
>>
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00432" href="msg00432.html">[ale] port forwarding with nc</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00415" href="msg00415.html">[ale] port forwarding with nc</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
<li><strong><a name="00423" href="msg00423.html">[ale] port forwarding with nc</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
<li><strong><a name="00426" href="msg00426.html">[ale] port forwarding with nc</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00430.html">[ale] ntfs only accessible by root</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00432.html">[ale] port forwarding with nc</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00426.html">[ale] port forwarding with nc</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00432.html">[ale] port forwarding with nc</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00431"><strong>Date</strong></a></li>
<li><a href="threads.html#00431"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>