I have a problem that I really cannot solve. Hope somebody can help me.
I have installed Vyos on a virtual machine VMWare for windows and I have to configure it so that NAT port 80 in WAN side addresses to port 80 LAN side and access to apache from WAN.
Following the manual, I have used the following instructions:
configure
set interfaces ethernet eth0 address dhcp
set interfaces ethernet eth1 address 192.168.1.1/24
set nat destination rule 10 description ‘Port Forwarding HTTP’
set nat destination rule 10 destination port 80
set nat destination rule 10 inbound-interface ‘eth0’
set nat destination rule 10 translation address ‘192.168.1.2’ #Sostituisci con l’indirizzo IP del server Apache
set nat destination rule 10 translation port 80
It works until line 4). At line 5) it says that eth0 is not valid. If I digit the command “show interfaces” it shows that eth0 exists!
Perhaps you can try to configure it again and this time copy the terminal output of your session and paste it in as a code block. This way we can see what you are seeing
vyos@vyos# set nat destination rule 999 inbound-interface
Possible completions:
group Match interface-group
name Match interface
[edit]
vyos@vyos# set nat destination rule 999 inbound-interface name
Possible completions:
<text> Interface name
txt* Interface name with wildcard
!<text> Inverted interface name to match
eth0
eth0.1000
eth0.1001
eth0.200
lo
wg0
[edit]
vyos@vyos# set nat destination rule 999 inbound-interface name eth0
[edit]