I’ve setup VyOS on my Hyper-V home lab, but I’m having problems in configuring it for routing from the external interface.
I have the following equipment/networks:
- Router - 192.168.1.1
- Hyper-V - DHCP on 192.168.1.0 network
- Management PC - DHCP on 192.168.1.0 network
On Hyper-V I have two networks, one external and one internal and the VyOS VM uses the External on eth0 and Internal on eth1.
Right now, from any VM running on the internal network, I can ping any external IP and have internet access, so that part of the NAT is working correctly.
What I want now is from my management PC to be able to RDP to the VM’s running on the internal network. I’ve added a static route from the management PC to the External IP of VyOS, but it fails.
What configuration do I need to make on the VyOS router?
For your understanding, below are my configuration steps:
This will list 3 interfaces. Then we configure them as follows:
set interfaces ethernet eth0 address dhcp
set interfaces ethernet eth0 description “External”
set interfaces ethernet eth1 address 192.168.10.1/24
set interfaces ethernet eth1 description “Internal”
set system host-name Router
set system domain-name internal.lab
set service dns forwarding dhcp eth0
set service dns forwarding listen-on eth1
set service webproxy listen-address 192.168.10.1
set service webproxy listen-address 192.168.10.1 disable-transparent
set nat source rule 10 source address 192.168.10.0/24
set nat source rule 10 outbound-interface eth0
set nat source rule 10 translation address masquerade[/code]
What should I add, so that from my management PC I can RDP to my VM’s on the 192.168.10.0 network?