Artikel-Schlagworte: „unix“


Discovered an interesting page for linux admins today, good news and articles over there:


During a project, we came across the problem to proxy the services of a Citrix Secure Gateway for security purposes. No deal I thought, because of the TCP over HTTP tunneling thing I had back in my mind. We’ve tried proxyiing via Squid, as well as Apache and stunnel to no avail. The problem is in the nature of how the SSL Connection is beiing used, and that it’s not a real HTTP connection at all. With the proxying enabled, the session terminates at the proxy system. The secure gateway itself thinks about this like it is a kind of “man-in-the-middle” attack., and denies the connection with an misleading SSL Error 4.

I can understand, that this kind of protection is useful in many ways, but with the usage of http proxy servers and restricted firewall policies it’s more a problem than a feature. You have to either pinpoint you’re firewall with DNATs and the like, or use a commercial feature like the Citrix Secure Gateway Proxy to get rid of the problem.

The final solution to this was, to use socat a multipurpose Relay. From the about page of socat:

socat is a relay for bidirectional data transfer between two independent data
channels. Each of these data channels may be a file, pipe, device (serial line
etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an
SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU
line editor (readline), a program, or a combination of two of these.
These modes include generation of "listening" sockets, named pipes, and pseudo
terminals.

So, whenever you’re facing a problem like this, were regular reverse proxy solutions won’t work, give socat a try, for me it saved my day.

You can get socat at http://www.dest-unreach.org/socat/


  • Wer häufig Textdateien von unterschiedlichen Platformen unter Windows bearbeitet, der stösst schnell an die unkomfortablen Grenzen des Notepad. Kein Syntaxhighlighting, und beim Transfer der Dateien auf Linux oder andere Unixsysteme gibt es Probleme in der unterschiedlichen Handhabung der Zeilenvorschüben. Verwendet man um diesem entgegenzukommen, die edit.com, welche ebenfalls bei Windows mitgeliefert wird, muss man auf die GUI des Notepad und so manch anderen Komfort verzichten.

    ConTEXT Freeware Text Editor bietet nicht nur Syntaxhighlighting und eine Vielzahl von Einstellungsmöglichkeit wie die Handhabung des Zeilenendes, sondern auch eine komfortable Projektverwaltung. Nach der Installation bietet es sogar an, sich als Notepaersatz ins System einzuklinken. So hätte Notepad werden sollen, Microsoft!

    Der ConTEXT Freeware Text Editor steht unter http://www.context.cx zum Download bereit.

    If you have to edit text files under windows often, you often touch the limits of the notepad.exe application included in windows. No syntax higlighting, problems in the handling of carriage returns and line feeds if you later upload the file to a unix machine, and so on. If you try to use the also included edit.com, to get rid of the CRLF Problem, you looses the benefits of the GUI and other comforts you would had by using notepad.

    ConTEXT Freeware Text Editor does not only offer syntax highlighting and a lot of settings like CRLF handling, but also a comfortable project management and much more. Right after the installation it even offers you to replace all calls to notepad in your system with itself. That’s what’s Notepd.exe supposed to be, Microsoft.

    You can download the ConTEXT Freeware Text Editor for free at http://www.context.cx.