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 > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to get server out through work proxy pobman Red Hat 0 02-08-2009 03:42 PM
Sun GDD - Web and Web Proxy Server - wshang version 3.0 iBot Solaris BigAdmin RSS 0 11-24-2008 03:30 PM
Wanted: Recommendations for Proxy Server siegfried IP Networking 4 06-13-2007 01:55 PM
how to get IP for proxy server ppass Linux 3 09-26-2005 08:46 AM
routing through a proxy server garry IP Networking 2 01-30-2002 05:18 AM

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 02-19-2009
Rajesh_BK Rajesh_BK is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 1
Software/tool to route an IP packet to proxy server and capture the Proxy reply as an

Hi,

I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary IP header and proper payload). I need to route this IP packet to a proxy server and capture the reply from the proxy server at the IP level as an IP packet.

One of solution that I have in my mind(thought have not tried) is to create a raw socket in my application and establish a connection with the proxy server. Then I would be able to send IP packet to the proxy server via the raw socket. The reply from the proxy server when read via the raw socket in my application would be an IP packet sent by the proxy. But this implementation requires my application to be run with root privilidges. My application would be run by mulitple users and providing them root access is not acceptable.

As an alternative, I am planning to run a different program on a seperate machine(with root privilidge). This new program(let us call it as router for our reference) would listen on UDP ports to which my applications running on different machines would send data(IP packets). This means IP packet is sent as data via a UDP socket(Similar to IP-in-IP). When the router receives the data(IP Packet) it routes it to Proxy server via a Raw socket connection. This means the router would establish a raw socket connection with the Proxy server and send the IP packets on the raw socket(This IP packtes are received as user data on the UDP port). Similarly the data received from the proxy server, the router reads the same via the raw socket as an IP packet. This IP packet is sent via the UDP connection to the machine(machine 1 or 2 in the Diagram).

Please refer the attachments for a graphical view(Graphical textpad.txt for textpad/wordpad and Graphical notepad.txt for notepad)

I looking for a software/package that would perfom the functionality of the router described above. It would be great if it can handle any authenication required with the proxy server also.

In summary the software should accecpt UDP/TCP connections, recieve an IP packet as data from the UDP/TCP port, send the received IP packet to proxy server, receive the reply IP packet from the proxy server

One of my friend suggested to try CIPE for the same. But I could not find CIPE fit my requirements. Could you please provide any pointers to any tool/software that would fit my requirements.

Regards,
Rajesh B.K
Attached Files
File Type: txt Graphical notepad.txt (944 Bytes, 59 views)
File Type: txt Graphical textpad.txt (544 Bytes, 39 views)

Last edited by Rajesh_BK; 02-19-2009 at 03:19 AM.. Reason: Format was not proper
Sponsored Links
Closed Thread

Bookmarks

Tags
cipe, ip in ip, proxy server, router, unresolved, unresolved for weeks

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 07:18 PM.


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