The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Security
.
google unix.com



Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
URL blocking with iptables shrinuvas Debian 1 03-06-2009 03:58 AM
Non-blocking pipe cdlaforc Shell Programming and Scripting 4 02-10-2009 10:52 AM
end-end packet delay? yogesh_powar IP Networking 4 12-13-2005 01:21 PM
Getting an ACK for RAW SYN packet zampya High Level Programming 17 05-24-2004 09:15 PM
Seeing IP packet manjunath IP Networking 4 09-15-2002 11:46 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-30-2009
amoeba amoeba is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 4
blocking UDP packet

I want to deny a particular malicious UDP packet. I can readily identify this packet from the rest by looking at the data section, where data offset 2 is 0xaa, data[5] is 0xbb, etc. Are there any tools or code samples that can do this?

Basically, instead of seeing the packet in the following tcpdump, I want to block it. I started to write a proxy but realized I would need to keep sessions and that's a nightmare. Is there an easier way to do this? The firewalls I've seen only block based on port, not on data payload.


tcpdump -i eth1 udp[2:1] = 0xaa and udp[5:2] = 0xbbcc
  #2 (permalink)  
Old 04-05-2009
tomboy123 tomboy123 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 2
Hey, from my understanding of how TCPDump and IPTables work, below is the path.

Internet > NIC > TCPDump > IPTables > Local System

Thus, blocking packets with IPTables will not stop them from showing in TCPDump.

Hope this helps!
  #3 (permalink)  
Old 04-06-2009
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
Correct, you will need to block the UDP traffic before it hits the local NIC, preferably via the nearest router or some IPS, if available.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0