LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-15-2018, 11:53 AM   #1
eriche
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
Question PPTP kill switch UFW


My situation looks like following
http://i67.tinypic.com/o51eag.jpg

I use a Raspberry with Raspbian to act as a PPTP VPN Proxy.

My problem is, that when the PPTP connection breaks, the Internetconnection stays active over my Internetprovider, I don`t want --> I need a Kill Switch

Code:
---------- situation when pptp is not running --> Internet transparent ----------
pi@raspberrypi:~ $ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    202    0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     202    0        0 eth0
Code:
---------- PPTP = active --> VPN OK ----------
pi@raspberrypi:~ $ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
191.101.59.4    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
191.101.59.60   192.168.1.1     255.255.255.255 UGH   0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     202    0        0 eth0
With the UFW Firewall I thought allowing the PPP0 interface is enougth - BUT it`s not working.
The Traffic gets routet via ETH0 - so I have to allow this interface too

If the PPTP connection breaks, I need a Kill Switch, that no routing to the Internet is done

Can a Route/Firewall geek help me please.
Attached Thumbnails
Click image for larger version

Name:	o51eag.jpg
Views:	12
Size:	142.2 KB
ID:	29184  
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] using switch in a function to call another function with a switch but it is not going into 2 switch ... BW-userx Programming 2 08-20-2017 11:47 PM
Linux PPTP client fails to connect to Microsoft ISA PPTP server dCriminal Linux - Networking 1 10-27-2009 12:33 PM
PPTP server sending the weird PPTP header data in 'Out-going-call-reply' varlu Linux - Networking 0 10-14-2009 06:53 AM
PPTP/PPP Can't get further than pptp server fishy Linux - Networking 2 07-02-2007 11:20 AM
LXer: Linux Configure point to point tunneling PPTP VPN client for Microsoft PPTP vpn server LXer Syndicated Linux News 0 06-13-2007 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration