10.10.10.50is Target VM will to SSH- We will expose this to
localhost:32
- Make upstream conf :
nano /etc/nginx/conf.d/stream.conf.ssh
If you want to login with your key, but you see an error permission windows 11 "SSH key are too open" do this :
puttygen to OpenSSH Key formatWindows PowerShell then :$path = ".\path\to\your\key.pem"
icacls.exe $path /reset
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
icacls.exe $path /inheritance:r
If you want to locally access a cloud application that has the address 192.168.100.2:82 and can only be reached by your VM, you can use the technique below. That way you can access your local localhost:80.
ssh -L LocalPortAccess:AppsIPAddresses:AppsPortAddresses user@VPSPublicIP -pXXXX
ssh -L 80:127.0.0.1:30001 student@lab4.btech.id -p10013
If you want to access your local application with the application address 127.0.0.1:30001 then you can access it on your VPS on port 80 you can use the technique below:
Provisioning with DevStack can be seen Here
nano local.conf
If you want to block port node exporter access from outside you can use this command
iptables -A INPUT -p tcp -s 10.7.0.0/24 --dport 9100 -j ACCEPT
iptables -A INPUT -p tcp -s localhost --dport 9100 -j ACCEPT
iptables -A INPUT -p tcp --dport 9100 -j DROP
10.7.0.0/24 & localhost are IP ALLOWED to access port 9100Expose to world your Apps on K8s On-Premises with Nginx Ingress + Metallb + OpenVPN
192.168.17.50 are Nginx Ingress External IP Generated by MetalLB.res.bignetlab.com are Domain for this case.default.conf are Nginx on Host (not on K8s stack).This tutorial are suitable for you if you want to reverse multi endpoint with one domain different port.
localhost:8443 to access localhost:9200localhost:8442 to access localhost:5601nano /etc/nginx/sites-enabled/default