Hello, friends.
I have been struggling with this problem for about 3 days now.
Have started using Proxmox as my HomeLab for study experiments about a week ago. It doesnt have any private/secure stuff on it, so i will share all the details below.
I have a public static ip 95.154.71.237.
I also have FQDNs devcraft.app and pve.devcraft.app with DNS A records set to 95.154.71.237.
My PVE runs at local IP 192.168.1.38 via WiFi. It also has vmbridge ip set to 10.0.0.1 for VMs and CTs to be accessible via internet. So my vms, cts, have ips starting with 10.0.0.2.
PVE dashboard is accessible with 192.168.1.38:8006, 10.0.0.1:8006, 95.154.71.237:8006 and just 95.154.71.237.
PVE, VMs and CTs - all have internet access, can ping anything from them and they can be pinged themselves, can be updated, etc.
One CT has public Plex running on it without any issues on 95.154.71.237:32400.
You can also access my VMs Apache webserver with http://95.154.71.237:8080/
So my biggest problem is that im unable to set domain name pve.devcraft.app for Proxmox host and connect to it using this domain instead of 95.154.71.237:8006
Here is my /etc/hosts:
I have commented out LAN IP which was given to PVE right after installation, as its impossible to install Proxmox via WiFi.
PVE hostname is pve
/etc/nftables.conf:
/etc/network/interfaces (set for NAT):
I have tried to install Nginx on PVE host and set the following config:
But it doesnt work. Trying to connect with pve.devcraft.app gives ERR_CONNECTION_FAILED error.
BTW when i try to SSH using ip 95.154.71.237 or pve.devcraft.app domain it works without any problems.
Thanks for your time.
I have been struggling with this problem for about 3 days now.
Have started using Proxmox as my HomeLab for study experiments about a week ago. It doesnt have any private/secure stuff on it, so i will share all the details below.
I have a public static ip 95.154.71.237.
I also have FQDNs devcraft.app and pve.devcraft.app with DNS A records set to 95.154.71.237.
My PVE runs at local IP 192.168.1.38 via WiFi. It also has vmbridge ip set to 10.0.0.1 for VMs and CTs to be accessible via internet. So my vms, cts, have ips starting with 10.0.0.2.
PVE dashboard is accessible with 192.168.1.38:8006, 10.0.0.1:8006, 95.154.71.237:8006 and just 95.154.71.237.
PVE, VMs and CTs - all have internet access, can ping anything from them and they can be pinged themselves, can be updated, etc.
One CT has public Plex running on it without any issues on 95.154.71.237:32400.
You can also access my VMs Apache webserver with http://95.154.71.237:8080/
So my biggest problem is that im unable to set domain name pve.devcraft.app for Proxmox host and connect to it using this domain instead of 95.154.71.237:8006
Here is my /etc/hosts:
Code:
127.0.0.1 localhost.localdomain localhost
# 192.168.1.107 pve.devcraft.app pve
192.168.1.38 pve.devcraft.app pve
95.154.71.237 pve.devcraft.app pve
I have commented out LAN IP which was given to PVE right after installation, as its impossible to install Proxmox via WiFi.
PVE hostname is pve
/etc/nftables.conf:
Code:
#!/usr/sbin/nft -f flush ruleset table ip nat { chain postrouting { type nat hook postrouting priority 0; policy accept; masquerade } }
/etc/network/interfaces (set for NAT):
Code:
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
address 10.0.0.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
# Plex CT forwarding
post-up iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 32400 -j DNAT --to 10.0.0.2:32400
# VM SSH forwarding
post-up iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 2223 -j DNAT --to 10.0.0.5:22
# VM 80 forwarding
post-up iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 8080 -j DNAT --to 10.0.0.5:80
I have tried to install Nginx on PVE host and set the following config:
Code:
server {
listen 80;
server_name pve.devcraft.app;
location / {
proxy_pass https://10.0.0.1:8006$request_uri;
}
}
But it doesnt work. Trying to connect with pve.devcraft.app gives ERR_CONNECTION_FAILED error.
BTW when i try to SSH using ip 95.154.71.237 or pve.devcraft.app domain it works without any problems.
Thanks for your time.
Last edited: