FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-22-2012, 08:54 AM
lina
 
Default is it rational to close the 139 port

On Sun, Jul 22, 2012 at 4:44 PM, Joe <joe@jretrading.com> wrote:
> On Sun, 22 Jul 2012 16:37:16 +0800
> lina <lina.lastname@gmail.com> wrote:
>
>>
>> P.S I also found
>>
>> tcp 0 0 127.0.0.1:631 0.0.0.0:*
>> LISTEN tcp 0 0 127.0.0.1:25
>> 0.0.0.0:* LISTEN tcp 0 0
>> 0.0.0.0:538 0.0.0.0:* LISTEN
>>
>>
>> 631 is for network printer, I am confused why it need LISTEN here, I
>> only print once or twice each month.
>>
>> What 538 is for? I googled, but I don't have gdomap
>> installed, strange?
>>
>
> Run netstat -tupan as root, and it will also show you the processes
> associated with the ports. The -p does that, and as root, it will show
> all processes, not just yours.

# netstat -tupan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 5466/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:*
LISTEN 1945/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:*
LISTEN 2306/exim4
tcp 0 0 0.0.0.0:538 0.0.0.0:*
LISTEN 2366/gdomap
tcp 0 0 172.21.48.67:60259 208.93.141.90:80
TIME_WAIT -
tcp 0 0 172.21.48.67:55221 155.69.57.55:22
ESTABLISHED 5507/ssh
tcp 0 0 172.21.48.67:47085 74.125.235.54:443
TIME_WAIT -
tcp6 0 0 :::143 :::*
LISTEN 1866/couriertcpd
tcp6 0 0 :::80 :::*
LISTEN 1719/apache2
tcp6 0 0 :::22 :::*
LISTEN 5466/sshd
tcp6 0 0 ::1:631 :::*
LISTEN 1945/cupsd
udp 0 0 0.0.0.0:19777 0.0.0.0:*
2695/dhclient
udp 0 0 0.0.0.0:68 0.0.0.0:*
5405/dhclient
udp 0 0 0.0.0.0:68 0.0.0.0:*
2826/dhclient
udp 0 0 0.0.0.0:68 0.0.0.0:*
2695/dhclient
udp 0 0 172.21.48.67:123 0.0.0.0:*
2905/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:*
2905/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:*
2905/ntpd
udp 0 0 0.0.0.0:538 0.0.0.0:*
2366/gdomap
udp 0 0 0.0.0.0:53856 0.0.0.0:*
2826/dhclient
udp 0 0 0.0.0.0:54035 0.0.0.0:*
5405/dhclient
udp6 0 0 :::20444 :::*
5405/dhclient
udp6 0 0 :::28780 :::*
2695/dhclient
udp6 0 0 :::49268 :::*
2826/dhclient
udp6 0 0 fe80::ca2a:14ff:fe0:123 :::*
2905/ntpd
udp6 0 0 ::1:123 :::*
2905/ntpd
udp6 0 0 :::123 :::*
2905/ntpd
root@debian:/etc/iptables# dpkg --get-selections | grep gdomap

no gdomap installed,
# dpkg -L gdomap
Package `gdomap' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

But # which gdomap
/usr/bin/gdomap

Thanks,

P.S if you notice something abnormal form the netstat, please feel
free to let me know.

Best regards,
>
> --
> Joe
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/20120722094412.3cdc0f61@jretrading.com
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAG9cJmkoWEn=E38w7yvO_Wu5sxUoAxeGuqRA+_mTOHMBw5dyj w@mail.gmail.com
 
Old 07-22-2012, 08:58 AM
lina
 
Default is it rational to close the 139 port

sorry, this one is easy to read

# netstat -tupan | grep 538
tcp 0 0 0.0.0.0:538 0.0.0.0:*
LISTEN 2366/gdomap
udp 0 0 0.0.0.0:538 0.0.0.0:*
2366/gdomap


Thanks,


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAG9cJm=__m6UWqZKRHG3Svy=6Pjk3Z237n-pnjpj=gHJW6ta0A@mail.gmail.com
 
Old 07-22-2012, 09:18 AM
Joe
 
Default is it rational to close the 139 port

On Sun, 22 Jul 2012 16:44:13 +0800
lina <lina.lastname@gmail.com> wrote:

>
> Checked, now only 22 80 open with 443 closed.
> another thing is that the nmap can scan my MAC address correctly.
> is it bad? (I guess I will feel comfortable if the MAC address is
> hidden)
>

All network communication is actually based on MAC addresses, if it
can't be seen, you can't talk.

Try arp -a as root to see what other computers yours has recently
talked to. A cache is kept to speed things up, but only for a few
minutes, otherwise your computer has to broadcast to look up a link
between IP address and MAC.

If you have a rainy afternoon to while away, install Wireshark and have
a play with it. Try various network connections while a capture is
running, and play with the filtering. One day you will need to use it
in anger.

Here is a fragment of a capture showing my workstation trying to find
the server using the ARP protocol. It hasn't connected for a time, so
the server isn't in its cache:

No. Time Source Destination Protocol Length Info

5 5.007111000 Giga-Byt_xx:xx:xx Hewlett-_xx:xx:xx ARP 42
Who has 192.168.99.3? Tell 192.168.99.101

6 5.007315000 Hewlett-_xx:xx:xx Giga-Byt_xx:xx:xx ARP 60
192.168.99.3 is at xx:xx:xx:xx:xx:xx

Sorry about the wrap, but email isn't designed for this sort of thing.
Note that the first half of the MAC is a vendor ID, and Wireshark
decodes it.

--
Joe


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120722101816.4e778926@jretrading.com">http://lists.debian.org/20120722101816.4e778926@jretrading.com
 

Thread Tools




All times are GMT. The time now is 07:01 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org