[Resolved] block internet connection when VPN is down

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Locked
Dannermax
OpenVpn Newbie
Posts: 3
Joined: Sat Oct 19, 2013 9:01 am

[Resolved] block internet connection when VPN is down

Post by Dannermax » Sat Oct 19, 2013 9:18 am

Hello all.

To be honest, i don't know if this is the right place to post this. But i have a server running Open Media Vault (debian) I have installed Openvpn, or as i remember, i have just copied the files to /etc/openvpn

Here, i have a couple of files from my VPN service provider:

*.crt and *.key files

But my problem is that my subscription to the vpn-service just ran out, and i thought that the connection to the "outside" would be blocked, if the openvpn program couldent connect. But this was not the case. It just connected through my "normal connection. I know this, because i did a:

curl checkip.dyndns.org:8245

And saw that the IP was from my ISP and not my VPN service, but my ISP!! :( SO! How do i set up openvpn, so that it blocks the connection totally, when the connection to my VPN service is unavailable?

And is there a way i can monitor, and i can get proof that all traffic goes through the VPN?

Thanks a bunch for reading my post.. hope i made sense!

Im a noob, but i can put in a few commands in putty, so i hope you will give me an explanation that i can understand :)


Thanks!!
Last edited by debbie10t on Wed Feb 19, 2014 8:59 pm, edited 1 time in total.
Reason: [Resolved / closed]

Dannermax
OpenVpn Newbie
Posts: 3
Joined: Sat Oct 19, 2013 9:01 am

Re: How to block internet connection when VPN service is dow

Post by Dannermax » Sun Oct 20, 2013 3:01 pm

Forgive me, for not making myself clear.

I want to be 100% sure that all outgoing traffic is routed through my VPN provider. Is it possible to, make openvpn, block all outgoing traffic, if the vpn server is unavailable? Perhaps enter the vpn servers dns and gateway into the openvpn settings.. But where??

Thanks again for your time...

I hope this time, I made sense.

Dannermax
OpenVpn Newbie
Posts: 3
Joined: Sat Oct 19, 2013 9:01 am

Re: How to block internet connection when VPN service is dow

Post by Dannermax » Mon Oct 21, 2013 7:04 pm

Hi Debbie.

Thanks for your reply.

I don't fully understand your explanation, but i was hoping that i could run a script, that disconnected from the internet when the VPN tunnel would fail.. but such a thing, probably don't exist.. If you come up with any ideas how i can do this, without setting up a DNS server at home, and ordering a fixed IP from my provider, i would be so happy! And again, then i should probably ask in another forum..!


Thanks again!

Locked