Questions tagged [ports]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

What is the best way to reverse port forward information from a Kubernetes cluster to localhost?

I am attempting to reverse port forward information from a Kubernetes pod 192.168.49.2:30085 to my locoalhost:8000 but I am having issues. The goal is to get the same response as curl 192.168.49.2:...
user avatar
0 votes
1 answer
46 views

Why does the Rancher Security Group use TCP Port 10256?

What does TCP 10256 do and where is to documented. According to the "Rancher AWS EC2 Security Grouplink" it's open. But I don't see any documentation on port 10256 elsewhere. It's also ...
user avatar
0 votes
0 answers
40 views

Access Docker webserver that is port mapped to host IP 127.0.0.1:6443 -> tcp6443

I have a web-server running inside a docker container at port 6443, which I can access it from the docker-host machine using https://localhost:6443; Note the webserver upon connection redirects to ...
user avatar
  • 1
0 votes
0 answers
43 views

What ports to hide for docker swarm?

I am setting up a docker swarm for production and while the documentation is great, I still struggle to figure out exactly what ports should be open/closed for different purposes. In my scenario, I am ...
user avatar
2 votes
1 answer
107 views

How to modify/allow firewall rules of a GCP instance directly from the CLI?

Is there anyway to allow the ports from CLI? I have an instance in GCP and I have installed a service which by default runs on Port:8080. I know there is an option to change the firewall rules to ...
user avatar
0 votes
2 answers
145 views

Docker: Let containers communicate to each other but don't expose to internet

I was recently shocked to find out that docker writes its own iptables rules and ignores ufw bindings completely. I had blocked all ports using the ufw deny incoming command and then selectively ...
user avatar
  • 1
0 votes
1 answer
2k views

how to connect to a MySQL database in a docker container?

starting up the default mysql server: root $ root $ docker run --name mysql -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password mysql/mysql-server:latest ...
user avatar
0 votes
2 answers
721 views

How do I make a redis container accessible through bridge networking from the host?

I'd like to be able to connect directly to the redis container below: root $ root $ docker images redis REPOSITORY TAG IMAGE ID CREATED SIZE redis ...
user avatar
0 votes
1 answer
45 views

What can I use to forward a conection to port 3006 on the bastion to an RDS database?

Forwarding a port 3006 database connection from a bastion server to a RDS database? Trying to find the answer online I came across the term Proxy jump but can't find anything on proxy jump for 3006 ...
user avatar
  • 463
1 vote
1 answer
284 views

Docker bridge network Configuration for containers

I have an Angular application deployed in the container . If I log in to the container I can curl to the port 4200. I have mapped to port 9001 to connect from my host . But I can't curl from my host ...
user avatar
  • 101
1 vote
1 answer
432 views

Running services on different ports in development environment and production environment

A bit of an odd question I think but here goes: I have a couple of services running in an application that I'm building. In production each service is containerised and lives on its own server. But on ...
user avatar
  • 147
1 vote
1 answer
100 views

How can I expose port 3389 using a secure approach

Within our legacy infrastructure we need to keep port 3389 exposed so that we can remote desktop into this server (note that we can't go back and utilize IaC to prevent this). We currently restrict ...
user avatar
0 votes
1 answer
255 views

Is there a way to map ports two docker container

Let's consider two docker conatiner named app and mysql. I am looking for a way, where I can map app and mysql ports, so that if I try to connect to mysql from web, using localhost:3306 it can connect....
user avatar
0 votes
2 answers
1k views

Docker not exposing port on mojave mac

I used brew to install docker, docker-machine and docker-compose. Everything is working, but when I use expose to map port on my host machine, it is not working. When I ssh in docker machine service ...
user avatar
1 vote
0 answers
421 views

running httpd and nginx in the same pod kubernetes [closed]

I am not able to run both apache (httpd) and nginx in the same pod. Indeed both containers are running on port 80. # kubectl logs -f multi-container -c apache (98)Address in use: AH00072: make_sock: ...
user avatar
25 votes
2 answers
12k views

Why use EXPOSE in Dockerfile -- since you can bind to all ports anyways

I can docker run -p 3000:3000 image without EXPOSEing that port in the container (see below). If that's true, then why bother putting EXPOSE in the Dockerfile? Is it just for communication to image ...
user avatar
0 votes
1 answer
239 views

Why won't InSpec admit that port 5432 is listening inside a PostgreSQL container?

Background I'm trying to test a PostgreSQL container with InSpec 2.1.10, but I cannot get a simple port check to return true, even though Docker, netstat, and psql all report that the port is ...
user avatar
  • 232
21 votes
4 answers
35k views

Ansible: Other option available for telnet check of open ports?

I'm new to Ansible. Here's my task ... I have 400+ hosts, and I need to verify if 5 different ports are open from their end to our web server. Individually, I could log in and run: telnet ...
user avatar
  • 321
5 votes
1 answer
109 views

When would I choose IPTables over an Ambassador pattern for port forwarding?

In an environment of Secured Virtual Private Clouds, in a Cluster of Docker Containers, we have to setup some routes. We can do that with the Ambassador pattern, which is simple and easy to maintain....
user avatar
  • 1,083
1 vote
1 answer
2k views

Why is ansible not sending the correct sudo password?

What does it mean when this: EXEC sshpass -d29 ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no\ -...
user avatar
  • 1,346
12 votes
1 answer
917 views

How to deterministic and reproducibly assign increasing port numbers in Ansible?

I am new to Ansible, but I have to maintain a set of playbooks, which correspond to services to be setup in a given environment. They need to be assigned a port, certificates, etc. This results in ...
user avatar
  • 221