[BigIP] URL via Stream-Profil und iRule anpassen

Posted by Doomshammer on Thursday, March 12. 2009 at 12:13 in Arbeit, Linux/Unix


Ich hatte heute mit einem Problem der etwas anderen Art zu kaempfen. Beim Einsatz einer bestimmten 3rd-Party App in unserem Code, wurde die Base-URL von dieser 3rd-Party App nicht richtig gesetzt. Das resultierte dann daran, dass die App alle Base-URLs mit http://<somehostname>:80/[...] ins resultierende HTML schob- was natuerlich suboptimal ist, da wir nur HTTPS Requests erlauben- normale HTTP Anfragen kommen garnicht erst durch die Firewall.

Mir kam die Idee, das man doch mittels iRule auf der BigIP das zurueckgegebene HTML veraendern koennte und so die URL im Code anpassen. Gesagt, getan... etwas in der Dokumentation um iRules und Content-Handling geforscht und tatsaechlich was gefunden. Anhand eines Stream-Profil, dass man via iRule ansteuern kann, laesst sich der Daten-Strom bei der Auslieferung an den Client entsprechend veraendern. Also hab' ich mich hingesetzt und das ganze zu einer iRule fuer diese 3rd Party-App zusammengebastelt.

Das Ergebnis sieht so aus- ziemlich simpel, aber effektiv :-)

Sysadmin Day!

Posted by Doomshammer on Friday, July 25. 2008 at 09:14 in Arbeit, Computer, English only, Fun
Happy 9th Sysadmin Appreciation Day to all of you who share the burden of being just bit more clever with computers than the average sales guy ;-)

OpenBSD 4.3 released

Posted by Doomshammer on Thursday, May 1. 2008 at 12:01 in Anwendungen, Arbeit, Computer, Linux/Unix, Privat, Thoughts
Actually it's a matter of course, 'cause OpenBSD is in a 6-month release cycle, but though I don't wanna hesitate to announce the release of their latest version.

Cyrus-SASL sql.c 'settings' undeclared

Posted by Doomshammer on Tuesday, March 4. 2008 at 23:24 in Anwendungen, Arbeit, Computer, Linux/Unix

Ich bin gerade dabei einen weiteren Mailserver aufzusetzen. Beim kompilieren von Cyrus SASL (inkl. SQL Cyrpt Patch) bekam ich dann folgenden Fehler:

QUOTE:
sql.c: In function '_pgsql_exec':
sql.c:292: error: 'settings' undeclared (first use in this function)
sql.c:292: error: (Each undeclared identifier is reported only once
sql.c:292: error: for each function it appears in.)
sql.c: In function '_pgsql_rollback_txn':
sql.c:337: error: too many arguments to function '_pgsql_exec'


Scheinbar bin ich der einzige der dieses Problem hat, ich konnte zumindest nichts bei google finde. Also hab' ich mich selbst dran versucht und es auch geschafft das Problem zu loesen. Fuer denjenigen der dieses Problem auch mal haben sollte, hier mein Patch.

Und es funktioniert doch!

Posted by Doomshammer on Tuesday, March 4. 2008 at 07:47 in Anwendungen, Arbeit, Computer, Linux/Unix, Thoughts, Web
Die Installation von CRUX auf einem dedizierten Server von Hetzner. Ist garnicht so schwer. ISO Mounten, Boot-Image rauskopieren, Bootimage "unsquashfs"en, Bootimage mounten, gefolgt von einer einzigen "mount --bind" + chroot Orgie ;-)

Dank des CRUX86_64 Projekts laeuft jetzt sogar 'n 64Bit System auf dem Server. Sehr angenehm sich endlich auch auf 'nem "fremdsystem" irgendwie ein kleines Stueckchen mehr Zuhause zu fuehlen. Beim CRUX86_64 ist das sshd-keygen scheinbar nicht sauber kompiliert (oder nur fuer die Hetzner Maschine inkompatibel). Es kann keinen ssh Key anlegen und somit wird der Remote-Zugriff verweigert. Das kann man aber umgehen, indem man temporaer 'nen Key von 'nem anderen System einspielt, sich einloggt, ein "sysup" durchfuehrt und dann erst gcc, binutils und Co neu uebersetzt werden und dann OpenSSH. Danach funktioniert ssh-keygen 1a.

QUOTE:
# uname -ri && crux
2.6.22.6 x86_64
CRUX version 2.3

OpenVPN and the SSL VPN Revolution

Posted by Doomshammer on Sunday, March 2. 2008 at 14:29 in Anwendungen, Arbeit, Computer, English only, Privat, Thoughts, Web
Very good read about OpenVPN and SSL VPNs. It pretty much confirms my choice for OpenVPN as VPN-Solution.

Brief impression of Dublin

Posted by Doomshammer on Sunday, February 3. 2008 at 00:06 in Arbeit, English only, Photography, Privat, Thoughts
Just took some minutes, to download the photos I took in Dublin from my cam. Not really much feasible content... but at least one photo got my attention immediately. Here it is...

Court of Justice - Dublin

[Update II] SPAM durch Kontaktformular

Posted by Doomshammer on Friday, February 1. 2008 at 00:39 in Arbeit, Thoughts, Web

Ein Kunden fragte mich heute ob der SPAM-Filter auf dem Mailserver defekt sei, denn es kaeme soviel SPAM durch. Ein Blick in die Mailserver Logs zeigte aber, das alles ok ist. Beim genaueren Hinsehen fiel mir dann auf, dass die Mails fuer die Kunden-Domain alle von 1&1 kamen (kundenserver.de) und "cgi-mailer" in der Message-ID hatten. Ein Blick auf die Homepage des Kunden verschaffte mir dann Klarheit.

Die Webdesignerin, die die Webseite fuer den Kunden gebaut hat, hat auch ein Form-Mailer Script als Kontaktformular eingebaut. Leider ueberprueft das Script den uebergebenen Inhalt nicht. Das einzige was es macht... es bricht ab, wenn man per GET und nicht per POST sendet. Noch schlimmer ist allerdings, dass man per HTTP POST Request auch noch die Absender- sowie die Empfaenger Emailadresse variabel uebergeben kann (auch mehrere, getrennt durch Kommata). Da der Kunde bei mir kein CGI hat, hat die Webdesignerin das Script auf Ihren Webspace bei 1&1 gelegt (leider ohne Referer-Ueberpruefung oder dergl.). Ich hab' dann mal kurz in den Quellcode der Seite geschaut und die FORM-Felder rausgeholt die interessant sind und mal schnell den folgenden Einzeiler mit cURL gebaut:

QUOTE:
curl -d subject=Foobasa -d empfaenger=empfaenger1@domain.tld,empfaenger2@domain.tld -d return=http://www.microsoft.com -d Bemerkung=Es%20lebe%20der%20SPAM -d Absenden=Absenden -d 'E-Mail=absender@domain.tld' -vvv 'http://www.domain.tld/mailer.php'


Mal gucken ob die Webdesignerin auf meine Mail mit der Anfrage das bitte unverzueglich zu korregieren reagiert. Falls nicht, muss ich wohl mal 1&1 darauf hinweisen.

Update: Ich habe gerade eine Antwortmail von der Webdesignerin bekommen. Sie habe das Script vorerst offline genommen. Das nenne ich mal prompte und vorbildliche Reaktion.

Update II: Tja, zu frueh gelobt. Hab gerade versehentlich mit Ctrl-R den cURL Einzeiler nochmal ausgefuehrt und er funktioniert immernoch. Also war die Reaktion lt. Mail zwar vorbildlich- aber in der Praxis ist hier nichts passiert. Ich habe das ganze jetzt mal an 1&1 weitergegeben- verarschen kann ich mich naemlich selber.

Dublin...

Posted by Doomshammer on Wednesday, January 23. 2008 at 23:49 in Arbeit, English only
Got a short-therm message today, that I will need to go to Dublin tomorrow. So till next Tueday I will be in Ireland. As the customer I will be working at has very tough security policies, I bet I will be w/o internet for these days as well... so I'll be back on Tuesday ;-)

Impressions

Posted by Doomshammer on Saturday, January 19. 2008 at 04:58 in Arbeit, English only, Fun, Privat, Thoughts

Here am I now. Sitting in my room at the Hilton Garden Inn in San Mateo- waiting for a maintenance we'll have at 9pm. It was a great week till now. A busy week, a week without much sleep but a great week! The first 4 days I attended to our "All-Hands meeting" in San Jose. With saying "our" I mean the company I am working at... SuccessFactors - a company all about People Performance and Talent Success. It's a great company to work at and it's not only me saying this- it has been officially been elected to one of the Top #50 best companies to work at - and I fully agree with the election!



The All-Hands was awesome. I met lots of nice people. My team, my colleagues from all over the world and a lot of other wonderful people. It was a really inspiring event and I totally agree with the words of Lars- our CEO: "This is not just a company, this is a big family!" It is.

On Wednesday I moved from the hotel in San Jose to my hotel in San Mateo and we started working in the office. I had a busy schedule. Lots of things to talk about, long nights in the office, speaking to vendors, meetings, stuff... but it was fun. My team is awesome- we are only 3 people (from all over the world) but we act like we were brothers :-)

I haven't actually seen anything from San Francisco/San Jose/San Mateo yet - at least not much (hey.. i've seen Yahoo, Keynote, Intel, IBM in Silicon Valley :-D) but this will change tomorrow. We will go out to San Francisco and do some sight seeing - maybe Alcatraz, Downtown, Golden Gate Bridge, and so on... looking forward to it.

On sunday I will start my flight back home... 13h on the plane- but luckily non-stop this time. I'm a bit sad to get back, because I really like it here- but on the other hand I am looking forward for my own bed though :-) Well- that's it for now.

If you're going to San Francisco...

Posted by Doomshammer on Saturday, January 12. 2008 at 01:19 in Arbeit, Musik, Thoughts

...be sure to wear some flowers in your hear. Noch T-1 Tag und dann werde ich diesen Tipp von Scott McKenzie mal direkt umsetzen :-)

Sonntag gehts los- eine Woche Californien. Erst 4 Tage in San Jose und die restliche Zeit bis So. dann in San Mateo. Bin total gespannt wie es dort ist und freue mich schon meine Kollegen mal persoenlich kennen zu lernen. Das einzige was mir jetzt schon auf 'n Sack geht, sind die 14h Hinflug und die 12h Rueckflug ;-)

Ich werd' hier mal 'n Update schreiben, wenn ich angekommen bin.


Booked!

Posted by Doomshammer on Friday, December 28. 2007 at 10:06 in Arbeit, English only, Privat, Thoughts
Now it's finally definite. I just booked my flight to San Francisco for mid of January. I will be visiting my company's HQ in San Mateo for one week. I'm pretty excited (and a bit nervous as well), as this will be my first trans-atlantic flight (nearly 16h in the plane on the outward flight (with layover in Chicago) and about 12h in the plane on the return flight). 

Viel zu tun...

Posted by Doomshammer on Saturday, December 15. 2007 at 20:47 in Arbeit, Privat, Thoughts

Wow, ich haette nicht gedacht das in letzten Tagen dieses Jahres noch so viel zu tun ist. Wenn ich mir meinen Kalender so anschaue (und ich bin wirklich froh, dass ich jetzt exessiv einen Kalender nutze- ansonsten waere ich wirklich verloren im mom.) dann sind da nicht mehr viele freie Zeilen.

Ich hab' ja am ersten meinen Job bei SuccessFactors angefangen. Macht wirklich viel Spass! Klar- anfangs ist immer viel zu tun und viel zu lernen, aber das gehoert halt dazu. SuccessFactors ist ein SaaS Anbieter fuer Talent- und Performance Management. Die Firma ist super cool. Ich bin echt mit offenen Armen aufgenommen worden, supernette Kollegen und alles quer durch den Garten auf der ganzen Welt verteilt. Mein Team besteht z. B. aus Leuten aus San Franciso, Argentinien, Minneapolis. Aber meine Kollegen aus Daenemark, London, Duesseldorf und Muenchen mit denen ich schon zu tun hatte, sind auch super gut drauf.

Am Montag Morgen (6.15h *whaaaa*) gehts dann erstmal nach Amsterdam (dafuer musste ich mich heute erstma neu einkleiden... Anzug, Hemden, Krawatte... wurde ma wieder Zeit ;-) ). Dort findet dann eine Data-Center Tour mit einem neuen Kunden statt. Irgendwann im Dez. (oder Anfang Jan.) muss ich dann noch nach fuer 2 oder 3 Tage nach Dublin, zu einem Kunden um dort technischen Support vor Ort zu leisten und wahrscheinlich gehts dann Mitte Jan. noch fuer 'ne Woche nach San Franciso.

Tja, und zwischendrin ist dann auch noch Weihnachten- und ich muss gestehen, ich hab noch kein einziges Geschenk :-D Aber dafuer werd' ich ein paar Liebe Freunde wiedersehen (die ich das letzte mal im letzten Jahr zu Weihnachten gesehen habe), worauf ich mich schon total freue. Eine Weihnachtsfeier steht auch noch an.... bin mal gespannt was in den naechsten Tagen noch so aufpoppt und meinen Kalender fuellen wird :-)

Sipgate rockt!

Posted by Doomshammer on Saturday, December 15. 2007 at 09:37 in Arbeit, Computer, English only, Thoughts, Web

As already written, I've been working all night and as we were up to 8 people, we did a conference call. So I was on the phone 6 hours and 22 minutes with my colleagues in San Francisco and Argentinia all night and now look what it costs me to call the US:

Sipgate rocks

I love Sipgate!

*yawn*

Posted by Doomshammer on Saturday, December 15. 2007 at 09:20 in Arbeit, English only

Kinda tired... only had 2h of sleep the last 24h (had to work the whole night from 1am to 9am - with a break from 3.30h to 5.30h) and the next day is already here (and my schedule tells me that it will be pretty busy)... Man! I'm hungry now!


Calendar

Back May '13
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Quicksearch

Not for Sale!

This blog is not for sale!

Latest twitter

Latest Photos

ERROR: The HTTP server returned the error or the warning(result:403).

Getaggte Artikel

Buttons

Ich bin ein Dokuleser
Get OpenSolaris
Gimme a Smile
neessen.net - Webhosting
I'm a blogger!
Lebst Du noch oder oarks Du schon?
last.fm
trnd - be trendy
I hear Metal
Visit GeoURL
Powered by Linux
Zsh lover
VIM! The Editor
Get Firefox
Ihr, nicht ich!
My amazon wishlist

BLOGROLL