Questions tagged [stream]
27 questions
25
votes
3 answers
unknown directive "stream" in /etc/nginx/nginx.conf:86
I have nginx/1.12.0 and as per document it contains stream module. I have installed nginx with the following commands.
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
nginx -v
nginx version: nginx/1.12.0
I…

user3332404
- 351
- 1
- 3
- 7
11
votes
3 answers
How to proxy multiple tcp streams on one port with nginx
With nginx http directive, you can have multiple servers on the same port with different names:
server {
listen 80;
server_name server1.example.com;
location / {
proxy_pass http://server1.example.com;
}
}
server {
…

joels
- 251
- 1
- 3
- 6
7
votes
1 answer
Is there a tool that can top-ify an input stream?
I come across quite a few use cases where it would be very useful to take input from a (usually newline-delimited) stream and summarise it in a top-like fashion (see top, iotop, etc). A kind of on-the-fly pivot table.
e.g. Take the log-esque…

tudor -Reinstate Monica-
- 1,805
- 18
- 35
5
votes
1 answer
How do I set up a basic IPv6 video stream using VLC
I'm teaching a class IPv6 and would like to create a lab for them to see the true benefit of ipv6 multicasting in action.
I created a multicast address for myself
ff15::1 (where ff is multicast, 1 is transient, no rsvp, and 5 is site scope). I then…

sparkyspider
- 177
- 2
- 8
4
votes
3 answers
OpenSSL connection Error called stream_socket_enable_crypto()
in my php coding i have following line which uses by SWIFT MAILER Class
if(!stream_socket_enable_crypto($this->smtp_conn, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
return false;
}
however rarely (not always) i get following php…

mahen3d
- 3,905
- 12
- 34
- 55
3
votes
2 answers
nginx reverse stream proxy with multiple ports to the same server
I'm trying to use nginx as a reverse proxy to two different servers. The servers require the use of client-side certificates for authentication, which means nginx is configured as a stream proxy leveraging the map $ssl_preread_server_name for SNI…

Andrew
- 2,057
- 2
- 16
- 25
3
votes
1 answer
USB Webcam to IP Webcam on UBUNTU Server 11.04
I am wanting to install some security and surveillence in the room my ubuntu server occupies.
I have already sorted out the security but was thinking about installing a camera of some sort. I don't really want to fork out the money to buy an IP…

MichaelH
- 179
- 1
- 8
2
votes
2 answers
How to forward non-http requests on port 80 to another port?
There is an nginx web server listening to both 80 and 443 ports. I would like to process all the http requests as usual and forward all the non-http requests to another port (say, 1234).
My question is very similar to one already answered on…

semyonfilippov
- 43
- 1
- 7
2
votes
1 answer
mirror STDOUT and STDERR to file by default
How I can accomplish STDOUT to be to logged in a file (appending), but preserving the flow (leave STDOUT to STDOUT) ?
STDOUT should work transparently, but should be logged also into a file, without messing with "tee" on each command input. Same for…

astropanic
- 297
- 2
- 5
- 18
2
votes
1 answer
How can I use scp without providing a password
I have asked a question before in here. My question was that I tried to give my password to scp via piping
echo mypassword | scp tim@xxx.xxx.xxx.xxx:project/* ~/project/
However it still asks me to manually input the password. How should I…

Tim
- 1,467
- 3
- 25
- 38
2
votes
0 answers
nginx differences between stream module and http module
I'm try to understand nginx http and stream module, so far I learn that http module is for L7 operations and stream module is for L4 operations? Is that all or is much more here?
With Regards
Boris

Boris
- 31
- 4
1
vote
1 answer
Interacting with a program running as part of a systemd service
I've got a systemd service set up with the following configuration (in /etc/systemd/system/my-service.service):
[Unit]
Description=My…

Sean
- 145
- 5
1
vote
1 answer
How to send a continuous stream through ssh
Given a named pipe, how can I send a continuous stream of this pipe through ssh?
The netcat equivalent of what I am looking for is
from client
dd if=myfifo | nc -l 12345
from server
nc 12345 > stream

user123456
- 513
- 1
- 6
- 18
1
vote
0 answers
Dump a tcp stream (tcpdump/tpick?) and save to file only if RST happen
I'm looking for a way to capture a whole tcp stream, but save it into the file only if
1) error happens (like RST)
2) not sure if possible - analyze the http response, store if HTTP 500 happen is a stream.
The network flow is high, so I'd like to…

sirkubax
- 121
- 1
- 7
1
vote
0 answers
nginx proxy cache mp4 streaming
Sorry for my question,
the schema like this:
there are upstream which is a IIS server where locates video files.
my nginx is an proxy caching server, I need to cache mp4 file when client starts playing it in his browser and send/stream it to…

David Ambarsumov
- 19
- 2
- 5