====== Сервис PPTP ====== ===== Ubuntu ===== ===== FreeBSD ===== ==== Настройка pptp сервера ==== [gate:~] # cat /etc/ppp/ppp.secret user1 password1 [gate:~] # cat /etc/ppp/ppp.conf pptp: set ifaddr 192.168.100+X.1 192.168.100+X.10-192.168.100+X.254 enable mschapv2 set timeout 0 [gate:~] # pkg_add -r poptop [gate:~] # cat /usr/local/etc/pptpd.conf noipparam [gate:~] # cat /etc/rc.conf ... pptpd_enable="YES" [gate:~] # /usr/local/etc/rc.d/pptpd start ==== Настройка pptp клиента ==== [gate:] # cat /etc/ppp/ppp.conf pptpclient: set authname userX set authkey passwordX set timeout 0 set ifaddr 0 0 accept mschapv2 add default HISADDR alias enable yes [gate:~] # pkg_add -r pptpclient [gate:~] # rehash [gate:~] # pptp 172.16.1.254 pptpclient [gate:~] # ifconfig