linux-router
linux-router copied to clipboard
ERROR: Failed backing up interface ipv6 bits
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
Looks like your system doesn't support ipv6. What system and version are you using? Maybe you can try commenting out ipv6 related lines
IPv6 is disabled on this Fedora 41.
Can nothing be done about that error?
try commenting out ipv6 related lines in script
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
}