Hello,
I tried to install Proxmox 6.4 on the new server.
We created settings for the local IP to be after NAT (see spoiler settings of Host (Proxmox)).
I want for a new VM with windows installed to allow access to RDP from external IP using the command on the Host (Proxmox)
After
Normally VM 10.10.10.2 should allow access to RDP, but this does not happen.
it doesn't show anything.
Question: Why is there no access to RDP and the port is not open after creating the command:
Reboot to the server did not help, restart the network everything.
I tried to install Proxmox 6.4 on the new server.
We created settings for the local IP to be after NAT (see spoiler settings of Host (Proxmox)).
Code:
auto vmbr0
iface vmbr0 inet static
address 152.xx.xxx.104/24
gateway 152.xx.xxx.254
bridge-ports eno1
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
I want for a new VM with windows installed to allow access to RDP from external IP using the command on the Host (Proxmox)
iptables -A PREROUTING -d 152.xx.xxx.104/32 -i vmbr0 -p tcp -m tcp --dport 3389 -j DNAT --to-destination 10.10.10.2:3389
After
iptables-save
Code:
root@px ~# iptables -S -t nat
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-A PREROUTING -d 152.xx.xxx.104/32 -i vmbr0 -p tcp -m tcp --dport 3389 -j DNAT --to-destination 10.10.10.2:3389
-A POSTROUTING -s 10.10.10.0/24 -o vmbr0 -j MASQUERADE
-A POSTROUTING -s 10.10.10.0/24 -o vmbr0 -j MASQUERADE
Normally VM 10.10.10.2 should allow access to RDP, but this does not happen.
netstat -lnp | grep 3389
it doesn't show anything.
Question: Why is there no access to RDP and the port is not open after creating the command:
-A INPUT -p tcp -m state --state NEW -m tcp --dport 3389 -j ACCEPT
Reboot to the server did not help, restart the network everything.