LinuxQuestions.org
Help answer threads with 0 replies.
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 11-17-2003, 11:12 PM   #1
kahpeetan
LQ Newbie
 
Registered: Nov 2003
Distribution: redhat
Posts: 17

Rep: Reputation: 0
land attack on DHCP


I has this alert on my acid console today:

url[cve][icat][snort] BAD-TRAFFIC same SRC/DST

looks like someone has targetted my ip for a land attack...darnit just my luck

i have this rule set in iptables

iptables -I INPUT -s ${my_ip} -d ${my_ip} -j DROP

for my static ip on eth0 ...now the problem is the land attack was using my internet ip which is DHCP (provided by isp)

ie source ip >219.95.225.*** and destination ip> 219.95.225.***

how do i setup firewall rules to block this attack?? I dont want to constantly change rules or monitor the ip assigned by my ISP

p/s: i've read that linux isn't particularly vulnerable to land attacks ..but i'd rather be paranoid than sorry
 
Old 11-18-2003, 12:09 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Try "iptables -I INPUT -p UDP -d ${my_ip} --dport 68 -s $ISP_DHCP_SERVER --sport 67 -j LOG" to see if it catches on. If it does, chng target to DROP.
 
Old 11-18-2003, 12:54 AM   #3
kahpeetan
LQ Newbie
 
Registered: Nov 2003
Distribution: redhat
Posts: 17

Original Poster
Rep: Reputation: 0
thanks unSpawn ...i'll give it a shot and see what message logs i get

If its not too much trouble...mind explaining the iptables rule u mentioned to aid my understanding?
 
Old 11-18-2003, 11:41 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
mind explaining the iptables rule

[i]"iptables -I INPUT -p UDP -d ${my_ip} --dport 68 -s $ISP_DHCP_SERVER --sport 67 -j LOG"[i]
The shell variable $ISP_DHCP_SERVER should hold the IP address of your ISP's DHCP server.
The source port is UDP/67, which is DHCPd (daemon) and the destination port is UDP/68, which should be DHCPc (client).
 
  


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
land surveying software tincat2 Linux - Software 3 04-27-2005 02:44 AM
Kernel problems in 2.6.7 land LinKoln Linux - General 1 08-18-2004 09:16 PM
DHCP question. Is this an attack or legitimate mazzo Linux - Newbie 2 06-17-2004 06:13 PM
New arrival in the land of Slack tireseas Slackware 11 06-04-2003 06:22 AM
land surveyor zoot zacrah Linux - Software 2 11-27-2002 11:29 AM

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

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