关于docker外网无法访问问题


Recommended Posts

各位大神好,我用一台j3455搭建软路由

主路由-爱快

旁路由--lede

使用unraid自带docker安装jellyfin端口8096

使用爱快进行8096端口映射,都无法访问到8096端口,换了docker所有网络连接方式,都不行

这个问题困惑我好几天,希望大神们有什么解决方式,谢谢了。

Link to comment

以下建议建立在你内网可以用 8096 端口访问 Jellyfin 的基础上。

1、检查一下 Jellyfin 的网络使用的是哪一种模式,如果是 host 模式,爱快上映射时应当设置为 Unraid 的内网地址;若是 bridge 模式,则与 Unraid 的内网地址不同,可以自行查看爱快的路由表。

2、检查你的防火墙设置,注意 ipv4 和 ipv6 的防火墙一般是分开的。

  • Like 1
Link to comment
1 hour ago, JavyLiu said:

以下建议建立在你内网可以用 8096 端口访问 Jellyfin 的基础上。

1、检查一下 Jellyfin 的网络使用的是哪一种模式,如果是 host 模式,爱快上映射时应当设置为 Unraid 的内网地址;若是 bridge 模式,则与 Unraid 的内网地址不同,可以自行查看爱快的路由表。

2、检查你的防火墙设置,注意 ipv4 和 ipv6 的防火墙一般是分开的。

1,host模式,映射unraid内网地址,内网可以,外网不行

2. bridge模式,映射内网ip,内网可以访问,外网不行

现在使用的是host模式 防火墙配置

如下

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
LIBVIRT_INP  all  --  anywhere             anywhere            

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
DOCKER-USER  all  --  anywhere             anywhere            
DOCKER-ISOLATION-STAGE-1  all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
DOCKER     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
LIBVIRT_FWX  all  --  anywhere             anywhere            
LIBVIRT_FWI  all  --  anywhere             anywhere            
LIBVIRT_FWO  all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
LIBVIRT_OUT  all  --  anywhere             anywhere            

Chain DOCKER (1 references)
target     prot opt source               destination         

Chain DOCKER-ISOLATION-STAGE-1 (1 references)
target     prot opt source               destination         
DOCKER-ISOLATION-STAGE-2  all  --  anywhere             anywhere            
RETURN     all  --  anywhere             anywhere            

Chain DOCKER-ISOLATION-STAGE-2 (1 references)
target     prot opt source               destination         
DROP       all  --  anywhere             anywhere            
RETURN     all  --  anywhere             anywhere            

Chain DOCKER-USER (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain LIBVIRT_FWI (1 references)
target     prot opt source               destination         

Chain LIBVIRT_FWO (1 references)
target     prot opt source               destination         

Chain LIBVIRT_FWX (1 references)
target     prot opt source               destination         

Chain LIBVIRT_INP (1 references)
target     prot opt source               destination         

Chain LIBVIRT_OUT (1 references)
target     prot opt source               destination    

 

我也不知道怎么配置,还请大佬帮忙看下

 

Link to comment
  • 1 month later...
  • 9 months later...
  • 5 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.