请选择 进入手机版 | 继续访问电脑版

#楼主# 2022-1-11

跳转到指定楼层
软路由为主路由, openwrt系统, 安装了docker插件, 已经有公网IP,UPNP已经开启。现在的情况是 用macvlan 模式, NAT不稳定, 一会儿显示公网, 一会儿显示未知。
如果用host 模式, 直接就是端口限制型。
希望官方能出一个openwrt 做主路由的模式下, docker部署的方法。 求回复~

转播转播 分享淘帖
回复

使用道具

  • TA的每日心情
    难过
    2022-3-10 14:42
  • 4

    主题

    12

    帖子

    32

    积分

    幼儿园

    Rank: 1

    积分
    32
    狗蛋哥哥 发表于 2022-1-12 15:13:28
    光猫桥接,op 主路由拨号, 安装docker 插件, 用docker 启动容器魔方, host 模式, upnp 确定开启, 为啥显示端口限制型?
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2021-8-30 13:14
  • 10

    主题

    1014

    帖子

    607

    积分

    小学生

    Rank: 2

    积分
    607

    最佳新人

    ( ̄︶ ̄)↗  发表于 2022-1-13 08:46:20
    狗蛋哥哥 发表于 2022-1-12 15:13
    光猫桥接,op 主路由拨号, 安装docker 插件, 用docker 启动容器魔方, host 模式, upnp 确定开启, 为啥 ...

    op拨号,op下docker安装网心云对吧?-e NIC=eth0 有多网卡多线路时,可以使用该参数指定路由网卡,不配置会自动选默认路由网卡,如果是openwrt系统,可以使用-e NIC=br-lan,业务申请到和局域网同一个网段的IP。
    docker run -d --name wxedge --privileged --network=host -e NIC=eth0 --tmpfs /run --tmpfs /tmp -v /mnt/sda/wxedge_storage:/storage:rw --restart=always registry.cn-hangzhou.aliyuncs.com/onething/wxedge
    回复

    使用道具 举报

  • TA的每日心情
    难过
    2023-7-24 15:26
  • 0

    主题

    3

    帖子

    11

    积分

    幼儿园

    Rank: 1

    积分
    11
    Henry998 发表于 2023-7-17 11:05:49
    ( ̄︶ ̄)↗  发表于 2022-1-13 08:46
    op拨号,op下docker安装网心云对吧?-e NIC=eth0 有多网卡多线路时,可以使用该参数指定路由网卡,不配置 ...

    请问,这个NIC对应的eth0是pppoe拨号所在的那个物理网口吗?还是拨号后生成的虚拟网口(wan)?
    这是我这边的配置,eth0,eth2,eth3是物理lan口,eth1是拨号口(并且,由于光猫开启的是混合模式,eth1上还叠加了一个DHCP客户端-用于让路由器子网可以直接访问光猫子网,DHCP客户端获取的IP是192.168.1.2),eth1上pppoe拨号生成了pppoe-wan,pppoe-wan还生成了一个虚拟的wan6(没有显示在ifconfig中),vethe9b2cc5是docker容器的网口。

    请问,这种情况下,环境变量NIC的值是应该写eth1还是写pppoe,还是写其它的什么值?

    ```
    root@OpenWrt:/app/wxedge# docker exec -i wxedge ifconfig
    br-lan: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 10.0.0.1  netmask 255.255.255.0  broadcast 10.0.0.255
            inet6 fd88::1  prefixlen 64  scopeid 0x0<global>
            inet6 *************::1  prefixlen 64  scopeid 0x0<global>
            inet6 fe80::c683:4fff:fe23:130  prefixlen 64  scopeid 0x20<link>
            ether c4:83:4f:23:01:30  txqueuelen 1000  (Ethernet)
            RX packets 6139609  bytes 706453842 (706.4 MB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 14603531  bytes 16271582479 (16.2 GB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
            inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
            ether 32:f7:a1:cc:94:16  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    docker_app_upnp: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 172.21.0.1  netmask 255.255.0.0  broadcast 172.21.255.255
            inet6 fe80::1  prefixlen 64  scopeid 0x20<link>
            inet6 fd00:21::1  prefixlen 32  scopeid 0x0<global>
            inet6 fe80::e4bb:beff:fe4d:9c9  prefixlen 64  scopeid 0x20<link>
            inet6 *************:4e9a  prefixlen 64  scopeid 0x0<global>
            ether ee:0e:4a:3e:a4:10  txqueuelen 1000  (Ethernet)
            RX packets 59816549  bytes 56936377360 (56.9 GB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 47609230  bytes 24633690663 (24.6 GB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            ether c4:83:4f:23:01:30  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 337660  bytes 137485460 (137.4 MB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 20  

    eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.1.2  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::c683:4fff:fe23:131  prefixlen 64  scopeid 0x20<link>
            ether c4:83:4f:23:01:31  txqueuelen 1000  (Ethernet)
            RX packets 80955876  bytes 55734840607 (55.7 GB)
            RX errors 0  dropped 15011  overruns 0  frame 0
            TX packets 90829970  bytes 67683935065 (67.6 GB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 21


    eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            ether c4:83:4f:23:01:32  txqueuelen 1000  (Ethernet)
            RX packets 6160599  bytes 707534946 (707.5 MB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 14603709  bytes 16272374282 (16.2 GB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 22  

    eth3: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
            ether c4:83:4f:23:01:33  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 23  

    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 834414672  bytes 1072809219489 (1.0 TB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 834414672  bytes 1072809219489 (1.0 TB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    pppoe-wan: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1492
            inet *************  netmask 255.255.255.255  destination 100.79.128.1
            inet6 fe80::2dbf:9c9f:5b65:1907  prefixlen 128  scopeid 0x20<link>
            inet6 *************:1907  prefixlen 64  scopeid 0x0<global>
            ppp  txqueuelen 3  (Point-to-Point Protocol)
            RX packets 80060178  bytes 54951567198 (54.9 GB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 89420856  bytes 64635041157 (64.6 GB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    vethe9b2cc5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet6 fe80::ac08:7cff:fe0e:41b7  prefixlen 64  scopeid 0x20<link>
            ether ae:08:7c:0e:41:b7  txqueuelen 0  (Ethernet)
            RX packets 734  bytes 179941 (179.9 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 10202  bytes 2476645 (2.4 MB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


    ...无关网口的信息已删除...
    ```
    回复

    使用道具 举报

  • TA的每日心情
    难过
    2023-7-24 15:26
  • 0

    主题

    3

    帖子

    11

    积分

    幼儿园

    Rank: 1

    积分
    11
    Henry998 发表于 2023-7-17 12:20:57
    Henry998 发表于 2023-7-17 11:05
    请问,这个NIC对应的eth0是pppoe拨号所在的那个物理网口吗?还是拨号后生成的虚拟网口(wan)?
    这是我这 ...

    而且,也试过把eth1上的DHCP客户端关掉,仅使用pppoe,问题依旧。
    回复

    使用道具 举报

    关于作者

    狗蛋哥哥

    幼儿园

    • 主题

      4

    • 帖子

      12

    • 关注者

      0