If you are using Linux or other UNIX like operating systems and you want to create VPN connection to Company's network, you can use these sample configurations:
In /etc/ppp/chap-secrets:
# for PPTP server (Windows VPN server) without domain
your_username server_name "your_password" *
# for PPTP server with domain
your_domain\\your_username server_name "your_password" *
To connect to PPTP server without domain
In /etc/ppp/peers/server_name:
pty "pptp server_name --nolaunchpppd"
require-mppe-128
lock
noauth
nobsdcomp
nodeflate
name chaitat
remotename server_name
ipparam server_name
To connect to PPTP server with domain
In /etc/ppp/peers/server_name:
pty "pptp server_name --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name your_domain\\your_username
remotename server_name
ipparam server_name
refuse-eap
refuse-chap
refuse-mschap
require-mppe-128
You might also have to do a post configuration after connecting by adding a route to Company's internal ip addresses:
# route add -net 10.10.0.0 netmask 255.255.0.0 gw [the ip address of the gateway you are connected to]
e.g. route add -net 10.10.0.0 netmask 255.255.0.0 gw 10.10.13.10
1 comments:
I use the following route command and it works too.
# route add -net 10.10.0.0 netmask 255.255.0.0 dev ppp0
Post a Comment