From: DarKRaveR Subject: Re: http&rtsp kernel 'proxy' Date: Thu, 2 Oct 2003 14:15:07 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <1268892368.20031002141507@habitat-b.de> References: <200310021145.10243.fjcabello@visual-tools.com> Reply-To: DarKRaveR Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Francisco Javier Cabello Torres In-Reply-To: <200310021145.10243.fjcabello@visual-tools.com> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org Hello Francisco, I don't know about rtsp, but consider this: HTTP should not be a problem, since the server is just answering, or to put it in other words: As soon as the server establishes a connection, the client will start the 'communication'. So it should be possible to to analyse, what the client wants. If for rtsp the order is reversed, like for smtp or most other protocols, your plans are impossible. If, in both cases, the client initiates the protocol, I assume you plans can succeed, at least I don'T see any reason, why it shouldn't work. Thursday, October 2, 2003, 11:45:10 AM, you wrote: FJCT> Hello, FJCT> I'm new with kernel development. FJCT> I would like to implement a http&rtsp port as a kernel module. FJCT> First, I will try to explain what I want to develop. I have two servers, one FJCT> of then a HTTP server, listening on port 80, and the second one a RTSP FJCT> server, listening on port 554. My system is besides a firewall which only FJCT> allow traffic in port 80. Because of that I need a 'proxy' listen on port 80 FJCT> which redirect traffic to RTSP server (still listen on 554) or HTTP server FJCT> (now listen on 8080). This 'proxy' should analyze incoming packets and FJCT> depending of contents redirect it to one of the servers. If packet contents FJCT> belongs to rtsp protocol, it will be redirect to port 554, however if it's a FJCT> http packet, it will be redirect to 8080. FJCT> I have been reading some documentation, and it think it would be possible to FJCT> implement a iptables 'match' for rtsp and http packets, modify iptables to FJCT> accept new match and then, with my modified iptables, specify rules to send FJCT> packets to correct servers. FJCT> Any ideas? Am I going crazy? ;) FJCT> Thanks. FJCT> Paco FJCT> -- FJCT> Stop software patents! FJCT> examples: http://www.base.com/software-patents/examples.html FJCT> stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en FJCT> 11:44:07 up 1 day, 19:11, 1 user, load average: 0.09, 0.07, 0.04 -- Best regards, DarKRaveR mailto:DarKRaveR@habitat-b.de