linux-router icon indicating copy to clipboard operation
linux-router copied to clipboard

ERROR: Failed backing up interface ipv6 bits

Open dca00 opened this issue 11 months ago • 5 comments

How should I fix this error?

$ sudo ./lnxrouter.sh --ap wlan0 sharedwifi -p somepass
[sudo] password for user123:
WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt
linux-router 0.7.6 (https://github.com/garywill/linux-router)
Released under LGPL, with no warranty. Use on your own risk.

PID: 3812
Target interface is wlan0 (12:34:56:78:90:ab) 
PCI: 0000:01:00.0
System-already-loaded driver: rt2800pci
 Network controller [0280]: Ralink corp. RT5390 Wireless 802.11n 1T/1R PCIe [1814:5390]

Use random LAN IPv4 address 192.168.3.1
Channel not specified, use default
cp: cannot stat '/proc/sys/net/ipv6/conf/wlan0/disable_ipv6': No such file or directory
cp: cannot stat '/proc/sys/net/ipv6/conf/wlan0/accept_ra': No such file or directory
cp: cannot stat '/proc/sys/net/ipv6/conf/wlan0/use_tempaddr': No such file or directory
cp: cannot stat '/proc/sys/net/ipv6/conf/wlan0/addr_gen_mode': No such file or directory
Error occured

ERROR: Failed backing up interface ipv6 bits



Doing cleanup.. 
Undoing iptables changes ..
Exiting: This is the only running instance
Cleaning up done

dca00 avatar Jan 10 '25 17:01 dca00

Looks like your system doesn't support ipv6. What system and version are you using? Maybe you can try commenting out ipv6 related lines

garywill avatar Jan 11 '25 06:01 garywill

IPv6 is disabled on this Fedora 41.

dca00 avatar Jan 11 '25 12:01 dca00

Can nothing be done about that error?

dca00 avatar Jan 20 '25 17:01 dca00

try commenting out ipv6 related lines in script

garywill avatar Jan 21 '25 00:01 garywill

Very cool, thanks again!

backup_ipv6_bits() {
:
#    mkdir "$CONFDIR/sys_6_conf_iface" || die "Failed making dir to save interface IPv6 status"
#    cp  "/proc/sys/net/ipv6/conf/$SUBNET_IFACE/disable_ipv6" \
#        "/proc/sys/net/ipv6/conf/$SUBNET_IFACE/accept_ra"     \
#        "/proc/sys/net/ipv6/conf/$SUBNET_IFACE/use_tempaddr"  \
#        "/proc/sys/net/ipv6/conf/$SUBNET_IFACE/addr_gen_mode" \
#            "$CONFDIR/sys_6_conf_iface/" || die "Failed backing up interface ipv6 bits"
#
#    if [[ "$SHARE_METHOD" == 'redsocks' ]] ; then
#        cp "/proc/sys/net/ipv6/conf/$SUBNET_IFACE/forwarding" \
#            "$CONFDIR/sys_6_conf_iface/" || die "Failed backking up interface ipv6 bits"
#    fi
}

dca00 avatar Jan 24 '25 16:01 dca00