CentOS 7部署***服務器

1.簡介網絡


1.1×××架構

  在公用網絡上創建專用網絡的技術。整個×××網絡的任意兩個節點之間的鏈接並無傳統專網所需的端到端的物理鏈路,而是架構在公用網絡服務商所提供的網絡平臺,如Internet、ATM(異步傳輸模式〉、Frame Relay (幀中繼)等之上的邏輯網絡,用戶數據在邏輯鏈路中傳輸。異步


1.2×××功能ide

  1)信息包分類oop

  2)寬帶管理spa

  3)通訊量管理orm

  4)公平寬帶blog

  5)傳輸保證ip


2.環境準備rem

[root@CentOS 7 ~]# cat /etc/redhat-release 

CentOS Linux release 7.2.1511 (Core) 

[root@CentOS 7 ~]# uname -r

3.10.0-327.el7.x86_64

[root@CentOS 7 ~]# getenforce 

Disabled

[root@CentOS 7 ~]# systemctl status firewalld.service 

● firewalld.service - firewalld - dynamic firewall daemon

   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)

   Active: inactive (dead)

[root@CentOS 7 ~]# ifconfig

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 10.0.0.201  netmask 255.255.255.0  broadcast 10.0.0.255

        inet6 fe80::20c:29ff:fe40:1a4e  prefixlen 64  scopeid 0x20<link>

        ether 00:0c:29:40:1a:4e  txqueuelen 1000  (Ethernet)

        RX packets 1271  bytes 333766 (325.9 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 149  bytes 17432 (17.0 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 172.16.1.201  netmask 255.255.255.0  broadcast 172.16.1.255

        inet6 fe80::20c:29ff:fe40:1a58  prefixlen 64  scopeid 0x20<link>

        ether 00:0c:29:40:1a:58  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 10  bytes 744 (744.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

        inet 127.0.0.1  netmask 255.0.0.0

        inet6 ::1  prefixlen 128  scopeid 0x10<host>

        loop  txqueuelen 0  (Local Loopback)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


3.部署×××


3.1設置內核轉發

[root@CentOS 7 ~]# echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf 

[root@CentOS 7 ~]# sysctl -p

net.ipv4.ip_forward = 1


3.2安裝PPTP
[root@CentOS 7 ~]# yum install -y pptpd


3.3配置鏈接網段

[root@CentOS 7 ~]# tail -2 /etc/pptpd.conf 

localip 10.0.0.201

remoteip 172.16.1.200-210


3.4添加×××登錄用戶及密碼

[root@CentOS 7 ~]# cat /etc/ppp/chap-secrets

fengyu * 123456 *


3.5啓動

[root@CentOS 7 ~]# systemctl start pptpd.service 


4.Windows經過×××進入公司內網


image.png

image.png

image.png

image.png


image.png

image.png

image.png

image.png


image.png

相關文章
相關標籤/搜索