BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old February 15th, 2004, 04:58 AM
lunatic lunatic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 150 lunatic User rank is Private First Class (20 - 50 Reputation Level)lunatic User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 h 50 m 39 sec
Reputation Power: 6
Question how to delete listening addresses

Hello,

Background:
I just got this new VPS web hosting account and they included packages that you can install. So far I've installed the following

MySQL
PHP4
Procmail
Samba w/Swat
Webmin

I couldn't get samba to work so i deleted the pgk. I also didn't find webmin useful so I deleted that as well.

The issue:
I ran netstat and found a few entries. One being SWAT:
tcp4 0 0 domain.swat *.* LISTEN

I don't use swat and unless there is a reason to have it listen, i'd like to close it. If possible undo anything the samba/swat install modified/added.

The second entry i have is this:
tcp4 0 0 domain.aol *.* LISTEN

Now I have no clue as to how this got there nor do i know how to connect using it - whatever it is. but as above unless there is a reason not to, id like to close that as well..

there are some others that I don't understand but were there from the beginning:
tcp4 0 0 domain.3306 *.* LISTEN
tcp4 0 0 domain.submission *.* LISTEN

any ideas as to what this is listening for?

Thanks in advance

Last edited by lunatic : February 15th, 2004 at 05:02 AM.

Reply With Quote
  #2  
Old February 15th, 2004, 08:56 AM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
You don't say what OS you're using.

Disable swat by commenting out the corresponding line in /etc/inetd.conf and restarting inetd.

3306 is mysql, submission is your mta mail submission queue runner, aol port (5190) is probably something to do with webmin - you might find out more info by running sockstat.

Reply With Quote
  #3  
Old February 15th, 2004, 09:19 AM
lunatic lunatic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 150 lunatic User rank is Private First Class (20 - 50 Reputation Level)lunatic User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 h 50 m 39 sec
Reputation Power: 6
Thumbs up

Sorry munkfish,

I'm running FreeBSD 4.7

I did comment out swat line in inetd.conf and then restarted apache. Which of course as you know did not work.

I didn't see any line for aol within the inetd.conf so I commented out the aol lines in /etc/services. restarted inetd and the system is not listening of those anymore.

Thanks munkfish.

Reply With Quote
  #4  
Old February 15th, 2004, 11:27 AM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
Quote:
I did comment out swat line in inetd.conf and then restarted apache. Which of course as you know did not work.

You need to restart inetd, not apache. This should work:

Code:
ps aux | grep "[i]netd" | awk '{print $2'} | xargs kill -HUP


Commenting out the aol lines in /etc/services is not a good idea and will not disable the 'aol' port - you should never have to manually edit /etc/services. /etc/services simply maps port numbers to names so that utilities / applications can provide a human readable description of ports.

If you look again at your netstat output you should still see that the aol port - port 5190 is still open (unless you did something else in the meantime to disable it).

As an example - if you run 'netstat' without any options, it will attempt to resolve port numbers to names using /etc/services. However if you run 'netstat -n' then no name resolution will occur via /etc/services - only the port numbers will show without any long names.

Reply With Quote
  #5  
Old February 15th, 2004, 07:59 PM
lunatic lunatic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 150 lunatic User rank is Private First Class (20 - 50 Reputation Level)lunatic User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 h 50 m 39 sec
Reputation Power: 6
Yup, you're right about that one. Running netstat did show domain.5190. So I uncommented those aol lines.

This is what I got when running sockstat:

root sendmail 2377 5 tcp4 204.200.195.204:5190 *:*

so it doesn't seem like it's for AOL instant messenger. I guess I should keep this one. Oh you know what it may be? I have AOL as my ISP. Sometimes outlook will not send email through AOL port 25. It just sits in the outbox. So my WHP (web hosting provider) said to use 5190. So I guess I deffenitely should keep that one.

Thanks for the help munkfish

Last edited by lunatic : February 15th, 2004 at 08:05 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > how to delete listening addresses


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway