Hi, I want to ask for a tutorial on how to access VMs through RDC which is configured from the NAT network.
I have successfully configured 1 ip for many VMs,
Like the configuration below:
However, I have not yet succeeded in accessing any VM that was created through RDC. so I was forced to use Anydesk to access all the VMs ..
Can you all help me so that vm can be accessed from RDC, for example:
ip: 192,227,165.xx: 3301 to 192,227,165.xx: 3324
I have successfully configured 1 ip for many VMs,
Like the configuration below:
# /etc/network/interfaces:
auto vmbr2
iface vmbr2 inet static
address 10.21.21.254
netmask 255.255.255.0
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.21.21.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.21.21.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2222 -j DNAT --to 10.21.21.5:22
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2222 -j DNAT --to 10.21.21.5:22
auto vmbr2
iface vmbr2 inet static
address 10.21.21.254
netmask 255.255.255.0
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.21.21.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.21.21.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2222 -j DNAT --to 10.21.21.5:22
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2222 -j DNAT --to 10.21.21.5:22
However, I have not yet succeeded in accessing any VM that was created through RDC. so I was forced to use Anydesk to access all the VMs ..
Can you all help me so that vm can be accessed from RDC, for example:
ip: 192,227,165.xx: 3301 to 192,227,165.xx: 3324