Page MenuHomeVyOS Platform

NAT error adding translation address range
Open, Requires assessmentPublicBUG

Description

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'
[edit]
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/nat.py", line 282, in <module>
  verify(c)
File "/usr/libexec/vyos/conf_mode/nat.py", line 241, in verify
  if addr != 'masquerade' and not is_addr_assigned(addr):
File "/usr/lib/python3/dist-packages/vyos/validate.py", line 146, in is_addr_assigned
  tmp = is_intf_addr_assigned(intf, addr)
File "/usr/lib/python3/dist-packages/vyos/validate.py", line 92, in is_intf_addr_assigned
  return _is_intf_addr_assigned(intf, addr)
File "/usr/lib/python3/dist-packages/vyos/validate.py", line 122, in _is_intf_addr_assigned
  if not _are_same_ip(address, ip_addr):
File "/usr/lib/python3/dist-packages/vyos/validate.py", 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

Details

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

Event Timeline

bamu created this task.Wed, Sep 16, 6:18 PM
pasik added a subscriber: pasik.Wed, Sep 16, 6:51 PM