Linux搭建pptp***服务器
1.准备安装实验包
[root@localhostDesktop]#rpm-ivhdkms-2.0.17.5-1.noarch.rpm
warning:dkms-2.0.17.5-1.noarch.rpm:HeaderV3DSAsignature:NOKEY,keyID862acc42
Preparing...###########################################[100%]
1:dkms###########################################[100%]
[root@localhostDesktop]#rpm-ivhkernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
warning:kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm:HeaderV3DSAsignature:NOKEY,keyID862acc42
gccisneededbykernel_ppp_mppe-1.0.2-3dkms.noarch
[root@localhostCentOS]#rpm-ivhgcc-4.1.2-48.el5.i386.rpmglibc-devel-2.5-49.i386.rpmlibgomp-4.4.0-6.el5.i386.rpmglibc-headers-2.5-49.i386.rpmkernel-headers-2.6.18-194.el5.i386.rpm
warning:gcc-4.1.2-48.el5.i386.rpm:HeaderV3DSAsignature:NOKEY,keyIDe8562897
Preparing...###########################################[100%]
1:libgomp###########################################[20%]
2:kernel-headers###########################################[40%]
3:glibc-headers###########################################[60%]
4:glibc-devel###########################################[80%]
5:gcc###########################################[100%]
[root@localhostDesktop]#rpm-ivhkernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
warning:kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm:HeaderV3DSAsignature:NOKEY,keyID862acc42
Preparing...###########################################[100%]
1:kernel_ppp_mppe###########################################[100%]
Creatingsymlink/var/lib/dkms/kernel_ppp_mppe/1.0.2/source->
/usr/src/kernel_ppp_mppe-1.0.2
Modulebuildforthecurrentlyrunningkernelwasskipped
sincethekernelsourceforthiskerneldoesnotseemtobe
[root@localhostDesktop]#rpm-ivhppp-2.4.5-15.0.rhel5.i386.rpm
warning:ppp-2.4.5-15.0.rhel5.i386.rpm:HeaderV3DSAsignature:NOKEY,keyIDb56a8bac
Preparing...###########################################[100%]
file/usr/sbin/chatfrominstallofppp-2.4.5-15.0.rhel5.i386conflictswithfilefrompackageppp-2.4.4-2.el5.i386
file/usr/sbin/pppdfrominstallofppp-2.4.5-15.0.rhel5.i386conflictswithfilefrompackageppp-2.4.4-2.el5.i386
file/usr/sbin/pppdumpfrominstallofppp-2.4.5-15.0.rhel5.i386conflictswithfilefrompackageppp-2.4.4-2.el5.i386
file/usr/sbin/pppoe-discoveryfrominstallofppp-2.4.5-15.0.rhel5.i386conflictswithfilefrompackageppp-2.4.4-2.el5.i386
file/usr/sbin/pppstatsfrominstallofppp-2.4.5-15.0.rhel5.i386conflictswithfilefrompackageppp-2.4.4-2.el5.i386
file/usr/share/man/man8/chat.8.gzfrominstallofppp-2.4.5-15.0.rhel5.i386conflictswithfilefrompackageppp-2.4.4-2.el5.i386
file/usr/share/man/man8/pppd.8.gzfrominstallofppp-2.4.5-15.0.rhel5.i386conflictswithfilefrompackageppp-2.4.4-2.el5.i386
[root@localhostDesktop]#rpm-ivhpptpd-1.3.4-1.rhel5.1.i386.rpm
warning:pptpd-1.3.4-1.rhel5.1.i386.rpm:HeaderV3DSAsignature:NOKEY,keyID862acc42
Preparing...###########################################[100%]
1:pptpd###########################################[100%]
2.下面开始修改配置文件
iptables-tnat-APOSTROUTING-s192.168.0.0/24-jSNAT--to172.16.4.6