11 2021 档案

firewall-cmd设置NAT转换
摘要:配置ipv4转发 修改servera配置文件/etc/sysctl.conf ,修改参数为1 net.ipv4.ip_forward = 1 配置生效: sysctl -p 修改网卡的zone [root@192-168-109-110 ~]# firewall-cmd --permanent -- 阅读全文

posted @ 2021-11-16 13:22 杨小杨~ 阅读(869) 评论(1) 推荐(0)

内网服务器通过单台外网服务器实现外网访问,iptables NAT
摘要:环境: ​ servera: 外网服务器 ​ serverb: 内网服务器 servera内网网关(GATEWAY)要设置为外网IP,其IP地址作为其它内网服务器的网关 servera 内网网卡配置 [root@localhost network-scripts]# cat ifcfg-team0 阅读全文

posted @ 2021-11-16 11:30 杨小杨~ 阅读(1452) 评论(0) 推荐(0)

Linux unset命令用法
摘要:Linux unset命令用于删除变量或函数。 unset为shell内建指令,可删除变量或函数 参数: -f 仅删除函数 -v 仅删除变量 [root@localhost ~]# yangzc="ls -lh" ## 设定环境变量 [root@localhost ~]# $yangzc ## 使用 阅读全文

posted @ 2021-11-15 17:57 杨小杨~ 阅读(507) 评论(0) 推荐(0)

导航