Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
software to monitor ports activity
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Sat Nov 22, 2008 7:24 pm    Post subject: software to monitor ports activity Reply with quote

I've got a little problem, when my firewall is up I can't connect to samba, when it is down, samba is working, I want to findout which port is the problematic one, I've tried with tcpdump but I get alot of information, I need another program to cross reference the results, can you guys recommend me for logging which ports are been used or asked to be used
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
meal
n00b
n00b


Joined: 20 Nov 2006
Posts: 65
Location: Silesia / Poland

PostPosted: Sat Nov 22, 2008 7:58 pm    Post subject: Reply with quote

Have you allowed traffic on this port?

135 137 138 139 and 445
_________________
http://www.mkozak.pl
http://blog.mkozak.pl
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Sat Nov 22, 2008 8:17 pm    Post subject: Reply with quote

meal wrote:
Have you allowed traffic on this port?

135 137 138 139 and 445


yes, here are my rules for these ports:
Code:

/sbin/iptables -A INPUT -i eth0 -p tcp -m state --state NEW --dport 135 -d $host -j ACCEPT
/sbin/iptables -A INPUT -i eth0 -p udp -m state --state NEW --dport 137:139 -d $host -j ACCEPT
/sbin/iptables -A INPUT -i eth0 -p tcp -m state --state NEW --dport 137:139 -d $host -j ACCEPT
/sbin/iptables -A INPUT -i eth0 -p tcp -m state --state NEW --dport 426 -d $host -j ACCEPT
/sbin/iptables -A INPUT -i eth0 -p tcp -m state --state NEW --dport 445 -d $host -j ACCEPT

$hosts is a bunch of region addresses that I can be, I thought in switching them to 127.0.0.1 but I'm not sure if it will work
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
meal
n00b
n00b


Joined: 20 Nov 2006
Posts: 65
Location: Silesia / Poland

PostPosted: Sat Nov 22, 2008 8:46 pm    Post subject: Reply with quote

IIRC the "-d" argument must be a ip adresses class like 192.168.0.0/24 or specific address.
_________________
http://www.mkozak.pl
http://blog.mkozak.pl
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Sat Nov 22, 2008 9:18 pm    Post subject: Reply with quote

meal wrote:
IIRC the "-d" argument must be a ip adresses class like 192.168.0.0/24 or specific address.


it does, still, can you recommend a program?

OT: replacing 127.0.0.1 with all the address regions will work?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
meal
n00b
n00b


Joined: 20 Nov 2006
Posts: 65
Location: Silesia / Poland

PostPosted: Sat Nov 22, 2008 9:57 pm    Post subject: Reply with quote

127.0.0.1 wont allow you to connect from local network, cause it will open ports only on lo interface

You can use nmap from other computer and scan your machine [;
_________________
http://www.mkozak.pl
http://blog.mkozak.pl
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum