将飞牛部署在公司网络中使用,使用“功能/管理”权限分离的方式(双网卡)
其中“功能”网卡为enp6s18;基本以docker安装开源项目实现,如filebrowser,并使用macvlan方式进行部署容器,并使用10.10.10.0/24网段,使容器使用入口为http://10.10.10.5:3670;
“管理”网卡使用enp6s17负责samba、web及ssh,使用入口为https://172.16.33.33/24:5667
若想实现,需要设置enp6s18网口为空ip,但web端不支持,如图:

通过修改/etc/NetworkManager/system-connections/enp6s18.nmconnection的method=disabled后,发现重启NetworkManager后,enp6s18.nmconnection中通过手动修改的method=disabled一行会自动变成method=auto
求解决,只为了实现enp6s18网卡不配置ip;;;目前通过防火墙DHCP黑名单禁止对应MAC,可仅为临时方案 |