iptables 设置端口转发/映射 服务器A有两个网卡 内网ip:192.168.1.3 外网ip:10.138.108.103 本地回环:127.0.0.1 服务器B有网卡,8001提供服务 内网ip:192.168.1.1 目的使用户通过外网10.138.108.103:8001访问内网服务器 ...
分类:
其他好文 时间:
2019-04-05 00:38:48
阅读次数:
204
启用网卡转发功能#echo 1 > /proc/sys/net/ipv4/ip_forward举例:从192.168.0.132:21521(新端口)访问192.168.0.211:1521端口 a.同一端口转发(192.168.0.132上开通1521端口访问 iptables -A RH-Fir ...
分类:
其他好文 时间:
2019-04-05 00:34:00
阅读次数:
160
玩 vps 的经常要用到端口转发用以实现更快的速度。比如 ovh 机房的网络我这里访问非常慢,用远程桌面会吐血的类型。所以就会用其他的线路作为跳板,比如洛杉矶,香港之类的。再比如如果需要一个日本 ip ,但是本地访问 linode, conoha 的日本都绕路,又慢,这时如果用一个香港的 vps 做 ...
分类:
其他好文 时间:
2019-04-05 00:33:03
阅读次数:
156
安装前准备: iptables -L iptables -F systemctl stop firewalld systemctl disable firewalld vim /etc/selinux/config setsebool -P ftpd_disable_trans 1 安装步骤: yu ...
分类:
其他好文 时间:
2019-04-03 10:54:01
阅读次数:
177
本文收录在Linux运维企业架构实战系列 环境准备 系统:CentOS 7 IP:192.168.10.101 关闭selinux 和防火墙 一、准备 Python3 和 Python 虚拟环境 1、安装依赖包 [root@centos7-1 opt]# yum -y install wget sq ...
分类:
其他好文 时间:
2019-04-01 15:30:05
阅读次数:
167
安装环境系统:CentOS7.4更新yumyumupdateyum-yinstallepel*先安装bzip2yum-yinstallbzip21.下载源代码我这里下载的是7.1版本的源代码最新的已经有8.0版本http://archive.apache.org/dist/trafficserver/trafficserver-7.1.4.tar.bz2需要访问这个url里面有链接用wget下载下
分类:
Web程序 时间:
2019-03-31 15:30:09
阅读次数:
636
一、docker的网络模式概述 1.1 单机模式 bridge 默认模式,此模式会为每一个容器分配、设置IP等,并将容器连接到一个docker0虚拟网桥,通过docker0网桥以及Iptables nat表配置与宿主机通信。 host 容器将不会虚拟出自己的网卡,配置自己的IP等,而是使用宿主机的I ...
分类:
其他好文 时间:
2019-03-31 12:16:05
阅读次数:
138
firewall-cmd https://wangchujiang.com/linux-command/c/firewall-cmd.html 高手大作 等哪天需要防火墙了 再练习一下. Linux上新用的防火墙软件,跟iptables差不多的工具。 补充说明 firewall-cmd 是 fire ...
分类:
其他好文 时间:
2019-03-31 09:41:20
阅读次数:
173
1、CentOS下重置root密码 2、关闭防火墙 service iptables stop chkconfig iptables 3、修改主机名 4、强制关闭selinux安全子系统 5、安装依赖包(执行此项时可重开会话执行其他配置) yum -y install gcc gcc-c++ mak ...
分类:
数据库 时间:
2019-03-28 20:36:38
阅读次数:
234