LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-30-2003, 08:43 PM   #1
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
Securing network by manually mapping mac to ip


I just found out that ipsec does not encrypt non ip traffic such as dhcp and arp. The output of tcpdump shows the machine ips and mac address in the network even with ipsec running. The recommendation was to use static addressess and manually map ip to mac address via arp. Does anybody know how to do this and do I have to do it for each client? Thanks.
 
Old 10-31-2003, 05:04 AM   #2
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
yes, in your dhcpd.conf file you'll have to add an entry for each MAC-IP combo. If you have lots of clients, a script will come in handy

Code:
host haagen {
   hardware ethernet 08:00:2b:4c:59:23;
   fixed-address 192.168.1.222;
}

haagen is just a hostname (can be anything u want but keep em different)
i pulled this from here:

http://www.sashanet.com/internet/lin...to/DHCP-4.html
This is how my school's dorm network is setup. Each student must register his/her computer my entering their email account and password then entering their MAC address. Lots of checking involved. They must be registered for the room to get a computer on the network and they must register the right MAC to get an internet connection. Even if they try to just hard code an IP that maches the network's subnet mask, they still wont get a connection. Because it must match in the router also.

do that for each client and get rid of the subnet range statements
 
Old 11-02-2003, 01:02 PM   #3
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Original Poster
Rep: Reputation: 30
Thanks for the reply, however, I have stopped using dhcpd and use static addresses now. It is not a big network. Just a home lan with 5 computers. Is there another way that the arp mac:ip address mapping can be done?
 
Old 11-04-2003, 10:26 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Read MAC/IP pairs from file, "man arp", option "-f"?
 
  


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
Securing network with DHCP gkhewitt Linux - Networking 8 12-19-2004 09:00 AM
Manually specify network interfaces for DHCP NetAX Linux - Networking 1 04-22-2004 04:03 AM
Mapping a network Bd22 Linux - Software 2 01-16-2004 02:24 AM
Securing Small Hospital Network Dsteve768 Linux - Security 10 10-13-2003 11:03 AM
physical scsi channel mapping to scsiX device node mapping, how to configure manually drthornt Linux - Hardware 3 02-09-2003 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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