(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)