|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!- 复杂的Shell剧本,间接保留并pptp.sh再实行便可。
复制代码 yumremove-ypptpdppp
iptables--flushPOSTROUTING--tablenat
iptables--flushFORWARD
rm-rf/etc/pptpd.conf
rm-rf/etc/ppp
yum-yinstallmakelibpcapiptablesgcc-c++logrotatetarcpioperlpamtcp_wrappers
yum-ydkms-2.0.17.5-1.noarch.rpm
yum-ykernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
rpm-qakernel_ppp_mppe
yum-yppp-2.4.4-9.0.rhel5.i386.rpm
yum-ypptpd-1.3.4-1.rhel5.1.i386.rpm
mknod/dev/pppc1080
echo1>/proc/sys/net/ipv4/ip_forward
echo"mknod/dev/pppc1080">>/etc/rc.local
echo"echo1>/proc/sys/net/ipv4/ip_forward">>/etc/rc.local
echo"localip192.168.168.1">>/etc/pptpd.conf
echo"remoteip192.168.168.2-254">>/etc/pptpd.conf
echo"ms-dns8.8.8.8">>/etc/ppp/options.pptpd
<divclass="linenumber19index18alt2"style="color:rgb(85,85,85);font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace;white-space:nowrap;font-size:1em!important;line-height:1.1em!important;padding:0px1em!important;margin:0px!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;outline:0px!important;overflow:visible!important;position:static!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;min-height:inherit!important;">echo"ms-dns8.8.4.4" |
|