Page MenuHomeVyOS Platform

Destination NAT translation port without address fails to commit
Closed, ResolvedPublicBUG

Description

Upgraded to latest 1.3 rolling with the rewritten NAT from a image before the rewrite, NAT section failed to apply on boot:

vyos@vyos:~$ configure
[edit]
vyos@vyos# load
Loading configuration from 'config.boot'
Load complete. Use 'commit' to make changes effective.
[edit]
vyos@vyos# commit
[ nat ]
Destination NAT configuration error in rule "22": translation address not specified

[[nat]] failed 
Commit failed  
[edit]
vyos@vyos# show nat destination
+rule 22 {
+    description "SSH from outside"
+    destination {
+        port 23456
+    }
+    disable
+    inbound-interface eth0
+    log
+    protocol tcp
+    translation {
+        port 22
+    }
[edit]

This used to just change the port number and leave the address unchanged.

Details

Difficulty level
Easy (less than an hour)
Version
1.3-rolling-202007170117
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

jjakob triaged this task as High priority.Jul 17 2020, 1:42 PM
jjakob created this task.
jjakob created this object in space S1 VyOS Public.
jjakob changed the subtype of this task from "Task" to "Bug".
jjakob changed the task status from Open to In progress.Jul 19 2020, 7:37 PM
jjakob claimed this task.
jjakob moved this task from Need Triage to In Progress on the VyOS 1.3 Equuleus board.
jjakob moved this task from In Progress to Finished on the VyOS 1.3 Equuleus board.
jjakob changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
jjakob changed Why the issue appeared? from Will be filled on close to Implementation mistake.