by johnmark | May 28, 2021 | linux
Our goal here is to manipulate and play an iptables redirection for SSH connection. user SSH to a container “wp1” –> Server 1 catches the connection —> Server 1 redirects the SSH traffic to Server 2 —> Server redirects SSH traffic to...
by johnmark | May 1, 2021 | linux
Our goal is to create a server (Load Balancer) and its IP (just hosts file for localhost testing) is linked to the domains wp1.causingdesigns.net and wp2.causingdesigns.net then it will pass the traffic to LXD server using a reverse proxy then LXD server will forward...
by johnmark | Apr 26, 2021 | linux
This is an example of nginx reverse proxy that connects to an LXD server then connects to an LXC container. Server 1 (LB IP address 192.168.50.27) nginx configuration and mytest.com is the localhost Server 2 (LXD IP address 192.168.50.75) Setting up iptables to...
by johnmark | Apr 26, 2021 | linux
Port forwarding from localhost/loopback iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-ports 8080 iptables -t nat -I OUTPUT -p tcp -o lo –dport 80 -j REDIRECT –to-ports 8080 Screenshot below shows that the web server from...
by johnmark | Apr 11, 2021 | linux
This is how to limit the maximum number of processes for a a specific user or groups in linux. Scripts to perform this testing. loop.sh #! /bin/bash x=1 while [ $x -le $1 ] do echo “Running timer.sh $x times”; /home/ubuntu/private/timer.sh $1&...