首页  :: 新随笔  :: 管理

2011年5月8日

摘要: vi /etc/rc.local/usr/local/sbin/openvpn --config /usr/local/etc/server.conf > /dev/null 2>&1 & openvpn --cd /etc/openvpn --daemon --config server.conf 阅读全文

posted @ 2011-05-08 17:53 季枫 阅读(1182) 评论(0) 推荐(0)

摘要: 一、将下列内容加入/etc/rc.local文件中:注:eth0绑内网IP eth1绑外网IP################[root@RHNAT01 root]# vi /etc/rc.local#!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don't# want to do the full Sys V style init stuff.touch /var/ 阅读全文

posted @ 2011-05-08 17:33 季枫 阅读(1226) 评论(0) 推荐(0)

摘要: 由于系统需要分别从内外网访问,即外网用户从外网访问服务器,内网用户从内网访问服务器,结果在配置双网关后发现内网不能访问,使用route命令查看路由发现问题原因,重新设置路由解决了问题。为避免服务器重启后再出现路由问题,在配置文件 /etc/rc.local 添加route add -net 172.0.0.0 netmask 255.0.0.0 gw 172.31.20.254 dev eth1 #内网路由route add -net 222.211.64.120 netmask 255.255.255.255 gw 219.221.176.253 dev eth0 #为http://www. 阅读全文

posted @ 2011-05-08 14:22 季枫 阅读(5397) 评论(0) 推荐(0)

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |