Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iptable_mangle module - docker for windows #389

Closed
chosejavez opened this issue Jan 10, 2024 · 6 comments
Closed

iptable_mangle module - docker for windows #389

chosejavez opened this issue Jan 10, 2024 · 6 comments

Comments

@chosejavez
Copy link

chosejavez commented Jan 10, 2024

Both attempts to load the iptable_mangle module fail. After that I can't load the Web UI since the VPN appears compromised.

2024-01-10 07:32:49,082 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf
[info] Attempting to load iptable_mangle module...
[warn] Unable to load iptable_mangle module using modprobe, trying insmod...
[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
[info] unRAID/Ubuntu users: Please attempt to load the module by executing the following on your host: '/sbin/modprobe iptable_mangle'
[info] Synology users: Please attempt to load the module by executing the following on your host: 'insmod /lib/modules/iptable_mangle.ko'
[debug] Show name servers defined for container

Attaching my logs.

supervisord.log

@vpaulson
Copy link

Did you ever find a solution for this? I just updated to the latest image and am getting this error now on Windows.

@gjdass
Copy link

gjdass commented Jan 26, 2024

On Debian, same error.

[info] Attempting to load iptable_mangle module...
2024-01-26 17:58:01,890 DEBG 'start-script' stderr output:
modprobe: FATAL: Module iptable_mangle not found in directory /lib/modules/5.10.0-27-amd64
2024-01-26 17:58:01,890 DEBG 'start-script' stdout output:
[warn] Unable to load iptable_mangle module using modprobe, trying insmod...
2024-01-26 17:58:01,892 DEBG 'start-script' stderr output:
insmod: ERROR: could not load module /lib/modules/iptable_mangle.ko: No such file or directory
2024-01-26 17:58:01,892 DEBG 'start-script' stdout output:
[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
[info] unRAID/Ubuntu users: Please attempt to load the module by executing the following on your host: '/sbin/modprobe iptable_mangle'
2024-01-26 17:58:01,892 DEBG 'start-script' stdout output:
[info] Synology users: Please attempt to load the module by executing the following on your host: 'insmod /lib/modules/iptable_mangle.ko'
2024-01-26 17:58:01,905 DEBG 'start-script' stdout output:
[info] Default route for container is 172.18.0.1
2024-01-26 17:58:02,095 DEBG 'start-script' stdout output:
[info] Docker network defined as    172.18.0.0/16
2024-01-26 17:58:02,099 DEBG 'start-script' stdout output:
[info] Adding 192.168.1.0/24 as route via docker eth0
2024-01-26 17:58:02,101 DEBG 'start-script' stdout output:
[info] ip route defined as follows...

@chosejavez
Copy link
Author

@vpaulson @gjdass I didn’t find a solution with my setup at the time. I was running Docker for Windows. Now I’m running Ubuntu VM and installed docker on it natively. No issued and it immediately worked. I spent more time trying to find a solution than setting this up.

@gjdass
Copy link

gjdass commented Jan 26, 2024

Ok, just found the solution.

I had the wrong IP. So by default, it was refusing my connections (all my network is under 192.168.2.0/24 and I input 192.168.1.0/24 ...).

It's fixed for me.

docker run -d \
[...]
-e LAN_NETWORK=<lan ipv4 network>/<cidr notation> \
[...]

@chosejavez
Copy link
Author

That’s interesting. I back up my docker composes files. I was positive the same yaml failed in windows but worked in Ubuntu. Glad you found your solution!

@vpaulson
Copy link

So not 100% sure what was wrong but I was using Docker with HyperV on windows 10. I switch to using WSL2 instead of HyperV and it works now lol

@binhex binhex closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants