Sponsored Content
Special Forums IP Networking Software/tool to route an IP packet to proxy server and capture the Proxy reply as an Post 302289167 by Rajesh_BK on Thursday 19th of February 2009 01:32:21 AM
Old 02-19-2009
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

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

9 More Discussions You Might Find Interesting

1. IP Networking

routing through a proxy server

I'm new to this forum, so please be gentle ! I need to get my IBM RS running AIX4.3 onto the internet to a particular ftp server, through a NT server running proxy services. This NT server is directly connected to our internet router vis a secondary NIC on the NT server. When I add the route... (2 Replies)
Discussion started by: garry
2 Replies

2. Linux

how to get IP for proxy server

i have installed a proxy server on my linux box . how to get the IP for that proxy . cheers (3 Replies)
Discussion started by: ppass
3 Replies

3. Red Hat

How to get server out through work proxy

Hi, I want to be able to get my server to update via yum through our work proxy. I have tried the usual method of exporting the http_proxy=http://username:password@domain.com but this does not work for me. I opce heard about a guy who set up a proxy on his XP laptop (Don't flame me I have... (0 Replies)
Discussion started by: pobman
0 Replies

4. Cybersecurity

Help with iptables on proxy server

I may be doing this incorrectly, so if you have any suggestions, I'm open to it. So I installed a reverse proxy server on my LAN. It's not on the DMZ because it's coming from a blade running inside a virtual machine. Anyways, so I installed iptables and locked everything down from the outside... (1 Reply)
Discussion started by: sdotsen
1 Replies

5. Red Hat

Ftp problem on proxy server

Hi all, First of all i would like to say sorry to all for my english. My name is Mastan. We have an proxy server have 2 lan cards. one is for public and another for private. public ip: 182.72.141.... private ip: 192.168.0.0 So, the thing is i configure ftp server in my local for... (0 Replies)
Discussion started by: mastansaheb
0 Replies

6. IP Networking

SQUID Proxy server configuration

Can any one direct me to the resources where I can find in-depth instructions on Squid Proxy server and its configuration? Thanks in advance.:) (1 Reply)
Discussion started by: admin_xor
1 Replies

7. Shell Programming and Scripting

proxy server using perl

I want to write a perl script on a server to behave like a proxy server. I want to be able to enter the hostname and port on firefox proxy settings (or IE, chrome, whatever) and then go to a site, and have my webserver forward the request to another server, and forward the response back to the... (2 Replies)
Discussion started by: Arun_Linux
2 Replies

8. UNIX for Dummies Questions & Answers

enable all operations to use a proxy server , redhat server

Hi, i would like to enable all operations/connections to use a proxy server in a redhat server , witch file should i config to get this for all conections .... Thanks (0 Replies)
Discussion started by: prpkrk
0 Replies

9. IP Networking

Connecting via proxy chain to Upstream proxy

I need to configure a proxy on my local machine to use an upstream proxy (installed on another machine). The upstream proxy requires Digest/NTLM authorization. I want the local proxy to deal with the upstream proxy's authorization details and provides authorization free access to users that connect... (0 Replies)
Discussion started by: Russel
0 Replies
gnome-network-preferences(1)					   User Commands				      gnome-network-preferences(1)

NAME
gnome-network-preferences - configure network proxy SYNOPSIS
gnome-network-preferences [gnome-std-options] DESCRIPTION
The Network Proxy preference tool enables you to configure how your system connects to networks. You can configure the desktop to connect to a proxy server, and specify the details of the proxy server. A proxy server is a server that intercepts requests to another server, and fulfills the request itself, if it can. You can enter the Domain Name Service (DNS) name or the Internet Protocol (IP) address of the proxy server. OPTIONS
The following options are supported: gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5). EXAMPLES
Example 1: Launching the Network Proxy preference tool example% gnome-network-preferences EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/gnome-network-pExecutable for Network Proxy preferences tool ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+------------------------------+ |Availability |SUNWgnome-desktop-preferences | +-----------------------------+------------------------------+ |Interface stability |External | +-----------------------------+------------------------------+ SEE ALSO
Preference Tools Manual Latest version of the GNOME Desktop User Guide for your platform. gnome-std-options(5) NOTES
Written by Glynn Foster, Sun Microsystems Inc., 2003. SunOS 5.10 2 Oct 2003 gnome-network-preferences(1)
All times are GMT -4. The time now is 11:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy