[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vpn absichern




Am 21.06.2014 16:48, schrieb Chris:
On 06/20/2014 10:22 PM, casibu wrote:
Gibt es dazu eine saubere Lösung. Ich dachte daran das Default Gateway
zu löschen, weiß aber nicht ob das so funktioniert.
Mach doch einfach eine OUTPUT und ggf. FORWARD iptables Regel, die nur
Verbindungen zum VPN-Server zulässt.


Hallo Chris,

wie wäre denn folgende Lösung?

 iptables -F OUTPUT
 iptables -I OUTPUT -d VPNSERVER -p udp -j ACCEPT 
 iptables -I OUTPUT -s VPNIP -d VPNNETZWERK  -j ACCEPT 
 iptables -I OUTPUT -j DROP 

Dann müsste ich, nach einem disconnect vom WLAN, die iptables Regel erst löschen, dann mit wlan verbinden, und
dann erst wieder die vpn Verbindung aufbauen?



-------------------------------------------------
VFEmail.net
ONLY AT VFEmail! - Use our Metadata Mitigator™ to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
No Bandwidth Quotas!   15GB disk space!
Commercial and Bulk Mail Options!


Reply to: