使用centos 进行流量转发

首先 firewall-cmd --query-masquerade # 检查是否允许伪装IP firewall-cmd --add-masquerade # 允许防火墙伪装IP firewall-cmd --remove-masquerade# 禁止防火墙伪装IP firewall-cmd --list-ports #查...

解决Centos8 Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs in mi

解决Centos8报错Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mi   三条命令,亲测,好用 sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc...

Centos 提示 Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist

ssh下执行 cd /etc/yum.repos.d/ & sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* & sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/Cen...