1. Instalirao ovaj paket:
pptp-linux_1.7.0-2ubuntu2_i386.deb
2.kreirati fajl /etc/ppp/peears/bnetcarnet
U njemu napisati sljedece:
pty "pptp zg.xcarnet.xnet.hr --nolaunchpppd"
file /etc/ppp/options.pptp
remotename PPTP
#persist
#defaultroute
nodefaultroute
usepeerdns
#debug
name
gbegonja@grad.hr
ipparam bnetcarnet
3. U fjalu /etc/ppp/options.pptp treba dodat znak ljestve "#" ispred require-mppe-128.
Ovo je moj options.pptp :
###############################################################################
# $Id: options.pptp,v 1.1 2005/02/18 01:40:23 quozl Exp $
#
# Sample PPTP PPP options file /etc/ppp/options.pptp
# Options used by PPP when a connection is made by a PPTP client.
# This file can be referred to by an /etc/ppp/peers file for the tunnel.
# Changes are effective on the next connection. See "man pppd".
#
# You are expected to change this file to suit your system. As
# packaged, it requires PPP 2.4.2 or later from
http://ppp.samba.org/
# and the kernel MPPE module available from the CVS repository also on
#
http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.
###############################################################################
# Lock the port
lock
# Authentication
# We don't need the tunnel server to authenticate itself
noauth
# We won't do EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
refuse-eap
refuse-chap
refuse-mschap
# Compression
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate
# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose with of the following sections you will use. Note that MPPE
# requires the use of MSCHAP-V2 during authentication)
#
http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
# {{{
# Require MPPE 128-bit encryption
#require-mppe-128
# }}}
#
http://polbox.com/h/hs001/ fork from PPP project by Jan Dubiec
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
# {{{
# Require MPPE 128-bit encryption
#mppe required,stateless
# }}}
4. u fajlu /etc/ppp/pap-secrets napisati na kraju svoje korisnicko ime i lozinku ovako nekako:
gbegonja@grad.hr PPTP lozinka
5. kreirati fajl(skriptu) /etc/ppp/ip-up.d/rutiraj
Iz terminala pokrenuo naredbu: sudo chmod +x /etc/ppp/ip-up.d/rutiraj
U njoj napisao sljedece:
route del -host $5 gw 0.0.0.0 dev $1
route add -host $5 gw 127.0.0.1 dev eth0
route add default gw $4
route del default gw 127.0.0.1
6. kreirati fajl(skriptu) /etc/ppp/ip-down.d/vrati-staro
Iz terminala pokrenuti naredbu: sudo chmod +x /etc/ppp/ip-down.d/vrati-staro
U njoj napisao sljedece:
route del -host $5 gw 127.0.0.1 dev eth0
route add default gw 127.0.0.1
7. Iz terminala pokrenuo naredbu: sudo pon bnetcarnet
I izađe mi ovo:
/usr/sbin/pppd: In file /etc/ppp/peers/bnetcarnet: unrecognized option ' '
Problem????