Hi, and welcome to LQ!
First I have to say your question is not very clear, far too little information. There is a good guide
here how to ask questions.
We need to know what distro, what hardware, what kind of addressing - dhcp or static? - do you get an ip at all, firewall configuration, nameserver, external firewall/how is your network setup. "pptp" - is it used for your internet connection, or is it a vpn connection that fails?
Just a few things to start with. :-)
A few quick checks, in a terminal:
1) "ping 8.8.8.8" - if that works, try "ping www.yahoo.com". If that fails then it's a problem with nameserver.
2) "sudo service iptables stop" - if it works after that it's a firewall issue.
Start firewall directly, you don't want to be unprotected! "sudo service iptables start"