LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-23-2005, 12:38 AM   #1
akawale
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Packet Filter to redirect a packet to a user level process


Hi,

I wanted some information on how to redirect packets arriving at a linux box to a user level process running on that machine.

I would appericiate a solution with a minimal amount of kernel module programming and/or firewall configuration.

My intention is to modify the packet and send it to it another destination.

Thanks.

- Akshay
 
Old 03-23-2005, 01:09 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Do you seek to send the packets to a specific port? If so, the information is very attainable. Look at http://www.linuxguruz.com for great IPTABLES tutorials. You seek "port forwarding".
 
Old 03-23-2005, 04:18 AM   #3
akawale
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Original Poster
Rep: Reputation: 0
No, I need access to the entire IP header and payload... Thanks for the link though I'll definately check it out.
Does anybody have any specific ideas?

Thanks.

- Akshay
 
Old 09-01-2006, 12:06 PM   #4
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
You have to use natting in this case. Rewritting the packet with SNAT/DNAT can make you do a lot with your packets. You can also forward the packets over to different ports as well.

The only basic rule that fits in this case; is to understand the basics (for natting); Make sure that your packet should always have a same class Source-ip & destination ip if incase you are not acting as a gateway for your clients.

Above all natting in not at all difficult & you can get the know how of them i think in a few days as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
About BSF(BSD Packet Filter) docterling Linux - Networking 5 05-20-2004 07:59 AM
packet filter firewall naveenpurswani Programming 2 03-29-2004 02:54 PM
IP Packet filter doraiashok Programming 2 02-26-2004 11:21 AM
Differences between a simple packet filter, and a firewall... Grim Reaper Linux - Networking 9 03-06-2003 01:32 AM
Network Packet Filter vs ipchains Nephlite Linux - Networking 1 02-04-2002 03:16 AM


All times are GMT -5. The time now is 07:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration