LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-12-2005, 07:06 AM   #1
ashutoshsharma
LQ Newbie
 
Registered: Mar 2004
Location: Ahemdabad
Distribution: Red Hat
Posts: 6

Rep: Reputation: 0
Question Network Address Translation


Hello All,

I am presently trying to spoof the packets on the network that is basically for writing a simple router kind of thing... As I can sniff the packets but resulting to the copy of the packet. But as we know the fundamental aspect of NAT is to modify the packet address, so I am not getting how to do that. I mean can anyone help me with a small and simple router program in C which can just grab the packet (not copying of the packet as sniffers do) do the packet modification and then transmitting that packet over the link without the help of netfilter or any builtin library. I want to use the core TCP/IP functions only..... Actually I tried but am not finding how to use data structures like skbuff, net_device etc.

Thanks and regards,
Ashutosh
 
  


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
Redhat 9 ip translation for internal network to share ip connection boym1 Linux - Networking 2 05-06-2004 07:39 AM
Network Address Translation for NFS not happening! Vincent_Vega Linux - Networking 4 01-09-2004 06:57 PM
"fast network address translation" kernel option dunkyb Linux - Networking 0 04-20-2003 06:42 PM
question about network address and broadcast address yuzuohong Linux - Networking 1 09-18-2002 11:47 AM
IP address translation? mikeshn Linux - Software 5 05-25-2002 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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