tunnel

RTSP tunneled HTTP, FFMPEG

天大地大妈咪最大 提交于 2019-12-04 14:37:26
问题 I'm trying to stream from an Axis ip camera which uses RTSP over HTTP. I can get the normal RTSP stream to work, but I can't find any information or documentation on how to actually set the tunneling mode for the stream. It is supported in the source code by setting the control_transport to RTSP_MODE_TUNNEL . My question is simple how do I do this with the following code? int ret = avformat_open_input(&pFormatCtx, [@"rtsp://ip/axis-media/media.amp" UTF8String], NULL, NULL); I tried the

Paramiko SSH Tunnel Shutdown Issue

淺唱寂寞╮ 提交于 2019-12-04 13:17:07
问题 I'm working on a python script to query a few remote databases over an established ssh tunnel every so often. I'm fairly familiar with the paramiko library, so that was my choice of route. I'd prefer to keep this in complete python so I can use paramiko to deal with key issues, as well as uses python to start, control, and shutdown the ssh tunnels. There have been a few related questions around here about this topic, but most of them seemed incomplete in answers. My solution below is a hacked

ngrok command not found

。_饼干妹妹 提交于 2019-12-04 07:31:43
问题 I'm trying to install ngrok (which I've been using for a while on Windows with no issues) on my 1 week old yosemite and these are the steps I've followed so far. Downloaded ngrok from here https://ngrok.com/download. Unziped the file and copied the Unix Executable File into application. Now from what I understand I just need to open the terminal, move inside the application folder and write ngrok http 80 . The result of this is "command not found". I've even signed up at the ngrok website and

Connect to OpenShift (Redhat Paas) mysql instance

天涯浪子 提交于 2019-12-04 06:36:04
问题 I'm trying to connect my c# application with openshift database. But I get this exception on the conn.Open() Eccezione => MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. in MySql.Data.MySqlClient.NativeDriver.Open() in MySql.Data.MySqlClient.Driver.Open() in MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) in MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() in MySql.Data.MySqlClient.MySqlPool

what's distinction of HTTP proxy, tunnel, gateway? [closed]

↘锁芯ラ 提交于 2019-12-03 23:19:42
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . all, I see the terms from RFC 2616. http://www.w3.org/Protocols/rfc2616/rfc2616-sec1.html#sec1 But I can't understand the distinction of the proxy, tunnel and gateway? Can anyone give me a simple explanation of them? Thanks. Jasonw The answer below is explained based on the definition found in RFC 2616 Proxy and server have definitions which use the word program . Whereas, for a gateway it does not.

SSH through multiple hosts to execute another ssh session [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 21:51:24
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I spent to much time trying to do something which in plain words looks simple I am at home, without firewall and all open ports. I need to ssh to the router at work where I have access to ssh port 22. My personal machine is on that subnet having internal ip address. So, what I need to do is to ssh from one machine to the second and from the second to the third. On the third I need to execute another

How to debug a ssh tunnel

£可爱£侵袭症+ 提交于 2019-12-03 13:00:49
I want to setup a simple ssh tunnel from a local machine to a machine on the internet. I'm using ssh -D 8080 -f -C -q -N -p 12122 <username>@<hostname> Setup works fine (I think) cause ssh returs asking for the credentials, which I provide. Then i do export http_proxy=http://localhost:8080 and wget http://www.google.com Wget returns that the request has been sent to the proxy, but no data is received back. What i need is a way to look at how ssh is processing the request.... To get more information out of your SSH connection for debugging, leave out the -q and -f options, and include -vvv :

Connecting to gitosis server through an SSH tunnel

荒凉一梦 提交于 2019-12-03 12:25:42
问题 I've got an SSH tunnel setup on my macbook, like this... $ ssh -o ServerAliveInterval=3 -N -L 22222:gitosis-server:22 user@firewall.domain.com So I can ssh to localhost:22222 and will end up on the gitosis-server behind the firewall. I've created a local id_rsa.pub file, copied it into the gitosis server(running Centos5), and imported it into gitosis using... # sudo -H -u gitosis gitosis-init It was successful as I can see the public key in /var/lib/gitosis/.ssh/authorized_keys. Back on my

python bind socket.error: [Errno 13] Permission denied

自古美人都是妖i 提交于 2019-12-03 09:00:33
问题 I have a python script which gets packets from a remote machine and writes them (os.write(self.tun_fd.fileno(), ''.join(packet))) to a tun interface gr3: Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.0.0.6 P-t-P:10.0.0.8 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:61 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:5124 (5.0 KiB)

RTSP tunneled HTTP, FFMPEG

半城伤御伤魂 提交于 2019-12-03 08:42:15
I'm trying to stream from an Axis ip camera which uses RTSP over HTTP. I can get the normal RTSP stream to work, but I can't find any information or documentation on how to actually set the tunneling mode for the stream. It is supported in the source code by setting the control_transport to RTSP_MODE_TUNNEL . My question is simple how do I do this with the following code? int ret = avformat_open_input(&pFormatCtx, [@"rtsp://ip/axis-media/media.amp" UTF8String], NULL, NULL); I tried the following: pFormatCtx = avformat_alloc_context(); pFormatCtx->priv_data = malloc(sizeof(RTSPState));