Page MenuHomeVyOS Platform

NAT error adding translation address range
Closed, ResolvedPublicBUG


The addresses work individually, will not apply when added in a range

user@vyos12# set nat source rule 10 translation address x.x.x.107-x.x.x.108'
user@vyos12# commit
[ nat ]
VyOS had an issue completing a command.

Image Version: VyOS 1.3-rolling-202009151811
Release Train: equuleus

Traceback (most recent call last):

File "/usr/libexec/vyos/conf_mode/", line 282, in <module>
File "/usr/libexec/vyos/conf_mode/", line 241, in verify
  if addr != 'masquerade' and not is_addr_assigned(addr):
File "/usr/lib/python3/dist-packages/vyos/", line 146, in is_addr_assigned
  tmp = is_intf_addr_assigned(intf, addr)
File "/usr/lib/python3/dist-packages/vyos/", line 92, in is_intf_addr_assigned
  return _is_intf_addr_assigned(intf, addr)
File "/usr/lib/python3/dist-packages/vyos/", line 122, in _is_intf_addr_assigned
  if not _are_same_ip(address, ip_addr):
File "/usr/lib/python3/dist-packages/vyos/", line 86, in _are_same_ip
  return socket.inet_pton(f_one, one) == socket.inet_pton(f_one, two)

OSError: illegal IP address string passed to inet_pton


Difficulty level
Unknown (require assessment)
VyOS 1.3-rolling-202009151811
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)