[Fwd: Re: [SlugBug] simple iptables question]

Bill Best bill at commedia.org.uk
Mon Feb 2 14:48:01 GMT 2004


i had hit 'reply' instead of 'reply all' so for the sake of completeness 
here's Bruno's answer:

On Mon 02-Feb-2004 at 01:45:27PM +0000, Bill Best wrote:
> Bruno Postle wrote:
> 
> >lsof -i (or netstat -a) should tell you.
> 
> thanks for your reply.  i get the following results:
> 
> xxxxx:~# lsof -i | grep http
> httpd      306     root   16u  IPv4   1833       TCP *:webcache (LISTEN)
> httpd      307     root   16u  IPv4   1833       TCP *:webcache (LISTEN)
> httpd      308     root   16u  IPv4   1833       TCP *:webcache (LISTEN)
> httpd      309     root   16u  IPv4   1833       TCP *:webcache (LISTEN)
> httpd      310     root   16u  IPv4   1833       TCP *:webcache (LISTEN)
> httpd      311     root   16u  IPv4   1833       TCP *:webcache (LISTEN)
> xxxxx:~# netstat -a | grep http
> xxxxx:~#
> 
> ps aux tells me that httpd is running - so i'm not sure what's going on 
> here...

Your apache is running on port 8080 (webcache).

Just edit the httpd.conf file and change all the 8080 references to
80 and everything will be tickety-boo.

> incidentally, i am running Apache v1.3 and i want to ensure that it does 
> not upgrade Apache - will it automatically *not* upgrade this 
> application?  i have checked this by doing the following:
> 
> xxxxx:~# apt-get upgrade --dry-run
> Reading Package Lists... Done
> Building Dependency Tree... Done
> 0 packages upgraded, 0 newly installed, 0 to remove and 0  not upgraded.
> xxxxx:~#
> 
> and it indicates that it's going to leave Apache as it is - anybody know 
> how it knows not to upgrade my Apache installation?

This looks like a hand compiled apache running from
/usr/local/apache - I wouldn't expect a normal rpm httpd to bind to
8080 by default.

apt/rpm won't know about this apache.

-- 
Bruno

the above all works much better:

xxxxx:~# lsof -i | grep http
httpd     192     root   17u  IPv4   6601       TCP *:www (LISTEN)
httpd     553     root   17u  IPv4   6601       TCP *:www (LISTEN)
httpd     554     root   17u  IPv4   6601       TCP *:www (LISTEN)
httpd     555     root   17u  IPv4   6601       TCP *:www (LISTEN)
httpd     556     root   17u  IPv4   6601       TCP *:www (LISTEN)
httpd     557     root   17u  IPv4   6601       TCP *:www (LISTEN)
xxxxx:~#

but i now need to accept https connections on this server - i assume 
that it would now be a case of simply editing httpd.conf and adding Port 
443...

many thanks to all

bb


More information about the SlugBug mailing list