LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-21-2014, 12:35 PM   #1
suzanne_trump
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Rep: Reputation: Disabled
Linux routing/iptable rules


I am not sure whether this is a question of routing table, or iptables or both.

I have a working OpenVPN connection from a virtual linux machine to a server in another country. I followed a guide and ip-forwarding is also set-up and working, in that I can access the server-side internet from the virtual linux client.

I wish to use my virtual linux machine as the default gateway for a Windows computer on the LAN in my home, and make it impossible for anyone to tell I am on a VPN. My Windows machine and the virtual linux machine are both connected to a router.

So if the OpenVPN connection drops on the linux machine, we want our rules to be such that no packet is sent to the (normal, non-VPN) internet from my Windows machine.
What is the simplest way to achieve this?
Thanks

Last edited by suzanne_trump; 06-21-2014 at 12:36 PM.
 
Old 06-22-2014, 05:57 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Set your Windows to have the virtual linux as default gateway.
On linux, set the vpn tunnel as default gateway.

I think that should be all.
 
  


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
[SOLVED] What's wrong with these iptable rules? dev102 Linux - Security 7 11-14-2011 09:01 PM
IPTable rules RecoilUK Linux - Security 1 05-27-2005 08:25 PM
Help with IPtable Rules aqoliveira Linux - Security 3 12-10-2003 11:00 AM
iptable-rules for eDonkey? grubjo Linux - Networking 2 08-01-2002 07:38 AM

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

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