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.
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT NETBSD
tftp-proxy
TFTP-PROXY(8) BSD System Manager's Manual TFTP-PROXY(8)NAME
tftp-proxy -- Internet Trivial File Transfer Protocol proxy
SYNOPSIS
tftp-proxy [-v] [-w transwait]
DESCRIPTION
tftp-proxy is a proxy for the Internet Trivial File Transfer Protocol invoked by the inetd(8) internet server. TFTP connections should be
redirected to the proxy using the pf(4) rdr command, after which the proxy connects to the server on behalf of the client.
The proxy establishes a pf(4) rdr rule using the anchor facility to rewrite packets between the client and the server. Once the rule is
established, tftp-proxy forwards the initial request from the client to the server to begin the transfer. After transwait seconds, the pf(4)
NAT state is assumed to have been established and the rdr rule is deleted and the program exits. Once the transfer between the client and
the server is completed, the NAT state will naturally expire.
Assuming the TFTP command request is from $client to $server, the proxy connected to the server using the $proxy source address, and $port is
negotiated, tftp-proxy adds the following rule to the anchor:
rdr proto udp from $server to $proxy port $port -> $client
The options are as follows:
-v Log the connection and request information to syslogd(8).
-w transwait
Number of seconds to wait for the data transmission to begin before removing the pf(4) rdr rule. The default is 2 seconds.
CONFIGURATION
To make use of the proxy, pf.conf(5) needs the following rules. The anchors are mandatory. Adjust the rules as needed for your configura-
tion.
In the NAT section:
nat on $ext_if from $int_if -> ($ext_if:0)
no nat on $ext_if to port tftp
rdr-anchor "tftp-proxy/*"
rdr on $int_if proto udp from $lan to any port tftp ->
127.0.0.1 port 6969
In the filter section, an anchor must be added to hold the pass rules:
anchor "tftp-proxy/*"
inetd(8) must be configured to spawn the proxy on the port that packets are being forwarded to by pf(4). An example inetd.conf(5) entry fol-
lows:
127.0.0.1:6969 dgram udp wait root
/usr/libexec/tftp-proxy tftp-proxy
SEE ALSO tftp(1), pf(4), pf.conf(5), ftp-proxy(8), inetd(8), syslogd(8), tftpd(8)CAVEATS
tftp-proxy chroots to /var/chroot/tftp-proxy and changes to user ``_proxy'' to drop privileges.
BSD May 31, 2007 BSD