Networking Forums

Networking Forums > Computer Networking > Linux Networking > opening ports for applications

Reply
Thread Tools Display Modes

opening ports for applications

 
 
thomas.santos@gmail.com
Guest
Posts: n/a

 
      07-12-2007, 11:39 PM
Hi,

I've been working on porting a Windows application to Linux. The
application acts as a server which doesn't decide which port it will
listen on until it is actually run. This port is registered with a
different registration server. Clients can obtain the port (and host)
the application is listening to by querying the registration server.

So, my problem is with the firewall. IPTables allows me to open the
port up for the registration server (it's always listening on the same
port) it doesn't seem to allow opening ports on a application level
(ie. whatever port application X requests, allow it). I've had a quick
look at tcpwrappers but I don't really know if that's the solution
here (is my application easily moved to inetd?). Is there a way to
tackle this problem?

tom

 
Reply With Quote
 
 
 
 
Tim Southerwood
Guest
Posts: n/a

 
      07-12-2007, 11:43 PM
(E-Mail Removed) coughed up some electrons that declared:

> Hi,
>
> I've been working on porting a Windows application to Linux. The
> application acts as a server which doesn't decide which port it will
> listen on until it is actually run. This port is registered with a
> different registration server. Clients can obtain the port (and host)
> the application is listening to by querying the registration server.
>
> So, my problem is with the firewall. IPTables allows me to open the
> port up for the registration server (it's always listening on the same
> port) it doesn't seem to allow opening ports on a application level
> (ie. whatever port application X requests, allow it). I've had a quick
> look at tcpwrappers but I don't really know if that's the solution
> here (is my application easily moved to inetd?). Is there a way to
> tackle this problem?
>
> tom


Can you not fix the port (even it it still continues to register)?

Or fix it to within a very small range?

I take it the firewall isn't on the same box?

Tim
 
Reply With Quote
 
thomas.santos@gmail.com
Guest
Posts: n/a

 
      07-12-2007, 11:48 PM
On Jul 13, 9:43 am, Tim Southerwood <t...@dionic.net> wrote:
> thomas.san...@gmail.com coughed up some electrons that declared:
>
>
>
> > Hi,

>
> > I've been working on porting a Windows application to Linux. The
> > application acts as a server which doesn't decide which port it will
> > listen on until it is actually run. This port is registered with a
> > different registration server. Clients can obtain the port (and host)
> > the application is listening to by querying the registration server.

>
> > So, my problem is with the firewall. IPTables allows me to open the
> > port up for the registration server (it's always listening on the same
> > port) it doesn't seem to allow opening ports on a application level
> > (ie. whatever port application X requests, allow it). I've had a quick
> > look at tcpwrappers but I don't really know if that's the solution
> > here (is my application easily moved to inetd?). Is there a way to
> > tackle this problem?

>
> > tom

>
> Can you not fix the port (even it it still continues to register)?
>
> Or fix it to within a very small range?


Unfortunately this is out of my control :-(

> I take it the firewall isn't on the same box?


I only need to support the scenario where the server app and the
firewall are running on the same machine.

> Tim



 
Reply With Quote
 
Tim Southerwood
Guest
Posts: n/a

 
      07-13-2007, 06:44 AM
(E-Mail Removed) coughed up some electrons that declared:

>
> I only need to support the scenario where the server app and the
> firewall are running on the same machine.
>
>> Tim


That's easier then - can you have your app issue a netfilter update when it
knows it needs another hold in the firewall (or signal another process to
do so on its behalf)?

Cheers

Tim
 
Reply With Quote
 
Tim Southerwood
Guest
Posts: n/a

 
      07-13-2007, 08:50 AM
Tim Southerwood wrote:

> (E-Mail Removed) coughed up some electrons that declared:
>
>>
>> I only need to support the scenario where the server app and the
>> firewall are running on the same machine.
>>
>>> Tim

>
> That's easier then - can you have your app issue a netfilter update when
> it knows it needs another hold in the firewall (or signal another process

^^^^^
hole

> to do so on its behalf)?
>
> Cheers
>
> Tim


 
Reply With Quote
 
thomas.santos@gmail.com
Guest
Posts: n/a

 
      07-16-2007, 11:22 PM
On Jul 13, 5:44 pm, Tim Southerwood <t...@dionic.net> wrote:
> thomas.san...@gmail.com coughed up some electrons that declared:
>
>
>
> > I only need to support the scenario where the server app and the
> > firewall are running on the same machine.

>
> >> Tim

>
> That's easier then - can you have your app issue a netfilter update when it
> knows it needs another hold in the firewall (or signal another process to
> do so on its behalf)?


I can do a minor update to the code base like this but I was hoping I
could get away with changing as little code as possible, I was hoping
this would be a setup issue but if this is the easiest solution then I
can handle that.

thanks

tom

> Cheers
>
> Tim



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
opening ports S Reugebrink Windows Networking 2 11-12-2007 07:07 PM
Opening ports... =?Utf-8?B?TG9nYW5oYXJkdCE=?= Broadband Hardware 1 05-22-2006 04:44 AM
Opening Ports Kim Windows Networking 1 12-01-2005 07:59 PM
bind applications to ports Christian Christmann Linux Networking 1 03-03-2004 09:37 AM
Opening Ports Will Clarke Windows Networking 1 01-17-2004 07:08 PM



1 2 3 4 5 6 7 8 9 10 11