How to disable port/service in Ubuntu 8.04
Mark Haney
mhaney at ercbroadband.org
Thu Aug 28 12:02:01 UTC 2008
Ashish Yadav wrote:
>> If you want to disable a particular port, find out what's running on
>> that port and stop it. "netstat -a" sometimes helps.
>>
>
> That is my question, *how* to stop it from running?
> From example if there is http server running and I don''t want it to
> run when my system starts where do I go and make changes?
> I could very simply do that by renaming scripts in init based systems,
> here I don't have clue.
>
>> Alternatively, set up a packet filter (iptables plus one of the many
>> front ends to it) and block everything except stuff you know you want.
>> Actually it's a good idea to do this anyway - it stops accidents (and
>> ignorant or malicious users).
>>
> I have firestarter running, however that also doesn't provide a method
> to close the ports.
>
> I could do that in firewall configuration in Fedora, here there is
> just no option to do that here in firestarter.
>
Let's see, in Fedora you can use chkconfig to do it. IIRC, you could
edit the (or remove) the init script in /etc/rc<runlevel).d/.
Granted there /has/ to be a scripted way to do it in Ubuntu, but since I
am used to manually editing files, I don't know it.
--
Libenter homines id quod volunt credunt -- Caius Julius Caesar
Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415
Call (866) ERC-7110 for after hours support
More information about the ubuntu-users
mailing list