Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-13-2001, 12:02 PM
|
#1
|
Member
Registered: Aug 2001
Distribution: Red Hat
Posts: 61
Rep:
|
Named and Port 4232
Okay, I just discovered that named my Bind server is using port 4232, I can't tell exactly why or when and it isn't really set to listen, but does anybody have any ideas why it would use that port. I was under the impression that DNS works off of 53 UDP and TCP. Also does anybody no how I would correct this issue, and remove BIND from port 4232? I do know that when I block port 4232, I basically can't ping or ftp out from my server. I have searched and searched for an explenation of why that port was used, and I have found literally nothing, this port range is even reserved for some kind of VRML setup according to all the lists I have scanned, so this doesn't make any sense to me at all.
TIA
Mike.
|
|
|
11-13-2001, 02:47 PM
|
#2
|
Member
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857
Rep:
|
I also have not found any mention of port 4232 and DNS/BIND. I did find some references to SNMP and maybe CGI on those ports, but those vague at best.
How do you know BIND is the service using the port? What are you using to determine that?
If you don't get any additional info or help.. I would suggest writing to the developers of BIND at http://www.isc.org/ or posting something to comp.protocols.dns.bind
Good luck.
|
|
|
11-14-2001, 12:39 PM
|
#3
|
Member
Registered: Aug 2001
Distribution: Red Hat
Posts: 61
Original Poster
Rep:
|
When I do a netstat -alnp it lists all net information including servers, and it also show what programs are bound to that port with the -p option. and it shows that named is bound to it. I also found a line in my messages log to this affect:
Nov 12 11:11:11 hostname named[398]: Forwarding source address is [0.0.0.0].4231
I also noticed that when Bind is restarted a new number is used, and it seems to be a randomn number. Which brings up a new question, does anybody know what range of numbers Bind uses for that? The port doesn't appear to be listening, but when I block it, my DNS becomes non funcitonal. Any ideas what a Forwarding Source address is? Thanks for your help!
Mike.
|
|
|
11-14-2001, 03:37 PM
|
#4
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Rep:
|
what user is BIND installed/running as? I heard something about priveleged ports only binding for root, or users with.. priveleged access? Maybe that has something to do with it not BINDing to 53.
|
|
|
11-14-2001, 04:28 PM
|
#5
|
Member
Registered: Aug 2001
Distribution: Red Hat
Posts: 61
Original Poster
Rep:
|
the wierd thing is it is also using Port 53. And the 4000 level port it uses is strictly for UDP, not TCP, so I have Port 53 open for my Loopback and my IP on TCP, and I have a randomn port open along with 53 open on my loopback and IP but only in UDP. The daemon is running as user named, which I have heard to be very common, and it is also the default install for RH I believe. I believe that this isn't an attack or anything to be concerned about, but I am looking for some insite into it so I can develop my firewall around it. Thanks again for the responses.
|
|
|
11-16-2001, 10:26 AM
|
#6
|
Member
Registered: Aug 2001
Distribution: Red Hat
Posts: 61
Original Poster
Rep:
|
anybody else?
|
|
|
11-16-2001, 11:02 AM
|
#7
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Rep:
|
I asked our resident DNS guru, and here is the explanation I got.
TCP IP sessions work as follow: A daemon listens on a particular port (named=53). This is what incoming connections will link to. It must remain open to listen for many connections that are coming in constantly. When the outgoing connection is made back to the client, you will see the service bind to an available unpriveleged port (>1024) for an outgoing connection. This outgoing connection will connect to the client on the same port it connected from initially, (named = 53.)
Per this logic, what you are seeing is a reply connection on the higher port back to a client. It is not a straight and consistent pipe between the two hosts on port 53 solely.
This should not impact your firewall setup. Today's firewalls are stateful, meaning that they can distinguish a connection that has already been established on an open port, but that will connect out on an unpriveleged port (based on the flags and headers, how they are set). Regardless whether your firewall configuration is set to open those higher ports specifically, if it is stateful, you will be ok. Besides, where they are random ports chosen most of the time, (mine has a connection on 3008) how would you really manage the config of the firewall at that point? leave open an entire range of services?
If anyone can see where i'm mistaken on this, please let me know, but it sounds about right.
|
|
|
All times are GMT -5. The time now is 10:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|