Networking Forums

Networking Forums > Computer Networking > Linux Networking > Want to know needed open ports for internet connection

Reply
Thread Tools Display Modes

Want to know needed open ports for internet connection

 
 
kennux
Guest
Posts: n/a

 
      01-20-2004, 11:48 AM
Hi all!

I just have internet at home and i want to know the minimum numbers of
ports which must be open to my connection works properly.
a nmap localhost gives :
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
6000/tcp open X11

but did the ports 111, 139, 445 (which i know are vulnerable under
win... bip )
must be open?

I use the following script :
http://monmotha.mplug.org/firewall/index.php
for my firewall. Moreover when launching this, it gives :

Setting up drop chains chains: iptables: No chain/target/match by that
name
LDROP iptables: No chain/target/match by that name
LREJECT TREJECT iptables: No chain/target/match by that name
Setting up per-proto ACCEPT: iptables: No chain/target/match by that
name
TCPACCEPT iptables: No chain/target/match by that name

the others messages look good..

Thanks

Kennux, a french linux addict
 
Reply With Quote
 
 
 
 
Michael W. Cocke
Guest
Posts: n/a

 
      01-20-2004, 02:40 PM
On 20 Jan 2004 04:48:29 -0800, (E-Mail Removed) (kennux) wrote:

>Hi all!
>
>I just have internet at home and i want to know the minimum numbers of
>ports which must be open to my connection works properly.
>a nmap localhost gives :
>111/tcp open rpcbind
>139/tcp open netbios-ssn
>445/tcp open microsoft-ds
>6000/tcp open X11
>
>but did the ports 111, 139, 445 (which i know are vulnerable under
>win... bip )
>must be open?


Only if you want to test your vulnerability to viruses...

What ports need to be open depends on exactly what you're doing/want
to do. Take a look thru /etc/services.

Mike-

Mornings: Evolution in action. Only the grumpy will survive.
-----------------------------------------------------

Please note - Due to the intense volume of spam, we have
installed site-wide spam filters at catherders.com. If
email from you bounces, try non-HTML, non-encoded,
non-attachments.


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      01-20-2004, 03:17 PM
(E-Mail Removed) (kennux) said:
>I just have internet at home and i want to know the minimum numbers of
>ports which must be open to my connection works properly.


Depends on your use. F.ex. I don't have any specific inbound openings,
and my connection works fine.

In _very_ short form:

# set up default policies
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
iptables -P INPUT DROP
# empty&delete all current rules
iptables -F
iptables -X
# define acceptable inbound traffic
iptables -I INPUT -i lo -j ACCEPT
iptables -I INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

The above will allow all locally-initiated communication, but drop to
floor all connection attempts that come from outside. Start from that,
check groups.google.com for my other postings either in this group or in
comp.os.linux.security to work your way from the above to fill your
specific connectivity needs.

>a nmap localhost gives :


Note, your fw rules may well be set up so that there's no filtering for
traffic arriving from localhost interface - so nmap localhost may give
very different results than scanning from outside.

>but did the ports 111, 139, 445 (which i know are vulnerable under
>win... bip )
>must be open?


No need for your Internet connectivity. Do you want to provide samba
(Windows file-share) services to someone over the Internet?

>I use the following script :
>http://monmotha.mplug.org/firewall/index.php
>for my firewall.


Do you understand it?
If not, then don't use it until you understand. Anyway, it's changing the
security settings of your system - and I consider changing security
settings without understanding the details is a bad habit.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Router needed for sony psp internet connection? Roland Wireless Networks 0 08-20-2009 09:26 AM
Internet Explorer will not open w wireless connection Suzy Wireless Networks 3 05-24-2007 05:00 PM
Scanning / Picking Up an Open / Internet connection. What equipment do I need? JimBob Wireless Internet 1 11-22-2006 11:23 PM
MN-700 Open Ports For MSN Reik0Shea@hotmail.com Broadband Hardware 1 08-26-2004 09:31 AM
Open Ports Mickey Windows Networking 10 02-10-2004 09:16 AM



1 2 3 4 5 6 7 8 9 10 11