-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm running stock FreeBSD with services running: samba (connections allowed only from local network), lpd (same), bind (all interfaces), apache (all), zope (local) This machine is home gateway/http/printserver. Recently some strange things happened as my printer all of sudden started to print stuff when nobody prints... luckily (or unluckily) it ran out of ink so I can't tell what's printed. Checked programs running, ports opened and found one unidentified: udp4 0 0 *.49152 *.* dimon@gateway ~ > sockstat | grep 49152 bind named 270 4 udp4 *:49152 *:* Now', is there any reason for bind to use this port? Googling for that subject didn't bring any results other than usualy this port is first available for dynamic ports. Which doesn't make sence to me. System: FreeBSD 5.1 - -- Dmitry Makovey Web Systems Administrator Athabasca University (780) 675-6245 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/s8mAyDrVuGfS98QRAlo6AJ9Miz8bbYjkldiTvSGOd+LfwY/3CACcCQAj eNMb97scSLfQDvoHE6nx+L8=p4RL -----END PGP SIGNATURE-----
On Thu, Nov 13, 2003 at 11:12:10AM -0700, Dmitry S. Makovey wrote:> dimon@gateway ~ > sockstat | grep 49152 > bind named 270 4 udp4 *:49152 *:* > > Now', is there any reason for bind to use this port? Googling for > that subject didn't bring any results other than usualy this port is > first available for dynamic ports. Which doesn't make sence to me.It's the port it uses for sysqueries. You can tell named to use a specific port using the query-source option. ATB, james
On Thu, 13 Nov 2003, Dmitry S. Makovey wrote:> dimon@gateway ~ > sockstat | grep 49152 > bind named 270 4 udp4 *:49152 *:* > > Now', is there any reason for bind to use this port? > Googling for that subject didn't bring any results other than usualy this port > is first available for dynamic ports. Which doesn't make sence to me. > > System: > FreeBSD 5.1 > > - -- > Dmitry MakoveyBind uses a dynamically bound port for outbound DNS queries. 5.1 uses a different range of ports (49152-65535) for dynamic ports than 4.x did (1024-5000). If you search for bind and port 1024, you'll find hundreds of people asking the same question. :) Mike "Silby" Silbersack