NethServer / nethsecurity

NethSecurity image and build environment
https://www.nethsecurity.org/
Other
82 stars 6 forks source link

IPSec tunnels: can't create tunnel with PPPoE WAN #540

Closed gsanchietti closed 1 month ago

gsanchietti commented 1 month ago

Steps to reproduce

Expected behavior

The UI should display the drawer and list all available IP addresses inside the "WAN IP address field".

Actual behavior

The UI fails on ns.ipsectunnel list-wans API call.

Error is:

# /usr/libexec/rpcd/ns.ipsectunnel call list-wans
Traceback (most recent call last):
  File "/usr/libexec/rpcd/ns.ipsectunnel", line 380, in <module>
    ret = {"wans": utils.get_all_wan_ips(EUci())}
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/nethsec/utils/__init__.py", line 506, in get_all_wan_ips
    ret.append({"device": f'{interface.replace("@","")} ({device})', "ipaddr": ip})
                             ^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

Components

Version: 8-23.05.3-ns.0.0.5-rc2

See also

https://partner.nethesis.it/t/nethsecurity-8-ed-errore-durante-creazione-tunnel-ipsec/8629


Thanks to Sandro Gregori

github-actions[bot] commented 1 month ago

Testing image version: 8-23.05.3-ns.0.0.5-rc2-81-gf04a739

gsanchietti commented 1 month ago

Verified.