I’m going to be deploying a number of machines in the near future which will be behind routers. It won’t be feasible to set up dynamic DNS on each router and port forwarding, so is there a way I can configure these machines to initiate a TCP connection to my computer and then have my computer initiate a SSH connection to the remote computer over that connection?
I need to allow a user (different from root) to run a server listening on port 80.
There’s an example of iptables rules on archlinux wiki:
I have some question in closing port, I think I got some strange things.
I have a development server, which is only accessible from 127.0.0.1:8000, not 192.168.1.x:8000. As a quick hack, is there a way to set up something to listen on another port (say, 8001) so that from the local network I could connect 192.168.1.x:8001 and it would tunnel the traffic between the client and 127.0.0.1:8000?
I’d like to take a program P
that reads from stdin
& writes to stdout
, but connect it to nc
or whatever such that it reads from a certain port and outputs to another port.
This is more idle curiosity than anything else. A friend of mine asked me ‘which port range is it that only root can use under Linux?’ I told him 0-1024 were restricted. Then he asked my why it was so and… I was at a loss. No idea whatsoever.
I’m working on a software which connects to a Real Time data server (using TCP) and I have some connections dropping. My guess is that the clients do not read the data coming from the server fast enough. Therefore I would like to monitor my TCP sockets. For this I found the “ss” tool.
How do I reserve a list of ports for my custom applications?