473,666 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SSL tunneling

Hello:

I'm developing a proxy server in VS 2005 C# and i got a problem with the
HTTPS tunneling protocol.

The secuence I follow is something like that:

1. I read the client request with a new Socket object.

2. If the request is like "CONNECT server:443 HTTP..." go on, else jump to
the HTTP proxy that works good.

3. I connect to the server requested by the client with a new SslStream
object.

4. If the connection is established without errors I send a "HTTP/1.0 200
Connection established..." to the client with the Socket object created on
step 1.

5. I read the next request from the client with the Socket created on step
1, and I receive an array of binary bytes (not text secuence).

6. I send this arrays to the server with the SslStream object created on
step 3.

7. I receive a text string from the server in HTM format with a "Bad
request" message or similar, depending on the server that I connect.
In the theory, after I send the "Connect established" to the client I must
send the data received from the client to the server and viceversa, until the
conection is broken.

Take note of that. If after the "Connection established" I send a "GET /..."
string to the server, it returns the web page that I'm asking for.

Is possible that I must convert the Socket object created on step 1 to a
SslStream?

Thanks for your comments and answers, and sorry for my bad English!

Un saludo!
--
Juan Segura
www.sd-a.com
ju**@sd-a.com
Apr 21 '06 #1
0 2353

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2195
by: Marko | last post by:
Hello, Don't know if this is the right group... On our LAN, we have PhpMyAdmin 2.5.7-pl1 installed and PmaAbsoluteURI is set to http://192.168.1.200:81. When accessed from LAN, it works great. However, if I connect from home with SSH tunnel and map the localhost:81 to 192.168.1.200:81, I can see the first page of PhpMyAdmin, but if I try to select the database from the pull-down menu, it tries to connect to 192.168.1.200, which, of...
5
4436
by: Zach | last post by:
This is all on linux using jdk1.3. My application is written in AWT, no swing. The application requires running it on the host machine and tunneling the GUI back to a client. I've been doing this via an ssh session. In the building the GUI works pretty much as if I was running it directly from the host machine, no lags or performance problems. Over longer distances I start to see some lagging, the GUI loses some responsiveness, it's...
22
6158
by: Bloke | last post by:
Hi all. Some time ago (years) I had a script on Python 2.2 that would retieve a HTTPS web site. I used python22-win32-ssl.zip to handle the SSL aspect and it worked wonderfully. I am revisiting the project and need to update it to Python 2.4.1. python22-win32-ssl.zip isn't compatable (duh) and I can't find a newer version. I have had a search and can't find anything to point me in the right direction. Can someone please help?
1
1515
by: Jim Hubbard | last post by:
What is the best way to do tunneling via HTTP? I must use ports 80 and/or 443 (as I cannot control where the clients will be connecting to one another from). I want to implement a tunneling server for an in-house application that allows chicken farmers (you know....those big chicken houses that smell really bad when it gets hot) to connect to an in-house P2P solution. The P2P client and server are already written for use on a local...
1
1540
by: tvmaly | last post by:
My host does not provide a good web based management tool for the sql server database I am using. They queue imports and exports so it takes several hours before things are finished. They provide this web based access and access through asp or asp.net. Does anyone know how I could tunnel a connection from enterprise manager to the database using a asp.net web application? Thanks Ty
4
3487
by: Paul Dodowa | last post by:
Is it possible (i.e. are there any modules out there) that allows one to do HTTP tunneling from PHP? (Google is only bringing up ASP.NET links) I'm working with PHP5 so ideally, the code is PHP5 (or at least OO). tia
3
46145
by: DrLex | last post by:
It's hard to find a suitable forum for this question, but I suppose this should be one of the more appropriate ones. Mind that this is probably a pretty 'advanced' question ;) I have this situation: a game server (Enemy Territory) is running inside an isolated network which only has a few access points to the outside world by means of SSH. Someone outside this network wants to play on this game server. If the game would be using TCP for...
0
1122
by: db2admin | last post by:
I am really new to the AIX, but i need to create a tunnelling in one of AIX m/c My problem : Machine 1 can connect to a server S1 with port x My client can only access Machine1 and can use any port. Can I use Tunnelling technique so that i can create a tunnel in Machine1 which points to server S1 and thus my client can access the server.
2
3077
by: mochinushi | last post by:
Im a newb C++ programmer trying to figure out what concepts and protocols i should be reading on... What im trying to accomplish is a "stealth" tunnel/forwarder from my computer at the dorm to a remote vps. By stealh i mean so that the evil admin doesnt see what im doing :P First i used ssh tunneling but he noticed the excessive traffic on port 22 and forbid any use of tunneling/encryption stuff :/ Im quite a noob when it comes to...
0
8449
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8876
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8642
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1777
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.