LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-07-2004, 04:35 PM   #1
body00
LQ Newbie
 
Registered: Sep 2003
Location: Romania
Distribution: Mandrake
Posts: 5

Rep: Reputation: 0
network limiter


hello.. i have a 9.2 mandrake on command, shareing the internet in the network. I have soon merged with another network. My network shares internet by DHCP... How can i restrict the net just for my ips ???
i have
192.168.0.1 -> the server
192.168.0.252-255 -> my computers
192.168.0.x -> the others who should not get any access to the server

how can i do it ??? please reply i am in a big dilema here
 
Old 05-07-2004, 05:13 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You should modify the netmask for masquerade to cover only your machines.
252 is 11111100
255 is 11111111
so your netmask should probably be 255.255.255.252 with network 192.168.0.252

OR
You can give the second network a different addresses like 10.0.0.x and not add it to your firewalling script.
 
Old 05-07-2004, 05:20 PM   #3
body00
LQ Newbie
 
Registered: Sep 2003
Location: Romania
Distribution: Mandrake
Posts: 5

Original Poster
Rep: Reputation: 0
hmmm

will this dhcp do the work ???
or they'll still have access to the internet ???

------------------------------------------------------------------

ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
# default gateway

option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

option domain-name "b.astral.ro";
option domain-name-servers 194.102.255.2;

range dynamic-bootp 192.168.0.251 192.168.0.253;
default-lease-time 43200;
max-lease-time 21600;


}
host Pcd {

hardware ethernet 00:02:44:0F:3C:68;
fixed-address 192.168.0.253;

}

host Contele {

fixed-adress 192.168.0.252;

}
 
Old 05-08-2004, 06:57 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It should be just fine. But remember not allow the new network to use the same DHCP configuration.
 
Old 05-09-2004, 08:14 AM   #5
body00
LQ Newbie
 
Registered: Sep 2003
Location: Romania
Distribution: Mandrake
Posts: 5

Original Poster
Rep: Reputation: 0
:(

anyone in the network can access the net if they put my server as gateway and dns provider. what can i do to restrict them ??? i mean, even if they don't use my dhcp server they can use me as a gateway. PLEASE HELP
 
Old 05-09-2004, 11:10 PM   #6
body00
LQ Newbie
 
Registered: Sep 2003
Location: Romania
Distribution: Mandrake
Posts: 5

Original Poster
Rep: Reputation: 0
:)

anyone with ideas ?

IDEAS AT LEAST are welcomed.... thank you !
 
Old 05-10-2004, 04:53 AM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Re: :)

Not exactly...If your firewalling masquerade script will only forward connection from a range of addresses, even if the other machines will have your gateway set as theirs, they won't have Internet connection.

To makes things more secure (someone can set an IP manually), you should think about filtering using MAC address (still can be spoofed, but it's harder).
 
  


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
bandwith limiter Derrick3 Linux - Newbie 4 09-17-2005 12:24 PM
Network Limiter? brownjag Linux - Software 2 06-12-2005 07:15 PM
bandwidth limiter Lleb_KCir Linux - Software 1 04-19-2005 10:07 PM
Network download limiter dude_011 Linux - Networking 1 06-29-2004 03:37 AM
bandwith limiter biscristi Linux - Software 0 03-09-2004 02:14 PM

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

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