Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using a VPN (openvpn) to connect to the internet 24/7 ,I am also runnning a bit torrent client 24/7, there are times when my external VPN provider will disconnect for a few minutes, then recconect again as it has been set up to recconect automatically.
What happens during those minutes that the VPN disconnects? Do the applications connected to the internet stop too, or do these applications just carry on as normal passing all traffic through my ISP internet connexion instead of the VPN?
Example of what I see in the shell when openVPN disconnects (notice, first two lines, process killed by expiring key at 7:31:38, then restarts at 7:32:22):
----------------------------------------------------------------------
Sun Mar 9 06:33:22 2008 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES2
56-SHA, 2048 bit RSA
Sun Mar 9 07:31:38 2008 TLS: tls_multi_process: killed expiring key
Sun Mar 9 07:33:22 2008 TLS: soft reset sec=0 bytes=406074373/0 pkts=914720/0
Sun Mar 9 07:33:31 2008 VERIFY OK: depth=1, /C=US/ST=OR/L=Halfway/O=VPN__LL
C/CN=VPN__LLC_CA/emailAddress=pki@*****.com
Sun Mar 9 07:33:31 2008 VERIFY OK: depth=0, /C=US/ST=OR/L=Halfway/O=VPN__LL
C/CN=server/emailAddress=pki@*****.com
Sun Mar 9 07:33:49 2008 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
-----------------------------------------------------------------------
What happens during those minutes that the VPN disconnects? Do the applications connected to the internet stop too, or do these applications just carry on as normal passing all traffic through my ISP internet connexion instead of the VPN?
If you don't want apps to route traffic over your ISP's connection (no x there) I hope you blocked traffic that way. You can easily find out what decisions are allowed for traffic by checking your routes (route, ip) and see where traffic goes effectively by using iptables (-j LOG) rules or sniffing traffic with say tcpdump or wireshark (preferably with a BPF filter so you only log what you want to see).
I am relatevely new to Linux so I would have to learn iptables and all the other stuff you mention, if the apps get disconnected when the VPN is disconnected then it would not be necessaty for me to invest the time learning all that.
It is good to know I can apply rules to avoid routing traffic through my ISP, which I wasn't aware of, but I will only get into that once I find out that I have to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.