You're replying to a comment by Ana Gallardo.

Ana Gallardo Permalink
June 29, 2012, 12:33

Hello Peter and thank you for your post!!

I have a captive portal.

I need to intercept a tcp connection, do some actions and fordward the connection.

Now I only intercept http connections, and then I redirect that conection:

sub redirect {
my ( $self, $peer, $url ) = @_;
$self->log( 10, "GATEWAY : redirigimos a $url" );
"HTTP/1.1 302 Moved\r\n",
"Location: $url\r\n\r\n", qq{


You should be redirected now. If not, click here.


So, I would like to do a general redirect, not only a http redirect.

I would appreciate it if you would give me some ideas :)

Thank you very much in advance and sorry for my english.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "floppy_216": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.