Networking :: PPTP-vpn On Debian, Can Connect But No Internet Access?
Jan 7, 2011
I have started a newly started a VPN-service with some friends and are offering both OpenVPN and PPTP-vpn.The OpenVPN works perfectly, but we have some problem with the PPTP.It is possible to connect to the VPN, but once connected you can't get any type of access to the outside world ( the interner ).I've googled (Ok, not I, but the tech-guy has) and havn't found any solution so therefor we try here.We are running Debian 5.0 on a XEN VPS.On the machines we've tested OpenVPN works like a charm.
I'm running an own PPTP Server, but I can't get it to access the internet. All my PCs at home run in the 192.168.0.0/24 net, the PPTP Server has local IP192.168.0.5 and remote IP 192.168.0.80-99. The router to the internet is at 192.168.0.1, and the IP of eth0 on the machine where the pptpd runs is 192.168.0.4. I want to be able to connect to the internet trough that VPN and access my local LAN servers (which works fine so far). I can ping internet and local IPs successfully, but can not access them with a browser, or connect to them in any other way. I have 'accepted' all in/output and forwards.
I am running a Squid proxy on the same machine, and if I do: iptables -t nat -A PREROUTING -j REDIRECT -i ppp0 -s 192.168.0.0/24 -p tcp --dport 80 --to-port 3128 I can access the internet through Squid, but of course Jabber/ICQ etc. Won't work then because it just refers port 80. But I want the PPTP Clients to connect to the internet directly, if I don't use that rule it's not possible to load any pages. But pinging works all the time. DNS is also working fine, but I can't even access webpages via IP directly. How can I allow the PPTP IPs 192.168.0.80-99 to get direct access to the Internet with Iptables?
I'm trying to connect to a Microsoft ISA PPTP server from my Linux box. The box I'm connecting from is itself a router. I have no problem connecting a Windows XP machine to the VPN via this machine. This is fine, but I would rather connect via the Linux machine, giving me far more advanced routing options (i.e. no to send every packet from the XP box completely unnecessarily via the PPTP tunnel). The Linux router is running Debian Lenny.
I've checked iptables. There were initially some issues. I've fixed those.
Invoking pppd from the console, I can see that authentication succeeds, but then some negotiation goes wrong and the server terminates the connection. Here's the output from pppd, with the more sensitive stuff removed:
Code: <hostname>:~# pppd call <peer> nodetach debug using channel 19 Using interface ppp0 Connect: ppp0 <--> /dev/pts/2 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe3e45f75> <pcomp> <accomp>] code....
since installing opensuse 11.2 KDE, is that I can connect to the local resources when I'm not connected via the pptp vpn to the Internet but as soon as I establish an Internet connection, I cannot. Under Windows and other distros I've tried, this has never been an issue, usually I can connect to either local or Internet resources, interchangeably. In a nutshell, I don't know how to troubleshoot this.
At work, we (like almost everyone) are still full-on windows. I am currently trying to get away from windows because I am not a fan. my current windows machine (different from my Ubuntu machine) is accessing the wireless network fine, and there are no obvious problems there. Also, my Ubuntu machine can access my wireless network at home, so I know there are no driver issues. I set up the connection for the Ubuntu machine, and it seems to be connecting OK. I can ping internal IPs and by all statuses, the connection to the router is functioning. However, when I attempt to load a web page or ping a domain or external IP, it fails. I tried to ping the IP, thinking if that worked, it's probably the DNS, but pinging both domains or IPs fails. I have looked around at forums and posts, but none of them seem to match my issue (that's probably not true, but I am struggling to see the commonality).
Here are the results of "netstat -r":
Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.45.0 * 255.255.255.0 U 2 0 0 wlan0 link-local * 255.255.0.0 U 1000 0 0 wlan0 default 192.168.45.5 0.0.0.0 UG 0 0 0 wlan0
And here is "ifconfig":
wlan0 Link encao:Ethernet HWaddr 74:f0:6d:XX:XX:XX inet addr:192.168.45.49 Bcast:192.168.45.255 Mask:255.255.255.0 inet6 addr:fe80::76f0:6dff:XXXX:XXXX/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
I have had a heck of a time trying to get my laptop running ubuntu to connect to my home network. I have managed to get it to work at my university which would seemingly be more difficult than getting it to work at home, so I know for a fact it isn't a hardware or driver issue. If I try to connect via ethernet cable from my router, it detects that I connected the cable but says "disconnected" and never lets me connect. If I SKIP the router and go from my modem directly to my laptop via ethernet cable it works great.
Using the wireless network tool I can see all of the wireless connections in my area. When I go to connect to my network it prompts me for the WEP key and when I enter it and hit connect it just keeps cycling and eventually times out and finally again prompts me for my WEP key. I know this network works as it works just fine on my Windows 7 partition. Another interesting note - both my wireless and ethernet connections both worked flawlessly and stoopid easily on the live cd but don't after the full install.
If I manually enter in the information for my wireless through IPv4 settings and enter in the Address,Netmask and gateway I can connect to my network - but then I have no active internet connection. Same deal with my wired connection. Is this because choosing this manual method grays out the DHCP?
Recently I had installed Ubuntu 10.04 in which I had connected to the internet by way of terminal (pppoeconf) and I could access any site with ease.But one fine day suddenly I could not access the net, I try to locate the notification icon (network manager),but could not find it.I did this and that,googled it trying to find the solution but alas to my disappointment I had to format it.
After reinstallation of Ubuntu I connect the internet by way of editing connection on panel and i could access the net. The problem is that I could not access some site especially org site e.g Home - Desiring God so can anybody guide me in how to connect in most better way.
This questions is a little complex but here goes.at a central HQ I have a windows server 2008 R2 machine running routing and remote access. At my home office i have a class C lan with a Fedora 13 machine. I can get fedora 13 to connect using pptp no problem. I have my router running tomato set to redirect all traffic to teh 10.0.0.0 network to my linux server. My questions is how to I make the fedora 13 machine pass all the traffic from my network with destination 10.0.0.0 over the vpn tunnel? so for instance if i ping anything 10.x.x.x from any machine on my network it will find it and reply?
I'm trying to connect to [URL] but it will not work no matter what settings. I have ticked MPPE, configured gateway, username, MSCHAP and MSCHAPv2 are ticked, using 128-bit encryption. I have tried to forward port 1723 and 1127 in my router, I have also ticked "enable PPTP PassThrough" in the router. I cannot telnet to vpn.itshidden.com. This is on Ubuntu Lucid. These are my logs from an unsuccessful connection attempt:
I am having trouble connecting back to my vpn at work while I'm at home. Mainly need to get our local svn repos for at home development. I successfully connected to the vpn following this [URL]..I am running Lucid Lynx 64bit and I followed the 9.10 section of the tutorial on setting up PPTP connection.
It worked fine. Then I walked away from my computer and it was disconnected when I came back 2 hours later. I was unable to connect back to it. I used my laptop which is running windows 7 and it connected just fine. So, now I am unable to connect to it and have no idea why. I viewed my system log and don't know what to do with the information. Could someone help me out on this.
Jan 18 18:51:43 david-desktop NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'... Jan 18 18:51:43 david-desktop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 5532 Jan 18 18:51:43 david-desktop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
I have 2 pcs at home. I dont have a switch so I can connect only one PC at a time to my adsl router/modem for internet access. In the past I had successfully connected the two PCs (NIC to NIC) to each other using the same ethernet cable which was supplied with my dlink adsl modem.
Recently the motherboard of on of my PC went bad so I replaced it with a new one. The problem is when I connect the two using the same Ethernet cable they won't connect. The lights on the Ethernet port won't light up. I can still connect both of them to the adsl router (NIC to Router) (one at a time).
I am a newcommer to Centos. I should connect to internet via a pptp vpn connection. I created the connection in "network connections". In other distrows I could connect to created pptp vpn connection simply by clicking on network-manager-applet and selecting the connection, but there is no network-manager-applet in Centos. Is there any way to connect to the vpn connection I created or I should go to do it by manually editing config files?
I'm trying to use a vpn server which uses pptp. I've set up pptp as per the Debian Howto and it seems to be working, but I'm not actually acessing the net via the server.Not sure what info would be useful but here are route -n and ifconfig.Can anyone suggest what is wrong here, and how to test if the vpn link is actually working?
I've got a FC PPTP server up and running but can't connect to it using VPN. I'm using NetworkManager but the connection fails each time. On the server, I'm seeing the following in the /var/log/messages:
May 8 16:37:05 li99-23 pppd: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version 2.4.3, this is 2.4.4 May 8 16:37:05 li99-23 pptpd: GRE: read(fd=6,buffer=8059780,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Ive checked that the name,passwords all match, which they do. Has anybody seen this before ?
I'm trying to get a pptp server up and running. The server starts just fine, but encounters errors when a client tries to connect.
CTRL: I wrote 32 bytes to the client. Dec 29 23:27:48 frankenstein pptpd: CTRL: Sent packet to client Dec 29 23:27:48 frankenstein pptpd: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
I assume the failed read line is the culprit. I am currently running on a test machine. There is no firewall. I read on this error points to a firewall misconfiguration, but there isn't one.
I've setup a PPTP server on my ubuntu 11.04. PPTP settings seem to be OK and I can connect to my machine from a Windows PPTP client. But then I dont have access to Internet from my Windows machine. Authentication is successful and I can see GRE traffic to my PPTP interface on my Ubuntu, but I can't reach any host (including Internet) after my Ubuntu machine. I suspect this is a routing or NATing issue.
I'm looking for a way to tunnel the internet connection of my Ubuntu VPN server to the remote client.The server is running Ubuntu Server 9.04 64-bit, and has a fully functional installation of Poptop and Squid. Is there a way I can get internet requests from the VPN client to tunnel over the VPN and be connected through Squid? I'd think this would be a iptables thing, but I'm not sure.
I'm trying to establish a connection to my ISP which uses PPTP protocol and a VPN server. The deivce I got from my ISP is a modem, not a router. The problem is my computer is unable to communicate with the ISP VPN server.
P.S Here are the instructions for Windows XP which work: http://portal.bnet.hr/ZG/windows-xp.htm
I have updated the system this morning and the vpn stopped working!It gives me an error: invalid secrets.I use network manager to connect to a pptp vpn connection, I use fedora 12.Does anyone know the problem?
I followed (or at least tried to follow) tutorials on doing this. I installed network-manager-pptp and tried to configure network manager to connect to a VPN. In the settings when I select MPPE with 128-bit encryption, after I've selected it and applied it, I check the settings and it's invariably unchecked. I tried using KVpnc after getting frustrated with network manager, and I can't seem to get that working either. I've been trying to search for info on this, and I can't seem to find anything on why I can't select MPPE with 128-bit encryption. That seems like it might be why I'm unable to connect to the VPN?
I have servers in remote locations where I have no control over the network routers or firewalls. I need to have a VPN connection to my servers.Is there a way to create a PPTP VPN connection automatically? I don't want to initiate it, I just want it to phone home, and keep phoning home if the connection is dropped.
I successfully installed openvpn and networkmanager openvpn plugin. Then I successfully added a PPTP vpn connection by networkmanager vpn tab which name is "vpn1". But now I don't know how to connect to this PPTP vpn connection. I tried bellow command but no luck. openvpn --config vpn1.config