dbTalk Databases Forums  

Sybase Client Port Allocations

comp.databases.sybase comp.databases.sybase


Discuss Sybase Client Port Allocations in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
HP News Feed
 
Posts: n/a

Default Sybase Client Port Allocations - 05-17-2007 , 04:42 AM






A customer has asked me how Sybase allocates ports for client connections to
Sybase SQL Server 11.0 on OpenVMS. I know that the server listens on a
specific port for connection requests, in this case port 5010. I can see
using 'netstat -a' on the client PC that both application and ISQL sessions
to the server have an ESTABLISHED link to that port on the server, using a
port on the client. e.g. :

TCP MyClient:1177 MyServer:5010 ESTABLISHED
TCP MyClient:1186 MyServer:5010 ESTABLISHED
TCP MyClient:1194 MyServer:5010 ESTABLISHED

The top two (ports 1177 and 1186) are application connections, the bottom
one (port 1194) is an ISQL session.

My customer is planning on implementing a firewall between clients and
server, and needs to be able to allow/deny traffic on specific ports.
Consequently he needs to know the range of client-side ports that Sybase
will use for these connections. I have reviewed the documentation and
searched the internet but cannot find any information on the port ranges
that will be used. Are these fixed ? Configurable ? Any information would
be welcome.

Thanks,

Steve.



Reply With Quote
  #2  
Old   
Rob Verschoor
 
Posts: n/a

Default Re: Sybase Client Port Allocations - 05-17-2007 , 06:08 AM






The client-side port assignment is done by the OS, not by Sybase.

HTH,

Rob V.
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5 / TeamSybase

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE" (new edition!)
"The Complete Sybase ASE Quick Reference Guide" (new edition!)
"The Complete Sybase Replication Server Quick Reference Guide"

mailto:rob (AT) YOUR (DOT) SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

"HP News Feed" <steveTrilby.shadbolt (AT) hp (DOT) com> wrote

Quote:
A customer has asked me how Sybase allocates ports for client connections
to Sybase SQL Server 11.0 on OpenVMS. I know that the server listens on a
specific port for connection requests, in this case port 5010. I can see
using 'netstat -a' on the client PC that both application and ISQL sessions
to the server have an ESTABLISHED link to that port on the server, using a
port on the client. e.g. :

TCP MyClient:1177 MyServer:5010 ESTABLISHED
TCP MyClient:1186 MyServer:5010 ESTABLISHED
TCP MyClient:1194 MyServer:5010 ESTABLISHED

The top two (ports 1177 and 1186) are application connections, the bottom
one (port 1194) is an ISQL session.

My customer is planning on implementing a firewall between clients and
server, and needs to be able to allow/deny traffic on specific ports.
Consequently he needs to know the range of client-side ports that Sybase
will use for these connections. I have reviewed the documentation and
searched the internet but cannot find any information on the port ranges
that will be used. Are these fixed ? Configurable ? Any information
would be welcome.

Thanks,

Steve.





Reply With Quote
  #3  
Old   
HP News Feed
 
Posts: n/a

Default Re: Sybase Client Port Allocations - 05-17-2007 , 08:21 AM



Thanks for the prompt reply Rob. I don't suppose you know how the OS (Win
XP) chooses which port to use ? Does Sybase make a system call to get one
allocated ?

Regards,

Steve.

"Rob Verschoor" <rob (AT) DO (DOT) NOT.SPAM.sypron.nl.REMOVE.THIS.DECOY> wrote in
message news:c198c$464c387a$3ea37b30$29162 (AT) news (DOT) chello.nl...
Quote:
The client-side port assignment is done by the OS, not by Sybase.

HTH,

Rob V.
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5 / TeamSybase

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE" (new edition!)
"The Complete Sybase ASE Quick Reference Guide" (new edition!)
"The Complete Sybase Replication Server Quick Reference Guide"

mailto:rob (AT) YOUR (DOT) SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

"HP News Feed" <steveTrilby.shadbolt (AT) hp (DOT) com> wrote in message
news:f2h82o$3bp$1 (AT) news-pa1 (DOT) hpl.hp.com...
A customer has asked me how Sybase allocates ports for client connections
to Sybase SQL Server 11.0 on OpenVMS. I know that the server listens on a
specific port for connection requests, in this case port 5010. I can see
using 'netstat -a' on the client PC that both application and ISQL
sessions to the server have an ESTABLISHED link to that port on the
server, using a port on the client. e.g. :

TCP MyClient:1177 MyServer:5010 ESTABLISHED
TCP MyClient:1186 MyServer:5010 ESTABLISHED
TCP MyClient:1194 MyServer:5010 ESTABLISHED

The top two (ports 1177 and 1186) are application connections, the bottom
one (port 1194) is an ISQL session.

My customer is planning on implementing a firewall between clients and
server, and needs to be able to allow/deny traffic on specific ports.
Consequently he needs to know the range of client-side ports that Sybase
will use for these connections. I have reviewed the documentation and
searched the internet but cannot find any information on the port ranges
that will be used. Are these fixed ? Configurable ? Any information
would be welcome.

Thanks,

Steve.







Reply With Quote
  #4  
Old   
Rob Verschoor
 
Posts: n/a

Default Re: Sybase Client Port Allocations - 05-17-2007 , 09:18 AM



I cannot help you with that, sorry...

Rob V.

"HP News Feed" <steveTrilby.shadbolt (AT) hp (DOT) com> wrote

Quote:
Thanks for the prompt reply Rob. I don't suppose you know how the OS (Win
XP) chooses which port to use ? Does Sybase make a system call to get one
allocated ?

Regards,

Steve.

"Rob Verschoor" <rob (AT) DO (DOT) NOT.SPAM.sypron.nl.REMOVE.THIS.DECOY> wrote in
message news:c198c$464c387a$3ea37b30$29162 (AT) news (DOT) chello.nl...
The client-side port assignment is done by the OS, not by Sybase.

HTH,

Rob V.
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5 / TeamSybase

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE" (new edition!)
"The Complete Sybase ASE Quick Reference Guide" (new edition!)
"The Complete Sybase Replication Server Quick Reference Guide"

mailto:rob (AT) YOUR (DOT) SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

"HP News Feed" <steveTrilby.shadbolt (AT) hp (DOT) com> wrote in message
news:f2h82o$3bp$1 (AT) news-pa1 (DOT) hpl.hp.com...
A customer has asked me how Sybase allocates ports for client connections
to Sybase SQL Server 11.0 on OpenVMS. I know that the server listens on
a specific port for connection requests, in this case port 5010. I can
see using 'netstat -a' on the client PC that both application and ISQL
sessions to the server have an ESTABLISHED link to that port on the
server, using a port on the client. e.g. :

TCP MyClient:1177 MyServer:5010 ESTABLISHED
TCP MyClient:1186 MyServer:5010 ESTABLISHED
TCP MyClient:1194 MyServer:5010 ESTABLISHED

The top two (ports 1177 and 1186) are application connections, the
bottom one (port 1194) is an ISQL session.

My customer is planning on implementing a firewall between clients and
server, and needs to be able to allow/deny traffic on specific ports.
Consequently he needs to know the range of client-side ports that Sybase
will use for these connections. I have reviewed the documentation and
searched the internet but cannot find any information on the port ranges
that will be used. Are these fixed ? Configurable ? Any information
would be welcome.

Thanks,

Steve.









Reply With Quote
  #5  
Old   
Michael Peppler
 
Posts: n/a

Default Re: Sybase Client Port Allocations - 05-21-2009 , 12:42 AM



On Thu, 17 May 2007 15:21:53 +0100, HP News Feed wrote:

Quote:
Thanks for the prompt reply Rob. I don't suppose you know how the OS (Win
XP) chooses which port to use ? Does Sybase make a system call to get one
allocated ?
Sybase just makes an OS system call to create the socket. There is no way
to know which ports this will use.

The firewall should be built in such a way that connections opened from
inside the firewall to the allowed port (say port 5000) are allowed, but
that connections that aren't initiated from inside the secure zone aren't
allowed.

Michael
--
Michael Peppler - Peppler Consulting SaRL
mpeppler (AT) peppler (DOT) org - http://www.peppler.org
Sybase DBA/Developer - TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ - http://www.peppler.org/FAQ/linux.html



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.