Reproducing steps:
set nat source rule 10 outbound-interface eth1 set nat source rule 10 translation address 192.168.255.125 set nat source rule 10 source address 100.64.0.0./24
Output on commit
[email protected]# commit [ nat ] VyOS had an issue completing a command. We are sorry that you encountered a problem while using VyOS. There are a few things you can do to help us (and yourself): - Make sure you are running the latest version of the code available at https://downloads.vyos.io/rolling/current/amd64/vyos-rolling-latest.iso - Consult the forum to see how to handle this issue https://forum.vyos.io - Join our community on slack where our users exchange help and advice https://vyos.slack.com When reporting problems, please include as much information as possible: - do not obfuscate any data (feel free to contact us privately if your business policy requires it) - and include all the information presented below Report Time: 2020-11-06 07:15:25 Image Version: VyOS 1.3-rolling-202011060217 Release Train: equuleus Built by: [email protected] Built on: Fri 06 Nov 2020 02:17 UTC Build UUID: 4ccaf17b-c3b8-47af-84f1-0e94869e692c Build Commit ID: 7662f6fac19d23 Architecture: x86_64 Boot via: installed image System type: KVM guest Hardware vendor: QEMU Hardware model: Standard PC (i440FX + PIIX, 1996) Hardware S/N: Hardware UUID: 3fc6b6fe-8c8d-4bda-a4cd-be9465fea031 Traceback (most recent call last): File "/usr/libexec/vyos/conf_mode/nat.py", line 287, in <module> apply(c) File "/usr/libexec/vyos/conf_mode/nat.py", line 275, in apply cmd(f'{iptables_nat_config}') File "/usr/lib/python3/dist-packages/vyos/util.py", line 179, in cmd raise OSError(code, feedback) PermissionError: [Errno 1] failed to run command: /tmp/vyos-nat-rules.nft returned: exit code: 1 noteworthy: cmd '/tmp/vyos-nat-rules.nft' returned (out): returned (err): /tmp/vyos-nat-rules.nft:33:68-74: Error: syntax error, unexpected counter add rule ip nat POSTROUTING oifname "eth1" ip saddr 100.64.0.0./24 counter snat to 192.168.255.125 comment "SRC-NAT-10"