Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-22-2007, 02:16 PM
|
#1
|
|
Member
Registered: Apr 2004
Location: Linux World
Distribution: Debian,Free BSD but Currently Using PCLinuxOS
Posts: 32
Rep:
|
Arp-poisoning help!
Hi allz,
I am client of a LAN network and our gateway is a Linux Machine.Some one locally is arp-poisoning our network and our network admin (dumb***)don't know what to do.He only gave us a windows self made service file which when windows boots starts.Now for my linux machine I have two more computer's behind a smoothwall firewall and for this he said to type arp - s {Ip Of Server} {Mac Address Of Server}.Now what can I do to avoid this arp poisoning on our network and how can I add a scipt to smoothwall which on boot get run this command.I know in redhat it rc.local but in smoothwall I can't find rc.local
|
|
|
|
07-22-2007, 11:27 PM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,591
|
Set the values in /etc/ethers; 'man ethers':
Quote:
/etc/ethers contains 48 bit Ethernet addresses and their corresponding
IP numbers, one line for each IP number:
Ethernet-address IP-number
The two items are separated by any number of SPACE and/or TAB char
acters. A # at the beginning of a line starts a comment which extends
to the end of the line. The Ethernet-address is written as
x:x:x:x:x:x, where x is a hexadecimal number between 0 and ff which
represents one byte of the address, which is in network byte order
(big-endian). The IP-number may be a hostname which can be resolved by
DNS or a dot separated number.
|
|
|
|
|
07-23-2007, 12:38 AM
|
#3
|
|
Member
Registered: Apr 2004
Location: Linux World
Distribution: Debian,Free BSD but Currently Using PCLinuxOS
Posts: 32
Original Poster
Rep:
|
What values should i set in this file
etc/ethers ???
|
|
|
|
07-23-2007, 12:44 AM
|
#4
|
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,591
|
Take the command your admin sent:
arp - s {Ip Of Server} {Mac Address Of Server}
And put in the file:
{Mac Address Of Server} {Ip Of Server}
|
|
|
|
07-23-2007, 12:49 AM
|
#5
|
|
Member
Registered: Apr 2004
Location: Linux World
Distribution: Debian,Free BSD but Currently Using PCLinuxOS
Posts: 32
Original Poster
Rep:
|
Ok,Should I have to remove arp -s before putting it in /etc/ethers ?
Last edited by zaheer; 07-23-2007 at 12:55 AM.
|
|
|
|
07-25-2007, 10:34 PM
|
#6
|
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,591
|
The two do the same thing. You can either change the local init file to run the command or add the MAC/IP to the ether file.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:59 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|