LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-10-2013, 12:08 AM   #1
darqtanian
LQ Newbie
 
Registered: Aug 2011
Location: Philippines
Distribution: CentOS
Posts: 6

Rep: Reputation: Disabled
Question Help Me! Private network to access internet and not


Okay, I'm kinda confused with networking. Here's what I wanted to do..

I have a (DRBL) Ubuntu server that has 2 NIC.

eth0 - will have access to internet and local network (10.160.1.10/24)
eth1 - will be my private network (192.168.101.254/24)

eth1 is NAT to eth0 so that it will have internet access. I setup a DRBL environment and configured that the (DHCP) IP range between 192.168.101.10-20.24 will be assigned to Linux clients.

What I want to do is.
192.168.101.10-20 = for Linux machines, should have access to internet. (ive already done this)

192.168.101.30-40 = for Windows machines, should not have access to internet but to local network only.

How can I configure this correctly?
Please help me..
 
Old 10-10-2013, 03:36 AM   #2
whytigr
LQ Newbie
 
Registered: Oct 2012
Posts: 8

Rep: Reputation: Disabled
split the 192.168.101/24 into smaller nets...

Maybe try a /28 instead? This will give 14 addresses per net (close to your 10). Then you can use vde2, openvswitch or another method to create virtual NICs/devices. Use DHCP to assign addresses. You could then use a bridge and/or iptables to provide needed network access or fencing.

Another option is Ethernet aliasing and iptables and/or static routing.

vde2 is a good option as traffic can easily be encrypted through tunneling as well as allowing for disparate networks or non-cloud-attached hosts access over your favorite connector (ssh, rsh, http tunnels and even connections through DNS services).

Hope that helps get you on your way. There are other ways to accomplish your goals, but these are fairly easy to implement and provide some versatility for you too. Happy researching... It's a road paved with frustration, time sinks and ultimately happiness and fulfillment.

~~Tigr~
 
  


Reply

Tags
nat, networking, private, ubuntu


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
VPN over Public interface then access to Private Network stuartornum Linux - Networking 3 10-20-2011 02:09 AM
how to make the internet go through the firwall to private network!!! Shadowtrooper Linux - Newbie 9 05-17-2011 06:08 AM
How can I access websites from private network alanvee Linux - Networking 1 02-04-2006 11:05 AM
Public Access of Internet using Private IP manas484 Linux - Security 1 01-17-2006 05:09 AM
No Internet Connection From Private Network jrgalan Linux - Networking 3 07-31-2003 08:19 PM

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

All times are GMT -5. The time now is 11:12 PM.

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