Centos 端口转发
来源:互联网 发布:软件申请专利流程 编辑:程序博客网 时间:2024/05/20 07:33
注:以下命名在root账户下运行
1、将80端口转发到Tomcat 8080端口命令
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 80802、删除80端口转发到Tomcat 8080端口命令
iptables -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
service iptables save
执行 service iptables save 遇到如下错误The service command supports only basic LSB actions (start, stop, restart, try-restart, reload,force-reload, status)
错误原因:
With RHEL 7 / CentOS 7, firewalld was introduced to manage iptables. IMHO,
firewalld is more suited for workstations than for server environments.解决办法:
It is possible to go back to a more classic iptables setup.First, stop and mask the firewalld service:systemctl stop firewalldsystemctl mask firewalldThen, install the iptables-services package:yum install iptables-servicesEnable the service at boot-time:systemctl enable iptablesManaging the servicesystemctl [stop|start|restart] iptablesSaving your firewall rules can be done as follows:service iptables save
0 0
- CentOS 6.5 端口转发
- Centos端口转发
- Centos 端口转发
- centos iptables 端口转发命令
- Centos配置80 端口转发
- 阿里云Centos端口转发
- centos iptable端口转发 端口映射
- Centos下配置端口转发将80端口请求转发至8080
- Centos下配置端口转发将80端口请求转发至8080
- centos端口转发神器:socat安装及使用
- CentOS上nginx不能正常转发到gitlab端口
- CentOS系统中使用iptables设置端口转发
- CentOS系统中使用iptables设置端口转发
- CentOS下iptables设备双网卡的端口转发规则
- 端口转发
- 端口转发
- 端口转发
- 端口转发
- eval 的作用
- Android可伸缩布局-FlexboxLayout(支持RecyclerView集成)
- Android面试题-为什么需要token
- 中小站做SEO,就是安全第一,安全第一,安全第一
- Android路由表设置(route & DNS)
- Centos 端口转发
- java用正则方法验证文件名是否合法
- BZOJ3482: [COCI2013]hiperprostor
- 机场A-CDM系统建设发展现状-网络资源整理
- CSU 1892: Nested Dolls(2007 Nordic Collegiate Programming Contest)
- pyqt5用pyinstaller打包
- Innosetup相关操作简介
- 玩过的游戏
- 中文传值火狐、google浏览器无问题,但IE有乱码问题的解决