binhex / arch-qbittorrentvpn

Docker build script for Arch Linux base with qBittorrent, Privoxy and OpenVPN
GNU General Public License v3.0
443 stars 47 forks source link

Module iptable_mangle not found in directory /lib/modules/5.16.0-0.bpo.4-amd64 #169

Closed XenoBIT78 closed 1 year ago

XenoBIT78 commented 1 year ago

2023-03-05 14:04:05,193 DEBG 'start-script' stderr output: modprobe: FATAL: Module iptable_mangle not found in directory /lib/modules/5.16.0-0.bpo.4-amd64

XenoBIT78 commented 1 year ago

nvm.. found solution i log after a restart :)

josecrosa commented 1 year ago

Could you explain the solution more. I think I'm running into the same issue.

XenoBIT78 commented 1 year ago

look in the log.. solution is writen in the logfile..

josecrosa commented 1 year ago

This log?

qbittorrentvpn-qbittorrent-1 | 2023-03-29 16:56:13,221 DEBG 'start-script' stdout output: qbittorrentvpn-qbittorrent-1 | [info] Attempting to load iptable_mangle module... qbittorrentvpn-qbittorrent-1 | qbittorrentvpn-qbittorrent-1 | 2023-03-29 16:56:13,224 DEBG 'start-script' stderr output: qbittorrentvpn-qbittorrent-1 | modprobe: FATAL: Module iptable_mangle not found in directory /lib/modules/5.15.49-linuxkit qbittorrentvpn-qbittorrent-1 | qbittorrentvpn-qbittorrent-1 | 2023-03-29 16:56:13,226 DEBG 'start-script' stdout output: qbittorrentvpn-qbittorrent-1 | [warn] Unable to load iptable_mangle module using modprobe, trying insmod... qbittorrentvpn-qbittorrent-1 | qbittorrentvpn-qbittorrent-1 | 2023-03-29 16:56:13,231 DEBG 'start-script' stderr output: qbittorrentvpn-qbittorrent-1 | insmod: ERROR: could not load module /lib/modules/iptable_mangle.ko: No such file or directory qbittorrentvpn-qbittorrent-1 | qbittorrentvpn-qbittorrent-1 | 2023-03-29 16:56:13,233 DEBG 'start-script' stdout output: qbittorrentvpn-qbittorrent-1 | [warn] Unable to load iptable_mangle module, you will not be able to connect to the applications Web UI or Privoxy outside of your LAN qbittorrentvpn-qbittorrent-1 | [info] unRAID/Ubuntu users: Please attempt to load the module by executing the following on your host: '/sbin/modprobe iptable_mangle' qbittorrentvpn-qbittorrent-1 | [info] Synology users: Please attempt to load the module by executing the following on your host: 'insmod /lib/modules/iptable_mangle.ko' qbittorrentvpn-qbittorrent-1 |

Neither command works.

qbittorrentvpn % /sbin/modprobe iptable_mangle zsh: no such file or directory: /sbin/modprobe qbittorrentvpn % insmod /lib/modules/iptable_mangle.ko zsh: command not found: insmod qbittorrentvpn %

look in the log.. solution is writen in the logfile..

XenoBIT78 commented 1 year ago

What OS are you running on host ??

you need to do it on the host.. not in the container!! and you need either root or sudo.. sbin commands always needs root/sudo to execute.

Log states Please attempt to load the module by executing the following on your host: '/sbin/modprobe iptable_mangle' but that is not persistent.. it disappears on reboot.. so you need to add iptable_mangle to /etc/modules file so it gets loaded everytime..
sudo nano /etc/modules file and put iptable_mangle on a new line. save and reboot :)

josecrosa commented 1 year ago

What OS are you running on host ??

you need to do it on the host.. not in the container!! and you need either root or sudo.. sbin commands always needs root/sudo to execute.

Log states Please attempt to load the module by executing the following on your host: '/sbin/modprobe iptable_mangle' but that is not persistent.. it disappears on reboot.. so you need to add iptable_mangle to /etc/modules file so it gets loaded everytime.. sudo nano /etc/modules file and put iptable_mangle on a new line. save and reboot :)

I'm on macOS Monterrey, the latest my 2016 MBP supports while running headless in a basement :). But yes, I've tried those commands on the host which is what I posted. I did also run it on the container just for fun, same thing. I've observed this on other arch images like delugevpn.

As for your suggestion to add it to the file: mbp-home-server file_server % ls /etc/modules
ls: /etc/modules: No such file or directory mbp-home-server file_server % cat /etc/modules cat: /etc/modules: No such file or directory mbp-home-server file_server %

XenoBIT78 commented 1 year ago

thats for linux.. i know jack about MacOS...

josecrosa commented 1 year ago

What's weird is this was definitely working last month.

XenoBIT78 commented 1 year ago

but there must be some way to load kernel modules on MacOS too...

"lsmod is not available on Mac OS X, but other commands exist that offer similar functionality." They list kextutil, kextstat, kextload, kmodunload

but you need to search for a solution.. can't really help there :)

josecrosa commented 1 year ago

Alright, I'll have to think of something. Thank you so much for being responsive, helping troubleshooting, and not being this guy

josecrosa commented 1 year ago

For future historians: I got https://github.com/MarkusMcNugen/docker-qBittorrentvpn image to work so... shrug.