Unix Technical Forum

how to close ports ...

This is a discussion on how to close ports ... within the AIX Operating System forums, part of the Unix Operating Systems category; --> on AIX 5.2 i mean how to close port 6666 on the box which is not behind firewall ? ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 04:39 AM
g0c
 
Posts: n/a
Default how to close ports ...

on AIX 5.2

i mean how to close port 6666 on the box
which is not behind firewall ?
is there some kinda internal firewall ? */me hides*

thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 04:39 AM
Ian Northeast
 
Posts: n/a
Default Re: how to close ports ...

On Wed, 10 Nov 2004 15:19:45 +0100, g0c wrote:

> on AIX 5.2
>
> i mean how to close port 6666 on the box which is not behind firewall ?
> is there some kinda internal firewall ? */me hides*


AIX has no kernel based firewall.

Stop the service which is listening on 6666, or change it so it only
listens on localhost. It isn't a standard service.

Regards, Ian

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 04:39 AM
Ken Bell
 
Posts: n/a
Default Re: how to close ports ...

In article <cmt821$8l0$1@fegnews.vip.hr>, g0c <REMOVEg0c@msn.com> wrote:
>on AIX 5.2
>
>i mean how to close port 6666 on the box
>which is not behind firewall ?


Ian Northeast already answered this in his reply, assuming that
you're concerned about incoming traffic to port 6666.

To prohibit outgoing traffic from (or to) port 6666, you would need
some sort of packet filter or firewall.

>is there some kinda internal firewall ? */me hides*


Yes, look at the bos.net.ipsec.rte package. You can configure this
using "smit", under:

Communications Applications and Services
-> TCP/IP
-> Configure IP Security

--
Ken Bell :: kenbell@panix.com :: (212) 475-4976 (voice)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 04:40 AM
Florian Heigl
 
Posts: n/a
Default Re: how to close ports ...

Ian Northeast <ian@house-from-hell.demon.co.uk> wrote in message
news:<pan.2004.11.10.21.54.26.835781@house-from-hell.demon.co.uk>...
> On Wed, 10 Nov 2004 15:19:45 +0100, g0c wrote:
>
> > on AIX 5.2
> >
> > i mean how to close port 6666 on the box which is not behind firewall ?
> > is there some kinda internal firewall ? */me hides*

>
> AIX has no kernel based firewall.


it has, man genfilt

> Stop the service which is listening on 6666, or change it so it only
> listens on localhost. It isn't a standard service.


surely the better way, or the original poster might want to check if the
application (ircd???) is able to listen on specific addresses only.

regards,
florian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 06:09 AM
g0c
 
Posts: n/a
Default Re: how to close ports ...

"Florian Heigl" <florian.heigl@gmx.de> wrote in message
news:29a7918d.0411110723.69e94e42@posting.google.c om...
> Ian Northeast <ian@house-from-hell.demon.co.uk> wrote in message
> news:<pan.2004.11.10.21.54.26.835781@house-from-hell.demon.co.uk>...
>> On Wed, 10 Nov 2004 15:19:45 +0100, g0c wrote:
>>
>> > on AIX 5.2
>> >
>> > i mean how to close port 6666 on the box which is not behind firewall ?
>> > is there some kinda internal firewall ? */me hides*

>>
>> AIX has no kernel based firewall.

>
> it has, man genfilt
>
>> Stop the service which is listening on 6666, or change it so it only
>> listens on localhost. It isn't a standard service.

>
> surely the better way, or the original poster might want to check if the
> application (ircd???) is able to listen on specific addresses only.
>
> regards,
> florian


hi, i forgot to mention there is nothing that listens on that
port, i just want to make sure that this port cannot be used,
yeah i know ... silly question, but it is bounded to hackers using this port
for irc bouncers, mail spamming with perl and irc dcc filesharing

thanks
again


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 06:10 AM
Holger van Koll
 
Posts: n/a
Default Re: how to close ports ...


> hi, i forgot to mention there is nothing that listens on that
> port, i just want to make sure that this port cannot be used,


you could simply let something listening there, so it cannot be used by
other processes

grep mybulk /etc/services /etc/inetd.conf
/etc/services:mybulk 6666/tcp
/etc/inetd.conf:mybulk stream tcp nowait nobody /usr/bin/pwd

would be enough
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-05-2008, 06:11 AM
Florian Heigl
 
Posts: n/a
Default Re: how to close ports ...

"g0c" <REMOVEg0c@msn.com> wrote in message news:<cn21gf$mmc$1@fegnews.vip.hr>
....
> "Florian Heigl" <florian.heigl@gmx.de> wrote in message
> news:29a7918d.0411110723.69e94e42@posting.google.c om

....
> > Ian Northeast <ian@house-from-hell.demon.co.uk> wrote in message
> > news:<pan.2004.11.10.21.54.26.835781@house-from-hell.demon.co.uk>

....

> hi, i forgot to mention there is nothing that listens on that
> port, i just want to make sure that this port cannot be used,
> yeah i know ... silly question, but it is bounded to hackers using this port
> for irc bouncers, mail spamming with perl and irc dcc filesharing


reasonable enough
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-05-2008, 06:17 AM
Jose Pina Coelho
 
Posts: n/a
Default Re: how to close ports ...

"g0c" <REMOVEg0c@msn.com> wrote in news:cn21gf$mmc$1@fegnews.vip.hr:
> hi, i forgot to mention there is nothing that listens on that
> port, i just want to make sure that this port cannot be used,
> yeah i know ... silly question, but it is bounded to hackers using
> this port for irc bouncers, mail spamming with perl and irc dcc
> filesharing


g0c:

1 - If no process is listening on the port, then no one from the outside
can connect to it.
2 - If the machine is compromised, then the machine is compromised, and
they can easily remove any hack used to reserve the port.
3 - The only way to ensure this is at the firewall level, by only allowing
a specified set of services to arrive at this machine, and that this
machine can only use a specified set of services for exit traffic.
4 - Anything else is just trying to pretend you won't have a problem.

--
Doing AIX support was the most monty-pythonesque
activity available at the time.
Eagerly awaiting my thin chocolat mint.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:27 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com