Hello !
I try to connect m0n0wall pptpd from ubuntu ,but it's really difficulty from me.
From windows XP the vpn working with no problem, but i hasn't got just vista and ubuntu.
My working configs:
from:
http://www.cyberciti.biz/tips/howto-configure-ubuntu-fedora-linux-pptp-client.html$ sudo apt-get install pptp-linux network-manager-pptp
1. PPTP server name: pptp.vpn.nixcraft.com
2. VPN User Name : vivek
3. VPN Password: VpnPassword
4. Connection name: delhi-idc-01
Open /etc/ppp/chap-secrets file:
# vi /etc/ppp/chap-secrets
OR
$ sudo vi /etc/ppp/chap-secrets
Append line as follows:
vivek PPTP VpnPassword *
Save and close the file.
Create a connection file called /etc/ppp/peers/delhi-idc-01 (replace delhi-idc-01 with your connection name such as office or vpn):
# vi /etc/ppp/peers/delhi-idc-01
Append configuration data as follows:
pty "pptp pptp.vpn.nixcraft.com --nolaunchpppd"
name vivek
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam delhi-idc-01
Close and save the file. Where,
Route traffic via ppp0
To route traffic via PPP0 interface add following route command to /etc/ppp/ip-up.d/route-traffic
# vi /etc/ppp/ip-up.d/route-traffic
Append following sample code (modify NET an IFACE as per your requirments):
#!/bin/bash
NET="10.0.0.0/8" # set me
IFACE="ppp0" # set me
#IFACE=$1
route add -net ${NET} dev ${IFACE}
Save and close the file:
# chmod +x /etc/ppp/ip-up.d/route-traffic
Task: connect to PPTP server
Now you need to dial out to your office VPN server. This is the most common use of pppd. This can be done with a command such as:
# pppd call delhi-idc-01
Result:
ifconfig
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.0.0.224 P-t-P:10.0.0.223 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1496 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2065 (2.0 KB) TX bytes:1803 (1.7 KB)
/var/log/syslog
Jan 28 11:19:27 suti-laptop pppd[4972]: pppd 2.4.4 started by root, uid 0
Jan 28 11:19:27 suti-laptop pppd[4972]: Using interface ppp0
Jan 28 11:19:27 suti-laptop pppd[4972]: Connect: ppp0 <--> /dev/pts/2
Jan 28 11:19:27 suti-laptop pptp[4974]: anon log[main:pptp.c:267]: The synchronous pptp option is NOT activated
Jan 28 11:19:27 suti-laptop pptp[4977]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Jan 28 11:19:27 suti-laptop pptp[4977]: anon log[ctrlp_disp:pptp_ctrl.c:738]: Received Start Control Connection Reply
Jan 28 11:19:27 suti-laptop pptp[4977]: anon log[ctrlp_disp:pptp_ctrl.c:772]: Client connection established.
Jan 28 11:19:28 suti-laptop pptp[4977]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Jan 28 11:19:28 suti-laptop pptp[4977]: anon log[ctrlp_disp:pptp_ctrl.c:857]: Received Outgoing Call Reply.
Jan 28 11:19:28 suti-laptop pptp[4977]: anon log[ctrlp_disp:pptp_ctrl.c:896]: Outgoing call established (call ID 0, peer's call ID 48372).
Jan 28 11:19:28 suti-laptop pppd[4972]: Warning - secret file /etc/ppp/chap-secrets has world and/or group access
Jan 28 11:19:28 suti-laptop pppd[4972]: CHAP authentication succeeded
Jan 28 11:19:28 suti-laptop pppd[4972]: MPPE 128-bit stateless compression enabled
Jan 28 11:19:30 suti-laptop pppd[4972]: Cannot determine ethernet address for proxy ARP
Jan 28 11:19:30 suti-laptop pppd[4972]: local IP address 10.0.0.224
Jan 28 11:19:30 suti-laptop pppd[4972]: remote IP address 10.0.0.223
daYna