Terraform: converting ordered lists to sets to avoid errors with for_each.Terraform: using json files as input variables and local variables.Terraform: using dynamic blocks to add multiple disks on a vsphere_virtual_machine.Terraform: post-configuration by calling remote-exec script with parameters.Terraform: creating a Kubernetes cluster on DigitalOcean with public NGINX ingress.Kubernetes: LetsEncrypt certificates using HTTP and DNS solvers on DigitalOcean.Python: converting JSON to dot notation for easier path determination.Bash: deleting a file with special characters using its inode value.Python: find the most recently modified file matching a pattern.Ansible: extracting a list or dictionary from a complex data structure.KVM: Deploying a nested version of VMware ESXi 7.0 on KVM.
KVM: Deploy the VMware vCenter 7.0 appliance using the CLI installer.Python: printing in color using ANSI color codes.
#Echo server netcat windows upgrade
Kubernetes: major version upgrade of Anthos GKE on-prem from 1.8 to 1.9.Python: flattening exported csv relational data with pandas.Kubernetes: minor version upgrade of Anthos GKE on-prem 1.9.Docker: Installing Docker CE on Ubuntu focal 20.04.Python: constructing a DataFrame from a relational database with pandas.If that is the case, simply bind the HTTP server above to port 443 and use HTTP over the traditional SSL port curl REFERENCESĪuthor Fabian Posted on SeptemApCategories DevOps, Linux Tags acl, browser, firewall, http, nc, netcat, test, ubuntu, web Post navigation What you are usually doing with this concept is making sure your ports are not being blocked at the network infrastructure level or guest OS firewalls.
Using this concept to create a secure TLS connection (HTTPS), is possible, but starts getting complex. You can either disable the firewall completely as a test or selectively enable the server port: # ufw allow 8080/tcpĪlso note that unless you are root, you may not be able to bind to ports less than 1024. If you cannot get a response, there is either an issue at the network infrastructure level or the firewall on the guest OS. You can now use either a web browser from the desktop or a console client like curl to make an HTTP request and the output should look like below: # curl hello world from myserver on Mon Sep 26 13:10: Extending that concept, here is the bash command to echo out a basic set of HTTP headers and body on port 8080: echo -e "HTTP/1.1 200 OK\r\n$(date)\r\n\r\nhello world from $(hostname) on $(date)" | nc -vl 8080 If you want to refer back to my post on the minimal TCP server using netcat, read here. You can use netcat as a simple web server to prove to yourself that the network infrastructure is allowing the traffic, the guest OS is not blocking the port with its own firewall, and the browser can receive the HTTP response.
#Echo server netcat windows full
When tasked with deploying a web application and it is not responsive to your browser requests, sometimes you need to take a step back from the complexity of your full stack and run a quick sanity check.