Ubuntu Networking :: Stop All Traffic If PPTP VPN Disconnects?
Feb 16, 2011
I use a PPTP VPN for privacy and bittorrent. I have been over all very happy, only taking about a 1/4 hit to my over all network speed. However, I recently downgraded my VPN package, and the new sever I connect through is sometimes unstable with a high throughput. Because of this I am trying to find a way to block ALL (HTTP, bittorrent, email, etc) outgoing network traffic when the VPN fails, and then resume the traffic when the VPN reconnects. Essentially forcing all data through the VPN, and creating the illusion of simply having no network connection to the outside world at all when the VPN is offline/re-connecting. This is opposed to the current situation when the VPN will fail, all my traffic will switch to direct (visible) access through my ISP, and the VPN will re-establish sometime later (2-3mins, normally. Unless I manually restart it sooner).
I have tried Google, but have only been finding information on configuring local web access outside of the VPN for the sake of speed. Information of which I cannot seem to find a way to apply to this.
View 1 Replies
ADVERTISEMENT
Sep 27, 2009
Recently I notice that when I'm connected to an vpn server (pptpd) and I'm using it as a default gateway my download and upload speed decreases almost to the half of the usual speed. I made a test using iptables in order to count how much GRE packets are generated (except the real traffic itself) in that way:
Code:
iptables -I INPUT -p gre -j ACCEPT
iptables -I OUTPUT -p gre -j ACCEPT
iptables -I FORWARD -s 172.16.10.101 -j ACCEPT
iptables -I FORWARD -d 172.16.10.101 -j ACCEPT
The first 2 rules match all GRE packets between the pptpd server and client, and the next rules - the traffic between the server and the client.
When I turn the counters to zero and begin to generate traffic (to browse, to download etc.) I see that the GRE packets are even more than these in the FORWARD chain.
So, my question is first of all is my test correct and is it true that so much gre traffic is being generated during the browsing (it becames clear that the traffic is double than if the pptpd wasn't used as a gateway) and if yes - can that traffic be reduced?
View 3 Replies
View Related
Sep 19, 2010
I know i posted this in general help, but the reason i got no answers was because it was the wrong spot. code...
View 2 Replies
View Related
Dec 12, 2010
I installed the PPTP Client [URL] and can successfully connect to my VPN (creates interface ppp0). The problem is, I'm trying to tunnel all of my traffic on my system through the connection. I've seen conflicting howtos and scripts including pptpclient's documentation (the ip-up and ip-down scripts don't work). How does one simply (even if I type it manually) tunnel the traffic?
System Info:
OS: Debian Squeeze, Kernel 2.6.32-5-686
GUI: Gnome (standard one from netisnt unstable install)
Main interface: eth1
PPTP interface: ppp0
View 1 Replies
View Related
Feb 21, 2011
everything works fine, clients can connect to the vpn server with no problems and they can ping local machines! but no internet access through the vpn connection unless i uncheck the default gateway option on my client machine which is not what i want. I want my clients to get my server's ip address. my server is behind a router (router's ip : 192.168.0.1 | server's local ip: 192.168.0.100) so i used localip 192.168.0.100 & remoteip 192.168.0.234-238 in pptpd.conf. it think there is something wrong with routing or firewall rules, because it seems that the DNS resolution works .. when i try to browse a website my browser says "Waiting for xxxxx.com..." and it stays on that stage forever ! the funny part is that google.com works fine (don't know how).
p.s :
* I have already opened the port in on my router. I even tried it locally to make sure that the router is not the problem here. * already added ms-dns 208.67.222.222 / ms-dns 208.67.220.220 to pptpd-options. (found another guide that suggested to do this, before adding these two lines even dns resolution was not working.)
View 1 Replies
View Related
Jan 7, 2011
I am trying to connect to a PPTP VPN at work, and I cannot accomplish that. Both server and client are using Ubuntu 10.10.
Code:
Jan 7 11:32:26 multicore-dev03 NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
[code]....
View 9 Replies
View Related
Mar 28, 2016
I am in serious situation involving PPTP protocol VPN in Debian 8 Jessie stable. I recently became a paid VPN subscriber. Using PPTP; Is there a way to automatically route all traffic through ppp0? Im getting the vpn service killed (ip address goes back to normal unmasked state) whenever there is a power outage (modem reset) and there are alot of those where I live, Im going to get astabilizer and I need a software solution for the situation as well. Theres gotta be a way to route all traffic through the VPN route ppp0 . I tried adding persist and maxfail 0 to the pptp config file but it did not do what i wanted.
Here's my peer configuration file :
pty "pptp blabla.net --nolaunchpppd"
name blablabla
password blablabla
remotename PPTP
file /etc/ppp/options.pptp
require-mppe-128
refuse-eap noauth
persist
maxfail 0
On a second note, its clear to add that I basically need a way to also auto load the line
pppd call blabla.net
and
route add default dev ppp0
On system startup by default so the computer does not use "Wired" connection ^at all^ when not through ppp0. Any other way of not losing VPN anonymity ever due to hardware malfunction.
Is there a way to do this? Ive looked on the net and everything seems like its either from the nineties or can fry my pc , Im no debian expert, less than a year at linux..
Need it to use wired only if ppp0 is being used so if its no vpn, no connection at all period,
View 1 Replies
View Related
Mar 13, 2010
i have a VPN server PPTPD on Centos 5.3
eth0: 62.2.2.x (public on the internet)
GW: 62.2.2.1 (cisco router)
i want to configure my ppptp server to allow users access internet with their own public ips of class 62.2.3.0 62.2.4.0 62.2.5.0
every time i configure my server all users can get thier IPs but they only go out with my server IP same as NAT not routing.
can you show me the proper configuration to make my users connect with public IP and have internet access. use specific DNS ( i did this but some users can not brows by DNS)
is there any way to specify an expired date for each pptp user.
View 1 Replies
View Related
Sep 17, 2009
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....
View 1 Replies
View Related
Aug 17, 2011
When I have Skype running (not in "Offline" mode) I often see it start eating about 0.5 kb/s of my traffic (so the network quota meter is dropping inevitably and internet stops soon). When I restart Skype or make it go offline-online, it starts forwarding it's things again soon.
How to have Skype available for chat, but not sapping my traffic (at least when "ppp4" is up)? I feel the majority of traffic spent by Skype is unrelated to my own activities (I mostly use text chat).
View 1 Replies
View Related
Sep 29, 2010
I need to set up my centOS computer as a firewall in my home network. Ive got 2 interfaces, eth0 and eth1. I want to allow and forward all traffic on eth0 and block all traffic on eth1 except ssh, ping(icmp) and DNS. How do I do this? Ive tried some editing in /etc/sysconfig/iptables but no luck.
View 1 Replies
View Related
Mar 15, 2011
I wanted to tell my server to block all traffic but US only traffic. So i followed this guide:[URL].. Now I know, it's the best way to help prevent hackers/crackers (doesn't matter to me what they are called. I just have to stop them). My server only deals with US clients anyways so might as well just start right there for my server's security before getting into the brute force and injection preventions. So I got it all done compiled everything moved to the proper directory. I then started to setup my iptables. Like so
Code: iptables -F INPUT
iptables -F OUTPUT
iptables -I INPUT 1 -s *.*.*.* -p tcp --dport 22 -j ACCEPT
iptables -I INPUT 2 -s *.*.*.* -p tcp -j ACCEPT
[Code]...
After seeing that i went digging in the code and figured it was something todo with memory allocation.
View 1 Replies
View Related
Oct 15, 2010
Trying to connect to my office as a PPTP client, I have setup my PPTP connection in Ubuntu 10.04, and the connection is active, as I can see from the top bar, and the output of ifconfig:
Code:
eth0 Link encap:Ethernet HWaddr 00:18:8b:b7:a3:ef
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:18
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:580 (580.0 B) TX bytes:580 (580.0 B)
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.0.166 P-t-P:192.168.0.254 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:108 (108.0 B) TX bytes:96 (96.0 B)
wlan0 Link encap: Ethernet HWaddr 00:19:d2:7a:96:e5
inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:d2ff:fe7a:96e5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8525 errors:0 dropped:0 overruns:0 frame:0
TX packets:8496 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5799296 (5.7 MB) TX bytes:1408867 (1.4 MB)
Now I want to access the folder named ABC on the remote PC with IP address of 192.168.0.12, with username USER1 and password PASS1.
View 2 Replies
View Related
Oct 25, 2010
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:
[Code]....
View 1 Replies
View Related
Jan 18, 2011
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
[Code]...
View 1 Replies
View Related
Apr 25, 2011
10.04 Ubuntu, Have tried every single combination of fields in the Advanced options area when setting up the VPN.
Code:
Apr 25 02:48:10 John NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Apr 25 02:48:10 John NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 12263
Apr 25 02:48:10 John NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
Apr 25 02:48:10 John NetworkManager: <info> VPN plugin state changed: 1
Apr 25 02:48:10 John NetworkManager: <info> VPN plugin state changed: 3
[Code].......
View 1 Replies
View Related
Apr 11, 2011
I just installed ubuntu 9.10 but there isn`t pptp VPN on Network manager. How can I install its packages?? I dont have any internet access on my linux because the only way to connecting to the internet is pptp VPN for me.
View 1 Replies
View Related
Mar 12, 2010
I setup a PPTP VPN connection in ubuntu 9.10 (x86_64) using NetworkManager. After enabling the VPN connection, I can browse web pages (it's perfect) but after a while the vpn connection is terminated! The following is my syslog after connecting and terminating:
Code:
Mar 12 22:10:10 amir-desktop NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Mar 12 22:10:10 amir-desktop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 2204
[Code]....
View 7 Replies
View Related
Sep 7, 2010
Having problems connecting to a work's VPN server.syslog output pasted here:
Code:
Sep 7 22:45:31 localhost NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Sep 7 22:45:31 localhost NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 1771
Sep 7 22:45:31 localhost NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
[Code]...
View 2 Replies
View Related
Sep 10, 2010
I got this working om my laptop but on my desktop this keeps going wrong, its an upgraded system to 10.04. Made a standard pptp connection using network-manager (and the connection is 100% fine, working on laptop and on windoooz machine) This is syslog any ideas, i reinstalled network-manager-pptp and pptp-gnome, but no go no go..
[Code].....
View 1 Replies
View Related
Jun 29, 2011
I am trying to connect my pptp client Linux to a pptp Linux server using modem but no success. I can only tweak ppp linux side Observing the following log I found it�s due to MPPE Support configuration mismatch in pppd, pppd (linux client) is refusing to accept MPPE encryption.
pppd[24545]: pppd 2.4.5 started by root, uid 0
chat[24547]: abort on (NO CARRIER)
chat[24547]: abort on (NO DIALTONE)
chat[24547]: abort on (ERROR)
chat[24547]: abort on (NO ANSWER)
chat[24547]: abort on (BUSY)
[Code]....
View 1 Replies
View Related
Jan 30, 2010
When I use all the band(transmission or browsing too many videos) it disconnects after few minutes and it doesn't connect again until I reboot.
lspci:
05:01.0 Network controller: RaLink RT2760 Wireless 802.11n 1T/2R Cardbus
Code:
sudo lshw -C network
*-network
description: Ethernet interface
product: 88E8056 PCI-E Gigabit Ethernet Controller
[Code].....
I could use N and WPA2 by following this thread. If it is possible to reconnect without reboot would be a possible workaround
(I use Ubuntu Karmic x_64)
View 4 Replies
View Related
Apr 17, 2010
My internet disconnect mabe every second hour and I have to restart the Ubuntu to get internet again. This started to happen when I bought a new wireless card called NETGEAR WG311v3. The live CD didnt have the drivers for it so I had to download XP drivers and install it with ndisrwapper.
So my question is how do I fix it? Do other network drivers crash with my current one? If so how can I see wish one to remove?
Note that my card works fine with XP on same computer.
View 5 Replies
View Related
Sep 16, 2010
I have loaded ubuntu Lynx 10.04.1 as a dual boot behind XP home. I have wireless connection to the XP os via netgear wireless G router and USB 2.0 adapter. The network connection works well with the XP side. When I boot into ubuntu I am sure I have configured the network properly with the wep key and password and the network signal is alive in the work bar at the top of the screen. When I open Firefox and try to browse to ,say, ebay it asks for the passphrase again then tells me that FF is in work offline mode. When I correct this I get asked for the pass phrase again and the connection is disengaged. It just keeps asking for the passphrase and disconnecting. When I reboot into XP everything works perfectly again.
View 9 Replies
View Related
Oct 4, 2010
I'm using an Acer Aspire One d250 running Netubuntu 10.04. The wireless connection to my router fails at random intervals and spends most of it's time trying to reconnect. It will occasionally ask me to input the password to the network, which is already entered in the dialog box, and clicking "connect" doesn't seem to make any difference. Also, when it is disconnected from the network, none of the other computers in the house, wired or wireless, are having any problems. If there is any more information I could provide,
View 1 Replies
View Related
Dec 2, 2010
I have experienced sudden wifi disconnects. My laptop fails to reconnect even after repeated attempts. It is only after a reboot that I am able to connect to the wireless.
View 1 Replies
View Related
Apr 21, 2011
I use ubuntu 10.10 and disconnects from wireless at random. after it reconnects the the connection speed is very slow and unstable. It's not my router because it works fine on my sister's netbook (which is also running ubuntu) and it worked fine when I was running windows? I'm not very advanced with linux so you know. I don't have IPv6 enabled. My laptop is an "Advent QRC430" my wireless card is QCOM Q802XKG Wireless Network Card.
View 1 Replies
View Related
May 2, 2011
I have a minor Internet issue. I have a static IP address with the modem acting as a gateway only to my ISP. My Ubuntu server hosts my public IP address and I use pppoeconf to connect. Every 3 hours I lose Internet. I have wrote a short script to reconnect. I doubt that it is my ISP trying to renew that often.
View 8 Replies
View Related
Feb 11, 2010
I tried to configure my vpn connection using pptp from the shell following following tutorial: [URL] now, if i use Code: pppd call novax to connect to my vpn i see following appearing in /var/log/messages:
Code:
Feb 10 21:11:57 reg-laptop pppd[2655]: pppd 2.4.5 started by root, uid 0
Feb 10 21:11:57 reg-laptop pppd[2655]: Using interface ppp0
Feb 10 21:11:57 reg-laptop pppd[2655]: Connect: ppp0 <--> /dev/pts/0
Feb 10 21:11:58 reg-laptop pppd[2655]: CHAP authentication succeeded
Feb 10 21:11:59 reg-laptop pppd[2655]: MPPE 128-bit stateless compression enabled
Feb 10 21:12:00 reg-laptop pppd[2655]: local IP address 10.243.249.22
Feb 10 21:12:00 reg-laptop pppd[2655]: remote IP address 10.243.249.20
verifying with ifconfig, my ppp0 ip is correctly set to 10.243.249.22 - i can also ping this ip but i tried to ping other ips in our network and i can't reach any of them - did i mess up the route maybe? Content of my /etc/ppp/ip-up.d/route-traffic:
[Code]...
View 1 Replies
View Related
Feb 19, 2010
I am running 64-bit 9.10 on a Acer Aspire 1810T. I can connect to the internet via both wifi and the Novatel U998 modem. I have a PPTP VPN that works correctly via wifi, but does not work via the modem. The obvious problem would be that the ISP is doing something... but I'm dual booting Windows 7, and the ISP's Windows based software is able to connect to the VPN without issue.
I'm running VMWare player to be able to access my required Windows apps, so I'm almost in a position to dump MS if I can get this VPN issue resolved.
View 1 Replies
View Related