LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-14-2010, 06:37 PM   #1
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
Isolating private networks?


Hi group,

Please forgive me for being dumb. I need to isolate two private networks. One of them is a VPN coming in from the outside. Like so:
Code:
Clients            Internet---+        Private Network
                              |
192.168.1.1-+                 |      + 172.16.1.1
            |                 |      | 
192.168.1.2-+-- OpenVPN -- Server -- + 172.16.1.2 
            |                        |
192.168.1.x-+                        + 172.16.1.3
I need to keep 172 network separate from the 192 network. Should I use iptables?? Or is there another way??
 
Old 03-14-2010, 06:52 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
If you have two nic cards it ought to be separate by default. I hope I'm not wrong on that.
 
Old 03-14-2010, 07:41 PM   #3
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
172.168.1.1, 172.168.1.2, 172.168.1.3 - one network, it is not 3 different networks

192.168.1.1, 192.168.1.2, 192.168.1.x - as well one network.

So, can you please, tell more clearly, what do you want to separate from?
 
Old 03-14-2010, 09:56 PM   #4
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by nimnull22 View Post
172.168.1.1, 172.168.1.2, 172.168.1.3 - one network, it is not 3 different networks

192.168.1.1, 192.168.1.2, 192.168.1.x - as well one network.

So, can you please, tell more clearly, what do you want to separate from?
I know that they are two networks. I want to keep the 192 network from accessing the 172 traffic, but stilll allow all users access to the internet.

I can't use two NICs because the 192 traffic is coming in on VPN from the internet.

I tried this:
iptables -A INPUT -s 192.168.0.0 -d 172.0.0.0 -j DROP
and am still testing not sure if it works or not just yet.
 
  


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
please help nat router to two private networks jwebby Linux - Newbie 2 02-09-2010 10:12 AM
How to connect two private networks? veeruk101 Linux - Networking 10 07-17-2007 06:57 AM
how to configure Private & Public Networks naresh Linux - Hardware 0 11-18-2004 12:49 AM
Multiple private networks interconnection via internet cardner Linux - Networking 0 01-14-2002 02:15 PM
VPN - Virtual Private Networks? bnicolas Linux - Newbie 1 08-16-2001 04:24 PM

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

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