[GH-ISSUE #275] [BUG] IPv6 Error #70

Closed
opened 2026-03-03 13:58:54 +03:00 by kerem · 2 comments
Owner

Originally created by @stacksjb on GitHub (May 1, 2023).
Original GitHub issue: https://github.com/konstruktoid/hardening/issues/275

Originally assigned to: @konstruktoid on GitHub.

Describe the bug
Error "Valid Prefix" if you have IPv6 Enabled

To Reproduce
Run script on a system with IPv6 enabled, and you get an error such as:
Error: any valid prefix is expected rather than "fe80::f018:98ff:fe99:4264%21886".
fe80 is link local (see https://blogs.infoblox.com/ipv6-coe/fe80-1-is-a-perfectly-valid-ipv6-default-gateway-address/)

Expected behavior
I expect this is normal and no error should be thrown

System (lsb_release -a):

ubuntu@primary:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

Originally created by @stacksjb on GitHub (May 1, 2023). Original GitHub issue: https://github.com/konstruktoid/hardening/issues/275 Originally assigned to: @konstruktoid on GitHub. **Describe the bug** Error "Valid Prefix" if you have IPv6 Enabled **To Reproduce** Run script on a system with IPv6 enabled, and you get an error such as: Error: any valid prefix is expected rather than "fe80::f018:98ff:fe99:4264%21886". fe80 is link local (see https://blogs.infoblox.com/ipv6-coe/fe80-1-is-a-perfectly-valid-ipv6-default-gateway-address/) **Expected behavior** I expect this is normal and no error should be thrown **System (lsb_release -a):** ubuntu@primary:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy
kerem closed this issue 2026-03-03 13:58:54 +03:00
Author
Owner

@konstruktoid commented on GitHub (May 1, 2023):

Hi @stacksjb, I'll have a look as soon as possible.

<!-- gh-comment-id:1530267998 --> @konstruktoid commented on GitHub (May 1, 2023): Hi @stacksjb, I'll have a look as soon as possible.
Author
Owner

@konstruktoid commented on GitHub (May 2, 2023):

When are you recieving the error? Can you paste the logs.
I can't reproduce.

ubuntu-s-1vcpu-2gb-intel-fra1-01:~/hardening# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 16:8f:90:5d:a6:05 brd ff:ff:ff:ff:ff:ff
    altname enp0s3
    altname ens3
    inet 46.101.115.6/20 brd 46.101.127.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet 10.19.0.5/16 brd 10.19.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::148f:90ff:fe5d:a605/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether d2:a2:a5:fb:d0:6d brd ff:ff:ff:ff:ff:ff
    altname enp0s4
    altname ens4
    inet 10.114.0.2/20 brd 10.114.15.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::d0a2:a5ff:fefb:d06d/64 scope link
<!-- gh-comment-id:1532165531 --> @konstruktoid commented on GitHub (May 2, 2023): When are you recieving the error? Can you paste the logs. I can't reproduce. ```sh ubuntu-s-1vcpu-2gb-intel-fra1-01:~/hardening# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 16:8f:90:5d:a6:05 brd ff:ff:ff:ff:ff:ff altname enp0s3 altname ens3 inet 46.101.115.6/20 brd 46.101.127.255 scope global eth0 valid_lft forever preferred_lft forever inet 10.19.0.5/16 brd 10.19.255.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::148f:90ff:fe5d:a605/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether d2:a2:a5:fb:d0:6d brd ff:ff:ff:ff:ff:ff altname enp0s4 altname ens4 inet 10.114.0.2/20 brd 10.114.15.255 scope global eth1 valid_lft forever preferred_lft forever inet6 fe80::d0a2:a5ff:fefb:d06d/64 scope link ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hardening#70
No description provided.