LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2010, 04:52 PM   #1
NiGhtMarEs0nWax
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
Force VPN


Hi there!

is there a way to force a VPN connection so that non-encrypted traffic is blocked. the aim is to set up a box that will use only VPN connections and block any traffic that is not connected.

Thank you.
 
Old 05-30-2010, 11:09 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
you can use iptables
Code:
iptables -A OUTPUT -o ppp0 -j ACCEPT
iptables -A OUTPUT -j DROP
iptables -A INPUT -i ppp0 -j ACCEPT
iptables -A INPUT -j DROP
ppp0 is vpn inerface here

Last edited by troop; 05-30-2010 at 11:10 AM.
 
Old 05-30-2010, 11:31 PM   #3
NiGhtMarEs0nWax
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
ooh thanks man! I've been meaning to learn IP Tables, for a few months now. Could you suggest a good beginners place to start?
 
Old 05-31-2010, 11:10 PM   #4
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
http://artoflinux.blogspot.com/2008/...beginners.html
http://forums.pcper.com/showthread.php?t=432469
 
Old 06-02-2010, 05:48 AM   #5
NiGhtMarEs0nWax
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks man, I've been looking for that second link for ages! i started to read it a couple of months back and forgot to bookmark it, it was very good. I'll give it a read later on this week. Thanks again!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Dynamic IP VPN between IpSec(OpenBSD) and Linux VPN software Peter_APIIT Linux - Server 2 04-09-2008 05:08 AM
Configure Linux VPN Server for a Windows VPN Client xbaez Linux - Networking 4 04-28-2006 03:29 PM
Linux VPN Software - How to Connect to a Windows VPN wfernley Linux - Software 2 02-07-2006 09:40 AM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:57 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