日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
ubuntu18.04單網(wǎng)卡多ip

PPTP Server簡介

PPTP(Point-to-Point Tunneling Protocol)是一種用于在IP網(wǎng)絡(luò)中創(chuàng)建點對點虛擬專用網(wǎng)絡(luò)(VPN)連接的協(xié)議,它允許用戶通過公共Internet連接到遠程私有網(wǎng)絡(luò),從而實現(xiàn)安全、加密的數(shù)據(jù)傳輸,在本文中,我們將介紹如何在單網(wǎng)卡Ubuntu服務(wù)器上搭建PPTP服務(wù)器。

十載的光山網(wǎng)站建設(shè)經(jīng)驗,針對設(shè)計、前端、開發(fā)、售后、文案、推廣等六對一服務(wù),響應(yīng)快,48小時及時工作處理。營銷型網(wǎng)站的優(yōu)勢是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動調(diào)整光山建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計,從而大程度地提升瀏覽體驗。成都創(chuàng)新互聯(lián)公司從事“光山網(wǎng)站設(shè)計”,“光山網(wǎng)站推廣”以來,每個客戶項目都認真落實執(zhí)行。

安裝PPTP服務(wù)器軟件

1、更新系統(tǒng)軟件包列表:

sudo apt-get update

2、安裝PPTP服務(wù)器軟件:

sudo apt-get install pptp pptpconf

3、配置PPTP服務(wù)器:

編輯/etc/pptpd.conf文件,添加以下內(nèi)容:

localip 192.168.0.1
remoteip 10.0.0.0-255.255.255.255

這里,localip是服務(wù)器的內(nèi)部IP地址,remoteip是分配給客戶端的IP地址范圍,根據(jù)實際需求進行修改。

4、創(chuàng)建用戶賬戶并設(shè)置密碼:

sudo pptpdb add-user your_username password your_password

your_usernameyour_password替換為你想要的用戶名和密碼。

配置防火墻規(guī)則

為了允許PPTP流量通過服務(wù)器,需要配置iptables防火墻規(guī)則,啟用IP轉(zhuǎn)發(fā):

echo 1 > /proc/sys/net/ipv4/ip_forward

添加以下規(guī)則以允許PPTP流量通過服務(wù)器的虛擬以太網(wǎng)接口(假設(shè)為eth0):

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

啟動并設(shè)置開機自啟動PPTP服務(wù)

1、啟動PPTP服務(wù):

sudo systemctl start pptpd@server

2、設(shè)置PPTP服務(wù)開機自啟動:

sudo systemctl enable pptpd@server

相關(guān)問題與解答

1、如何配置PPTP客戶端?

答:編輯客戶端計算機上的/etc/ppp/chap-secrets文件,添加一行以匹配服務(wù)器上的用戶名和密碼。

your_username * * * * * your_server_ip your_server_port your_secret_number your_secret_id * * * * * * : your_username * * * * * * your_server_ip your_server_port your_secret_number your_secret_id * * * * * * : your_password (no authentication) (LEGACY) (PPP over ISDN) (default gateway) (no default route) (no DNS servers) (no DNS search domain) (no host name lookups) (no reverse DNS) (no NTP servers) (no RLP server) (no ICMP server) (no TCP MSDP negotation) (no UDP MSDP negotiation) (no DCCP negotiation) (no SCTP negotiation) (no ESP encryption) (no IPsec security association negotiation) (no IPv6 address autoconfiguration) (no IPv6 routing) (no IPv6 DNS servers) (no IPv6 DNS search domains) (no IPv6 reverse DNS) (no IPv6 host name lookups) (no IPv6 NTP servers) (no IPv6 RLP servers) (no IPv6 ICMP servers) (no IPv6 TCP MSDP negotation) (no IPv6 UDP MSDP negotiation) (no IPv6 DCCP negotiation) (no IPv6 SCTP negotiation) (no IPv6 ESP encryption) (no IPv6 IPsec security association negotiation) (no IPv6 autoconfiguration for IPv4 addresses) (use default gateway on remote network interface only if no other gateway is available; use the local loopback address as a default gateway when the remote network interface is not available; do not use the default gateway for non-IP traffic; do not use the default gateway for tunneled traffic; do not use the default gateway for traffic that is already connected to another destination; do not use the default gateway for traffic that is already connected to another tunnel endpoint; do not use the default gateway for traffic that is already connected to another VPN endpoint; do not use the default gateway for traffic that is already connected to another L2TP or IPSec endpoint; do not use the default gateway for traffic that is already connected to another PSK or PAP endpoint; do not use the default gateway for traffic that is already connected to another CHAP or PAP endpoint; do not use the default gateway for traffic that is already connected to another MD5 or SHA1 authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another NTLM authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Kerberos authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another SPNEGO authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another SSPI authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication protocol endpoint; do not use the default gateway for traffic that is already connected to another Windows authentication協(xié)議端點;不使用默認網(wǎng)關(guān)進行其他類型的流量傳輸。

網(wǎng)站標題:ubuntu18.04單網(wǎng)卡多ip
轉(zhuǎn)載來于:http://www.dlmjj.cn/article/dhejpse.html