Stopping my network traffic when my VPN connection disconnects
I use a VPN service for my internet. I am hoping to make it so when my connection to my VPN service drops out, my computer does not allow anymore network traffic in or out until it is connected to my VPN service again. In Windows 10 Home I was able to do this using the Windows Firewall. I was wondering if anybody knows if it can be done in Ubuntu's firewall 'ufw'?
I have read in the manual for it something that looks like something I may be able to use to do it. The manual indicates (to type this into Terminal):
By default, ufw will apply rules to all available interfaces. To limit
this, specify DIRECTION on INTERFACE, where DIRECTION is one of in or
out (interface aliases are not supported).
I am confused because when I look at the connection information from the network icon in the top right hand corner of Ubuntu's desktop, there is no Interface for my VPN connection. Windows 10 Home treats VPN connections virtually as an interface, but it looks to me as though Ubuntu considers only physical interfaces as true.
Can someone please help me with setting this up?
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Not Telling
- Solved:
- Last query:
- Last reply: