It is currently Tue, 17 May 2022 01:58:37 GMT



 
Author Message
 running script at tcp connection request
i'm behind a firewall at work and have been trying to get my linux box
to be able to use the provided proxies to the fullest extent possible,
without introducing a security risk.  we have three proxies - telnet,
ftp and http.  Turns out our http proxy allows the CONNECT command, so
i found and have gotten working a simple script that creates a
connection to a remote server/port through the http-proxy, listens on
a local port, and then when a connection is received locally, does
packet forwarding.

this is great because it means i can make connections to arbitrary
server/ports without opening myself up for incoming connections.
however, it means that each time i want to connect to a new
server/port i have to first run this script, and then instead of
connecting (say, ssh) to the server/port, i have to ssh to localhost
with the new port i just set up.

it works, but it's a bit of a pain.  what i'd like to do is somehow
insert this script into the ip layer so that when outgoing connections
are requested, instead of making the connection to the remote
host/port, this code is executed to create the connection across the
http proxy and hand it off to whatever program wanted the new
connection.

i'm having a really hard time figuring out how to do this.  can anyone
give me some suggestions?  i'd rather not have to modify the kernel,
if at all possible...thanks in advance!

i'm running slackware 7.1, linux 2.2.16

-steve diverdi
-sdive...@hmc.edu



 Thu, 01 Jan 2004 10:33:58 GMT   
 
   [ 1 post ] 

Similar Threads

1. Log TCP/IP connection requests?

2. How to handle Multiple incomming TCP Connection Request

3. My Latest IPCHAINS Scripts: Comments Requested if I am in Error: Running Linux Mandrake 7.1

4. Font server startup script does not detect my running TCP/IP (OS5)

5. How can i get my XP running a connection script

6. Connection script won't run in cron

7. TCP Ques - How to find actual bytes in the TCP send buffer And Connection Que length

8. Rejecting TCP connections with TCP reset (what state?)


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software