AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi INDY Tunnel??? VPN???
Thema durchsuchen
Ansicht
Themen-Optionen

INDY Tunnel??? VPN???

Ein Thema von FlorianK · begonnen am 1. Mai 2004 · letzter Beitrag vom 19. Apr 2015
Antwort Antwort
Seite 1 von 3  1 23      
FlorianK

Registriert seit: 18. Apr 2004
Ort: [BUFFEROVERFLOW]
39 Beiträge
 
Delphi 7 Personal
 
#1

INDY Tunnel??? VPN???

  Alt 1. Mai 2004, 21:29
Hallo,

ich würde gerne wissen wie man die Indy Tunnel Komponenten (TidTunnelMaster, TidTunnelSlave) verwendet.

Ich möchte nämlich ein Programm schreiben mit dem einen Tunnel aufbauen kann.

Wäre nett wenn jemand mir helfen könnte.

Danke schon mal im voraus
Florian K.

PS.: Alles was darüber ihr wisst bitte posten! (auch z.B wie ein Tunnel funktioniert)
Florian K.
Errare humanum est. - Irre sind auch nur Menschen.
  Mit Zitat antworten Zitat
1. Mai 2004, 21:52
Dieses Thema wurde von "Chakotay1308" von "Neuen Beitrag zur Code-Library hinzufügen" nach "Internet / IP / LAN" verschoben.
Die Sparte "Neuen Beitrag zur CodeLibrary hinzufügen" ist lediglich für Beiträge, die in unsere große Bibliothek für praktische SourceCodes sollen.
Benutzerbild von Meflin
Meflin

Registriert seit: 21. Aug 2003
4.856 Beiträge
 
#3

Re: INDY Tunnel??? VPN???

  Alt 2. Mai 2004, 09:28
also soweit ich das verstanden habe - so wies in der indy hilfe steht - brauxhst du für jeden port, den du tunneln willst einen slave. den verbindest du mit dem master und dann wird das ganze über den slave umgeleitet! Also z.B. kannst du port 45678 über port 80 laufen lassen. wenn du den master dann auf einem anderen pc hast, ist das der fertige tunnel!

*MFG*
  Mit Zitat antworten Zitat
FlorianK

Registriert seit: 18. Apr 2004
Ort: [BUFFEROVERFLOW]
39 Beiträge
 
Delphi 7 Personal
 
#4

Re: INDY Tunnel??? VPN???

  Alt 2. Mai 2004, 11:10
Bitte noch mal Klartext!
Zitat von Meflin:
also soweit ich das verstanden habe - so wies in der indy hilfe steht
In welcher Indy Hilfe?

Zitat von Meflin:
brauxhst du für jeden port, den du tunneln willst einen slave. den verbindest du mit dem master und dann wird das ganze über den slave umgeleitet! Also z.B. kannst du port 45678 über port 80 laufen lassen. wenn du den master dann auf einem anderen pc hast, ist das der fertige tunnel!
Hääää?

@Meflin: Auch wenn ich es nicht wirklich verstehe , Danke

Würde mich über neu Beträge freuen!!!

Florian K.
Florian K.
Errare humanum est. - Irre sind auch nur Menschen.
  Mit Zitat antworten Zitat
Benutzerbild von Meflin
Meflin

Registriert seit: 21. Aug 2003
4.856 Beiträge
 
#5

Re: INDY Tunnel??? VPN???

  Alt 2. Mai 2004, 14:44
Zitat:
Description

TIdTunnelSlave is a TIdTCPServer descendant that implements a server for communicating with tunnel client connections. TIdTunnelSlave utilizes TCP connections to establish an internal link to the tunnel master server that hosts connections to service threads for the client connections.

The following diagram is a general diagram of the relationship between client connection threads, the Tunnel Slave Server, the Tunnel Master Server, and service threads used to support encapsulated tunnel connections:
Code:
  +---+       +-----+       +-----+       +---+

  | C |<=====>|     |       |     |<=====>| V |

  +---+       |     |       |     |       +---+

  +---+       |     |       |     |       +---+

  | C |<=====>|  S |<=====>|  M |<=====>| V |

  +---+       |     |       |     |       +---+

  +---+       |     |       |     |       +---+

  | C |<=====>|     |       |     |<=====>| V |

  +---+       +-----+       +-----+       +---+
C: Client connection thread

S: Tunnel Slave Server

M: TUnnel Master Server

V: Service Thread

TIdTunnelSlave provides event handlers that allow responses to changes in both server state and client connection state. TIdTunnelSlave also provides event handlers for data transformation and session link control of the tunnel for associated TIdTunnelMaster server.

When a TIdTunnelSlave becomes active, it initializes the Host and Port properties for the server's internal TCP connection that will acts as the encapsulated tunnel link tot he TIdTunnelMaster server. The connection to the tunnel master server is opened.

TIdTunnelSlave maintains SlaveThread to listen for data from the TIdTunnelMaster server service threads. SlaveThread is also used to authenticate the tunnel connection to the master server. If no exception is raised, then the TIdTunnelSlave server will begin to listen for client connections.

When a client requests a connection to TIdTunnelSlave, the server must indicate that AcceptConnections is allowed. When Socks4 indicates that client connection are using a Socks proxy, the server expects to read the IP address and Socks authentication information from the client connection. Socks authentication data cannot exceed 255 characters, and must be zero-terminated. The server will write a Socks response to the client connection and forward the connection request to the tunnel master server.

When a client connection executes a request on a connection to the tunnel slave server, TIdTunnelSlave will prepare encapsulated tunnel headers for the request and write the encapsulated message to the connection for the tunnel master server. The client connection will be closed if an exception is raised during execution of the request.

When a client connection request disconnect from the TIdTunnelSlave, the serve will prepare encapsulated tunnel headers for the request and send the message to the tunnel master server to allow closing of service threads for the client connection.
  Mit Zitat antworten Zitat
FlorianK

Registriert seit: 18. Apr 2004
Ort: [BUFFEROVERFLOW]
39 Beiträge
 
Delphi 7 Personal
 
#6

Re: INDY Tunnel??? VPN???

  Alt 2. Mai 2004, 19:24
Zitat von Meflin:
Zitat:
Description

TIdTunnelSlave is a TIdTCPServer descendant that implements a server for communicating with tunnel client connections. TIdTunnelSlave utilizes TCP connections to establish an internal link to the tunnel master server that hosts connections to service threads for the client connections.

The following diagram is a general diagram of the relationship between client connection threads, the Tunnel Slave Server, the Tunnel Master Server, and service threads used to support encapsulated tunnel connections:
Code:
  +---+       +-----+       +-----+       +---+

  | C |<=====>|     |       |     |<=====>| V |

  +---+       |     |       |     |       +---+

  +---+       |     |       |     |       +---+

  | C |<=====>|  S |<=====>|  M |<=====>| V |

  +---+       |     |       |     |       +---+

  +---+       |     |       |     |       +---+

  | C |<=====>|     |       |     |<=====>| V |

  +---+       +-----+       +-----+       +---+
C: Client connection thread

S: Tunnel Slave Server

M: TUnnel Master Server

V: Service Thread

TIdTunnelSlave provides event handlers that allow responses to changes in both server state and client connection state. TIdTunnelSlave also provides event handlers for data transformation and session link control of the tunnel for associated TIdTunnelMaster server.

When a TIdTunnelSlave becomes active, it initializes the Host and Port properties for the server's internal TCP connection that will acts as the encapsulated tunnel link tot he TIdTunnelMaster server. The connection to the tunnel master server is opened.

TIdTunnelSlave maintains SlaveThread to listen for data from the TIdTunnelMaster server service threads. SlaveThread is also used to authenticate the tunnel connection to the master server. If no exception is raised, then the TIdTunnelSlave server will begin to listen for client connections.

When a client requests a connection to TIdTunnelSlave, the server must indicate that AcceptConnections is allowed. When Socks4 indicates that client connection are using a Socks proxy, the server expects to read the IP address and Socks authentication information from the client connection. Socks authentication data cannot exceed 255 characters, and must be zero-terminated. The server will write a Socks response to the client connection and forward the connection request to the tunnel master server.

When a client connection executes a request on a connection to the tunnel slave server, TIdTunnelSlave will prepare encapsulated tunnel headers for the request and write the encapsulated message to the connection for the tunnel master server. The client connection will be closed if an exception is raised during execution of the request.

When a client connection request disconnect from the TIdTunnelSlave, the serve will prepare encapsulated tunnel headers for the request and send the message to the tunnel master server to allow closing of service threads for the client connection.
Aha

und jetzt nochmal für Dumme auf deutsch

Aber danke schon mal für deinen Post auch wenn ich nicht sooooooooo super gut englisch verstehe!!!

Florian K.
Florian K.
Errare humanum est. - Irre sind auch nur Menschen.
  Mit Zitat antworten Zitat
Florian H

Registriert seit: 30. Mär 2003
Ort: Mühlacker
1.043 Beiträge
 
Delphi 6 Professional
 
#7

Re: INDY Tunnel??? VPN???

  Alt 3. Mai 2004, 14:27
Darf man fragen, wieso du einen Tunnel machen willst, wenn du nicht genau weißt, was es ist?
Florian Heft
  Mit Zitat antworten Zitat
Fellmer Lloyd
(Gast)

n/a Beiträge
 
#8

Re: INDY Tunnel??? VPN???

  Alt 3. Mai 2004, 14:50
Achtung: Ein Tunnel ist keine VPN Verbindung!
  Mit Zitat antworten Zitat
Benutzerbild von alcaeus
alcaeus

Registriert seit: 11. Aug 2003
Ort: München
6.537 Beiträge
 
#9

Re: INDY Tunnel??? VPN???

  Alt 3. Mai 2004, 14:58
Ich glaube dass das ganze in das Tunnel-Thema fällt. Ich habe ein Programm geschrieben, welches auf Client-Server-Architektur basiert. Nun, einer der Clients läuft hinter einem Proxy, auf welchem die Ports nicht freigeschaltet werden (strenger Admin). Wenn ich nun z.B. über den Port 6587 ins Internet kommen will, müsste das der Proxy weiterleiten, was er allerdings nicht macht und ich somit keine Verbindung zusammenkriege. Ist Tunneling in diesem Fall eine Abhilfemethode? Ich hab den Text oben nicht ganz so richtig verstanden...
Andreas B.
Die Mutter der Dummen ist immer schwanger.
Ein Portal für Informatik-Studenten: www.infler.de
  Mit Zitat antworten Zitat
Benutzerbild von Meflin
Meflin

Registriert seit: 21. Aug 2003
4.856 Beiträge
 
#10

Re: INDY Tunnel??? VPN???

  Alt 3. Mai 2004, 16:17
ja. du könntest soweit ich den englischen text verstehe auch verkehr über andere ports umleiten und zwar indem du master und slave auf dem gleichen pc hast!
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 3  1 23      


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:22 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz