1.4-rolling-202210020218 (sagitta) cannot set nat masquerading commit errors

Hi when i try to create my first nat i’m having issues

vyos@vyos# set nat source rule 100 outbound-interface 'eth0'
[edit]
vyos@vyos# set nat source rule 100 source address '192.168.3.0/24'
[edit]
vyos@vyos# set nat source rule 100 translation address 'masquerade'
[edit]
vyos@vyos# commit

Configuration file errors encountered!

[[nat]] failed
Commit failed
[edit]
vyos@vyos#

cfg-stdout.log

recursive_copy_dir failed due to boost::filesystem::copy_file: Invalid cross-device link: "/opt/vyatta/config/tmp/new_config_6253/system/syslog/global/facility/all/level/node.val", "/opt/vyatta/config/tmp/tmp_6253/active/system/syslog/global/facility/all/level/node.val" in copy_file. Falling back to internal stream_file
recursive_copy_dir failed due to boost::filesystem::copy_file: Invalid cross-device link: "/opt/vyatta/config/tmp/new_config_6253/system/login/user/vyos/authentication/encrypted-password/node.val", "/opt/vyatta/config/tmp/tmp_6253/active/system/login/user/vyos/authentication/encrypted-password/node.val" in copy_file. Falling back to internal stream_file
recursive_copy_dir failed due to boost::filesystem::copy_file: Invalid cross-device link: "/opt/vyatta/config/tmp/new_config_6253/system/host-name/node.val", "/opt/vyatta/config/tmp/tmp_6253/active/system/host-name/node.val" in copy_file. Falling back to internal stream_file
recursive_copy_dir failed due to boost::filesystem::copy_file: Invalid cross-device link: "/opt/vyatta/config/tmp/new_config_6253/system/console/device/ttyS0/speed/node.val", "/opt/vyatta/config/tmp/tmp_6253/active/system/console/device/ttyS0/speed/node.val" in copy_file. Falling back to internal stream_file
recursive_copy_dir failed due to boost::filesystem::copy_file: Invalid cross-device link: "/opt/vyatta/config/tmp/new_config_6253/system/config-management/commit-revisions/node.val", "/opt/vyatta/config/tmp/tmp_6253/active/system/config-management/commit-revisions/node.val" in copy_file. Falling back to internal stream_file
rm[/opt/vyatta/config/tmp/tmp_6253/active/nat]
no ap[/opt/vyatta/config/active/nat]
recursive_copy_dir failed due to boost::filesystem::copy_file: Invalid cross-device link: "/opt/vyatta/config/tmp/tmp_6253/work/nat/source/rule/100/outbound-interface/node.val", "/opt/vyatta/config/tmp/new_config_6253/nat/source/rule/100/outbound-interface/node.val" in copy_file. Falling back to internal stream_file
recursive_copy_dir failed due to boost::filesystem::copy_file: Invalid cross-device link: "/opt/vyatta/config/tmp/tmp_6253/work/nat/source/rule/100/source/address/node.val", "/opt/vyatta/config/tmp/new_config_6253/nat/source/rule/100/source/address/node.val" in copy_file. Falling back to internal stream_file
recursive_copy_dir failed due to boost::filesystem::copy_file: Invalid cross-device link: "/opt/vyatta/config/tmp/tmp_6253/work/nat/source/rule/100/translation/address/node.val", "/opt/vyatta/config/tmp/new_config_6253/nat/source/rule/100/translation/address/node.val" in copy_file. Falling back to internal stream_file

config

vyos@vyos# show
 interfaces {
     ethernet eth0 {
         address 192.168.1.6/24
         hw-id 52:54:00:44:e7:9e
     }
     ethernet eth1 {
         address 192.168.3.3/24
         address 192.168.3.254/24
         hw-id 52:54:00:b1:11:d3
     }
     loopback lo {
     }
 }
+nat {
+    source {
+        rule 100 {
+            outbound-interface eth0
+            source {
+                address 192.168.3.0/24
+            }
+            translation {
+                address masquerade
+            }
+        }
+    }
+}
 protocols {
     static {
         route 0.0.0.0/0 {
             next-hop 192.168.1.1 {
             }
         }
     }
 }

Can you change anything else? For example interface description or hostname?

yes interface description i can set

I get the same error also for destination NAT.
Both works on the previous build vyos-1.4-rolling-202210031351-amd64.iso

I tried on VyOS 1.4-rolling-202210050218. Everything works. Please update.

Thanks for quick response! Works with latest build VyOS 1.4-rolling-202210050218.

vyos@vyos# compare 0 1
+nat {
+    destination {
+        rule 10 {
+            destination {
+                address 1.2.3.4
+            }
+            inbound-interface eth0
+            source {
+                address 192.168.12.1
+            }
+            translation {
+                address 5.6.7.8
+            }
+        }
+    }
+}
[edit]
vyos@vyos# run show nat destination sta

rule      pkts        bytes   interface
----      ----        -----   ---------

10           1           84   eth0

[edit]
vyos@vyos# run show nat destination tr
Pre-NAT    Post-NAT    Proto    Timeout    Mark    Zone
---------  ----------  -------  ---------  ------  ------
1.2.3.4    5.6.7.8     icmp     20         0

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.