Ubuntu
VPN PPPTP
3.
VPN PPPTP
3.
ppptp
sudo apt-get install pptpd
. pptpd.conf
sudo nano /etc/pptpd.conf
, ip- VPN .
eth0. bcrelay eth0
localip remoteip, .
-
localip - ip VPN
remoteip - ip
pptpd-options
sudo nano /etc/ppp/pptpd-options
ms-dns Google (8.8.8.8)
, VPN . , , CHAP, . , name pptpd VPN . pptpd
VPN
sudo nano /etc/ppp/chap-secrets
# client server secret IP addresses
-
admin pptpd !qwe123 *
, :
admin -
pptpd -
!qwe123 -
, :
nano /etc/sysctl.conf
:
net.ipv4.ip_forward=1
VPN
iptable. firewall
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -o eth0 -j MASQUERADE
firewall arno-iptables-firewall.
sudo dpkg-reconfigure arno-iptables-firewall
TCP. 1723 vpn ppptp 3389 RDP ( ) .
UDP. 1723 3389.
ppp+
192.168.10.0/255.255.255.255
NAT
Firewall. .
VPN . 10.5 10.6
, . VPN.
Оставить комментарий