在Debian / Ubuntu上安装PPP VPN
安装软件包
使用以下命令在您的VPS上安装pptpd软件包:
apt-get install pptpd
准备配置文件
通过运行以下命令将新设置插入到/etc/pptpd.conf
和/etc/ppp/pptpd-options
:
cat >/etc/pptpd.conf <<EOF
option /etc/ppp/pptpd-options
logwtmp
localip 192.168.10.1
remoteip 192.168.10.101-200
EOF
cat >/etc/ppp/pptpd-options <<EOF
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
nodefaultroute
lock
nobsdcomp
ms-dns 8.8.8.8
ms-dns 208.67.222.222
debug
dump
idle 300
EOF
编辑/etc/ppp/chap-secrets
来插入VPN用户。
FIRST_USERNAME pptpd PASSWORD1 *
SECOND_USERNAME pptpd PASSWORD2 *
重新启动pptpd服务。
/etc/init.d/pptpd restart
启用转发
使用此命令启用IPv4转发。必须启用IPv4转发才能使VPN正常工作。
sed -i 's/#net\.ipv4\.ip_forward=1/net.ipv4.ip_forward=1/' /etc/sysctl.conf
将此更改持久化。
sysctl -p
设置路由
创建一个网络启动脚本来配置iptables。
touch /etc/network/if-pre-up.d/route
将内容插入到脚本中:
cat >/etc/network/if-pre-up.d/route <<EOF
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
iptables -I INPUT -s 192.168.10.0/24 -i ppp0 -j ACCEPT
iptables --append FORWARD --in-interface eth0 -j ACCEPT
EOF
将此脚本设置为可执行。
chmod +x /etc/network/if-pre-up.d/route
运行脚本将这些规则应用于iptables。
/etc/network/if-pre-up.d/route
完成
现在您可以通过PC或移动设备连接到您自己的VPN服务器。
mdfxcdzzts
九月 26, 2020 12:44 下午
在Debian / Ubuntu上安装PPP VPN
mdfxcdzzts http://www.g8z6ge8do76r7b4i9gk1q1xi43c2l189s.org/
[url=http://www.g8z6ge8do76r7b4i9gk1q1xi43c2l189s.org/]umdfxcdzzts[/url]
amdfxcdzzts
Camlock Coupling Type C
十月 9, 2020 1:48 上午
Camlock Coupling Type C
IP44 UK Type Waterproof Socket Series
十月 9, 2020 3:32 上午
IP44 UK Type Waterproof Socket Series
98 Interactive Display
十月 9, 2020 5:10 上午
98 Interactive Display
Automatic Chain Link Machine
十月 9, 2020 5:21 上午
Automatic Chain Link Machine
15ml airless pump bottles
十月 9, 2020 5:58 上午
15ml airless pump bottles
755nm Nd Yag Laser Tattoo Removal Machine
十月 9, 2020 7:34 上午
755nm Nd Yag Laser Tattoo Removal Machine
Industrial Laser Marking Equipment
十月 9, 2020 7:57 上午
Industrial Laser Marking Equipment
Animal Ears For Christmas
十月 9, 2020 8:16 上午
Animal Ears For Christmas
15mm Stainless Steel Tube
十月 9, 2020 9:21 上午
15mm Stainless Steel Tube
best fragrance bottle design
十月 9, 2020 9:45 上午
best fragrance bottle design
Laser Marking Engraving Machine
十月 9, 2020 11:45 上午
Laser Marking Engraving Machine
12mm Steel Pipe
十月 9, 2020 7:27 下午
12mm Steel Pipe
P.S. Scientific Instruments
十月 9, 2020 7:53 下午
P.S. Scientific Instruments
Galvanize Anchor Bolts
十月 9, 2020 9:50 下午
Galvanize Anchor Bolts
120ml Plastics Lotion Pump Bottle
十月 10, 2020 1:03 上午
120ml Plastics Lotion Pump Bottle
A Gastrostomy Tube
十月 10, 2020 3:08 上午
A Gastrostomy Tube
Hydraulic Patient Lift
十月 10, 2020 3:40 上午
Hydraulic Patient Lift
Calacatta Marble White
十月 10, 2020 5:41 上午
Calacatta Marble White
5 Axis Cnc Milling Machine
十月 10, 2020 9:36 上午
5 Axis Cnc Milling Machine
Humidifier
十月 10, 2020 9:49 上午
Humidifier
Arm Exercise Equipment
十月 10, 2020 11:31 上午
Arm Exercise Equipment
100% Cotton Mens Polo Shirt
十月 10, 2020 9:31 下午
100% Cotton Mens Polo Shirt
26'
十月 10, 2020 9:55 下午
26′
Big Storage Jars
十月 11, 2020 1:48 上午
Big Storage Jars
3 Axis Milling Machine
十月 11, 2020 3:01 上午
3 Axis Milling Machine
LED Panel light
十月 11, 2020 8:02 上午
LED Panel light
Featured Products
十月 11, 2020 9:14 上午
Featured Products
Commercial Door Closer
十月 11, 2020 9:29 上午
Commercial Door Closer
Cheap Drawer Cabinet
十月 11, 2020 9:58 上午
Cheap Drawer Cabinet
Blouses & tops
十月 11, 2020 7:14 下午
Blouses & tops
Germany
十月 11, 2020 9:28 下午
Germany
30 Gauge Stainless Steel Wire
十月 11, 2020 11:15 下午
30 Gauge Stainless Steel Wire
Hand Boating For Sale
十月 12, 2020 1:59 上午
Hand Boating For Sale
Mason Cup With Handle
十月 12, 2020 3:56 上午
Mason Cup With Handle
Husky Slippers
十月 12, 2020 7:04 上午
Husky Slippers
200x200 Ceramic Wall Tile
十月 12, 2020 9:39 上午
200×200 Ceramic Wall Tile
3 Ply Mask
十月 12, 2020 11:24 上午
3 Ply Mask
China Glass Jar
十月 12, 2020 1:08 下午
China Glass Jar
Flooring Medallions Designs
十月 13, 2020 5:26 上午
Flooring Medallions Designs
Cute Surgical Masks
十月 13, 2020 7:22 上午
Cute Surgical Masks
Bimetallic Parallel Screw Barrel
十月 13, 2020 9:31 上午
Bimetallic Parallel Screw Barrel
Disinfection Wipes
十月 13, 2020 1:39 下午
Disinfection Wipes
Full Port Ball Valve
十月 13, 2020 3:31 下午
Full Port Ball Valve
Smart Appliances
十月 14, 2020 1:39 上午
Smart Appliances
1000l Red Copper Stainless Steel Beer Equipment
十月 14, 2020 7:44 上午
1000l Red Copper Stainless Steel Beer Equipment
Disposable Non Woven Face Mask
十月 14, 2020 9:41 上午
Disposable Non Woven Face Mask
China Halloween and Horror price
十月 14, 2020 10:41 上午
China Halloween and Horror price
Chlorine Dosing Pump
十月 14, 2020 11:00 上午
Chlorine Dosing Pump
200 Mesh Stainless Steel Screen
十月 14, 2020 5:07 下午
200 Mesh Stainless Steel Screen
Forehead thermometer
十月 15, 2020 3:13 上午
Forehead thermometer
Wall Hanging
十月 15, 2020 9:31 上午
Wall Hanging
Capital University of Physical Education and Sports
十月 16, 2020 1:57 上午
Capital University of Physical Education and Sports
Disposable Mask Kn 95
十月 16, 2020 9:59 上午
Disposable Mask Kn 95
Beans Packing Machine
十月 16, 2020 3:52 下午
Beans Packing Machine
Father Son Matching Board Shorts
十月 16, 2020 5:56 下午
Father Son Matching Board Shorts
GW 4D20
十月 17, 2020 1:01 上午
GW 4D20
1flute End Mill
十月 17, 2020 7:19 上午
1flute End Mill
Copper Welding Wire
十月 17, 2020 7:58 上午
Copper Welding Wire
Disposable-Face-Mask
十月 17, 2020 9:22 上午
Disposable-Face-Mask
China Screw and Cannon
十月 17, 2020 11:42 上午
China Screw and Cannon
Featured
十月 18, 2020 1:31 上午
Featured
19w4 Grating Machine
十月 18, 2020 2:41 上午
19w4 Grating Machine
Desktop Laser Cutter
十月 18, 2020 3:43 上午
Desktop Laser Cutter
Adult Teddy Bear Costumes
十月 18, 2020 5:42 下午
Adult Teddy Bear Costumes
Hex flange head self drilling screw
十月 18, 2020 7:31 下午
Hex flange head self drilling screw
12v Hydraulic Power Units
十月 18, 2020 9:20 下午
12v Hydraulic Power Units
Air Heating Element
十月 19, 2020 1:08 上午
Air Heating Element
Chestnut Laminate Flooring
十月 19, 2020 3:15 上午
Chestnut Laminate Flooring
100w Fabric Layer Cutting Machine
十月 19, 2020 3:49 上午
100w Fabric Layer Cutting Machine
Pipe Clamp
十月 19, 2020 5:25 上午
Pipe Clamp
1 Inch Steel Tubing
十月 19, 2020 1:08 下午
1 Inch Steel Tubing
0.4mm Pvc Sheet
十月 20, 2020 1:00 上午
0.4mm Pvc Sheet
Chemical Stabilizer-cmc
十月 20, 2020 5:20 上午
Chemical Stabilizer-cmc
Hiking Industry Co., Limited
十月 20, 2020 5:55 下午
Hiking Industry Co., Limited
Guangzhou Baoyue Electromechanical Equipment Co., Ltd.
十月 22, 2020 7:28 上午
Guangzhou Baoyue Electromechanical Equipment Co., Ltd.
Hormone Growth
十月 22, 2020 7:57 上午
Hormone Growth
1 Cm Satin Stripe Bed Sheet
十月 22, 2020 9:59 上午
1 Cm Satin Stripe Bed Sheet
36 Inch Electric Cooktop With Downdraft
十月 25, 2020 3:55 上午
36 Inch Electric Cooktop With Downdraft
Hefei Easy Way Imp & Exp Co., Ltd.
十月 25, 2020 9:12 下午
Hefei Easy Way Imp & Exp Co., Ltd.
Health Mask
十月 26, 2020 5:06 上午
Health Mask
150w Laser Cutting Machine
十月 26, 2020 7:53 上午
150w Laser Cutting Machine
Collage Photo Frame
十月 26, 2020 11:45 上午
Collage Photo Frame
Henan Forchen Machinery Co., Ltd.
十月 26, 2020 7:56 下午
Henan Forchen Machinery Co., Ltd.
Heat Plate
十月 27, 2020 3:40 上午
Heat Plate
Hex Head Nut Price
十月 28, 2020 5:09 上午
Hex Head Nut Price
Hefei Huanxin Technology Development Co., Ltd.
十月 28, 2020 11:07 上午
Hefei Huanxin Technology Development Co., Ltd.
Guangzhou Everpretty Furniture Co., Ltd.
十月 28, 2020 1:08 下午
Guangzhou Everpretty Furniture Co., Ltd.
GREAT WALL VOLEEX C20R
十月 29, 2020 1:57 上午
GREAT WALL VOLEEX C20R
Molybdenum Alloy Factory
十月 29, 2020 7:37 下午
Molybdenum Alloy Factory
Inflatable Sports Toy Price
十月 30, 2020 7:07 上午
Inflatable Sports Toy Price
4 Flute Ball Nose End Mill
十月 30, 2020 7:46 上午
4 Flute Ball Nose End Mill
Eyeshadow Makeup
十月 31, 2020 1:53 上午
Eyeshadow Makeup
En 10219
十月 31, 2020 3:35 上午
En 10219
Automatic Glue Filling Machine
十月 31, 2020 7:13 上午
Automatic Glue Filling Machine
Beijing Normal University
十一月 1, 2020 9:22 上午
Beijing Normal University
Line Array Audio Price
十一月 2, 2020 3:26 上午
Line Array Audio Price
Anti Theft Backpack
十一月 2, 2020 5:53 下午
Anti Theft Backpack Supplier
Notebook
十一月 3, 2020 1:09 上午
Notebook
China Wholesale Collapsible Push Cart Suppliers
十一月 3, 2020 3:42 上午
China Wholesale Collapsible Push Cart Suppliers
Cooling Device
十一月 3, 2020 5:14 上午
Cooling Device
Fiber Cable
十一月 3, 2020 9:29 上午
Fiber Cable
Hand Grease Gun Price
十一月 4, 2020 11:30 上午
Hand Grease Gun Price
Indoor Lcd Display Price
十一月 4, 2020 1:25 下午
Indoor Lcd Display Price
Mask Respirator
十一月 4, 2020 9:30 下午
Mask Respirator
Camlock F
十一月 5, 2020 1:22 上午
Camlock F
China Dining table and chair
十一月 6, 2020 8:52 上午
Dining table and chair Supplier
Meter Test Equipment Factory
十一月 7, 2020 3:08 上午
Meter Test Equipment Factory
4 Head Filling Machine
十一月 7, 2020 11:29 上午
4 Head Filling Machine
China Silk-Screen Printing Glass
十一月 7, 2020 1:28 下午
China Silk-Screen Printing Glass
快车足彩
十一月 7, 2020 11:46 下午
日本性爱直播
欧美牲交AⅤ
十一月 8, 2020 1:31 上午
澳门博狗
Ho Scale Train Couplers
十一月 9, 2020 2:27 上午
Ho Scale Train Couplers
Vertical Sump Pump
十一月 9, 2020 3:47 上午
Vertical Sump Pump
Guangzhou YouPin Textile Co., Ltd.
十一月 9, 2020 8:10 上午
Guangzhou YouPin Textile Co., Ltd.
日本AV性爱电影
十一月 10, 2020 6:57 上午
欧美牲交AⅤ
Hair Accessory Price
十一月 12, 2020 3:38 上午
Hair Accessory Price
Cotton Floor Mop
十一月 12, 2020 7:30 上午
Cotton Floor Mop
305 Fitness Apparel
十一月 12, 2020 7:59 上午
305 Fitness Apparel
China Products
十一月 13, 2020 7:47 上午
China Products
https://www.deliworld.com/adhesive-products/e811-tape-dispenser-small.html
十一月 14, 2020 3:40 下午
https://www.deliworld.com/adhesive-products/e811-tape-dispenser-small.html
Led Panel Light Ceiling Supplier
十一月 16, 2020 4:07 上午
China Led Panel Light Ceiling
Guangzhou Wuyang Yiguan Acoustic Materials Co., Ltd.
十一月 17, 2020 1:17 上午
Guangzhou Wuyang Yiguan Acoustic Materials Co., Ltd.
Balloon Gastrostomy Tube
十一月 17, 2020 11:12 上午
Balloon Gastrostomy Tube
赌厅网投
十一月 17, 2020 9:46 下午
日本性爱直播
11421711568 Oil Filter
十一月 18, 2020 3:14 上午
11421711568 Oil Filter
Bwg17 Galvanized Iron Wire
十一月 18, 2020 3:43 上午
Bwg17 Galvanized Iron Wire
Adult Mini Cruiser Skateboard
十一月 18, 2020 5:17 上午
Adult Mini Cruiser Skateboard
04152-31090
十一月 18, 2020 6:27 上午
04152-31090
common rail injector valve plate
十一月 19, 2020 9:14 上午
common rail injector valve plate
Fixing Screws
十一月 19, 2020 9:11 下午
Fixing Screws
Canada Steel Plank
十一月 20, 2020 9:18 上午
Canada Steel Plank
Elastic Woven Tape
十一月 21, 2020 5:26 上午
Elastic Woven Tape
Porous Vent
十一月 21, 2020 7:52 上午
Porous Vent
china electric bicycle factory
十一月 21, 2020 6:14 下午
china electric bicycle factory
Bulk Tin Containers
十一月 21, 2020 9:33 下午
Bulk Tin Containers
Pellet Mill Price
十一月 22, 2020 1:49 上午
Pellet Mill Price
Bunker
十一月 22, 2020 11:05 上午
Bunker
Automatic Glass Cleaner
十一月 22, 2020 11:58 下午
Automatic Glass Cleaner
Aluminium Parts
十一月 23, 2020 1:27 上午
Aluminium Parts
Carbon Steel Plate
十一月 23, 2020 5:52 上午
Carbon Steel Plate
Aluminum Motorcycle Parts
十一月 25, 2020 10:37 下午
Aluminum Motorcycle Parts
Hyaluronic Acid Knee Injection
十一月 26, 2020 1:25 上午
Hyaluronic Acid Knee Injection
Hatching Egg Packer
十一月 26, 2020 11:05 上午
Hatching Egg Packer
Banana Plug For Ecg
十一月 26, 2020 7:33 下午
Banana Plug For Ecg
China Perforated Carved Aluminum Panel
十一月 27, 2020 9:37 上午
China Perforated Carved Aluminum Panel
Insulated Cable Connector
十一月 28, 2020 1:41 上午
China Insulated Cable Connector
China Blue Light Blocking Safety Glasses
十一月 28, 2020 3:23 上午
China Blue Light Blocking Safety Glasses
Lenticular Printing Training
十一月 29, 2020 1:03 上午
Lenticular Printing Training
7 /croscarmellose Sodium - 74811-65-7
十一月 29, 2020 5:44 下午
7 /croscarmellose Sodium – 74811-65-7
日本AV性爱电影
十一月 29, 2020 11:42 下午
日本AV性爱电影
Stump Grinding Machine
十一月 30, 2020 11:14 上午
Stump Grinding Machine
Floor Drain And Cleanouts
十二月 1, 2020 4:25 上午
Floor Drain And Cleanouts
Featured Supplier
十二月 1, 2020 5:16 下午
China Featured
Manufacturing Equipment
十二月 2, 2020 1:03 下午
Manufacturing Equipment
Packing Sealing Adhesive
十二月 2, 2020 3:41 下午
Packing Sealing Adhesive
Absor??o de Ar Comprimido Secador de Fábrica
十二月 3, 2020 3:53 上午
Absor??o de Ar Comprimido Secador de Fábrica
2oz Skin Care Cream Glass Container
十二月 4, 2020 7:48 上午
2oz Skin Care Cream Glass Container
Angular Roll Hoop and Coil Bending
十二月 4, 2020 7:26 下午
Angular Roll Hoop and Coil Bending
Availiable Sup Stand Up Paddle Board
十二月 4, 2020 9:43 下午
Availiable Sup Stand Up Paddle Board
Bathing Trunks
十二月 5, 2020 5:36 上午
China Bathing Trunks
Hardware Pliers Price
十二月 6, 2020 1:02 下午
Hardware Pliers Price
Automatic block making machine
十二月 7, 2020 7:59 下午
Automatic block making machine
赌厅网投
十二月 8, 2020 3:22 上午
欧美牲交AⅤ
日本AV性爱电影
十二月 8, 2020 3:57 上午
澳门博狗