NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PF configuration for munin

hi all.

Please tell me PF configuration for munin (

In the following, the munin running on host A ( hostname is mogu ).
I run nmap on the host B .
these hosts in local area network.

host A:
% uname -a
NetBSD 5.99.58 NetBSD 5.99.58 (MYKERNEL) #0: Mon Dec
26 21:16:57 JST 2011 i386

host B:
% uname -a
Linux ubuntu2 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC
2011 i686 i686 i386 GNU/Linux

/etc/pf.conf on host A:

ext_if = "pcn0"
lo_if = "lo0"
tcp_services = "{ ssh, www, smtp, domain, munin, netbios-ssn,
microsoft-ds }"
udp_services = "{ domain, netbios-ns, netbios-dgm }"
priv_nets = "{,, }"

pass in on $ext_if inet proto tcp from any to ($ext_if) port
$tcp_services flags S/SA keep state
pass in on $ext_if inet proto udp from any to ($ext_if) port $udp_services

/etc/services have "munin"

% grep munin /etc/services
munin 4949/tcp # Munin Graphing Framework
munin 4949/udp # Munin Graphing Framework

munin is running on host A:

% telnet localhost 4949
Trying ::1...
telnet: connect to address ::1: No route to host
Connected to localhost.
Escape character is '^]'.
# munin node at
irqstats processes postfix_mailqueue if_errcoll_pcn0 memory_types
swap_size memory_pools df netstat interrupts uptime swap load nfsd cpu
if_pcn0 iostat forks open_files memory vmstat iostat_ops nfs_client
Connection closed by foreign host.

( that's ok )

But can not telnet from host B.

% telnet mogu 4949
Connected to
Escape character is '^]'.
Connection closed by foreign host.

run nmap from host B, port is not open:
( 4949 not found )

% sudo nmap mogu

Starting Nmap 5.21 ( ) at 2012-01-13 22:51 JST
Nmap scan report for mogu (
Host is up (0.00036s latency).
rDNS record for
Not shown: 996 closed ports
22/tcp open ssh
80/tcp open http
139/tcp open netbios-ssn
445/tcp open microsoft-ds
MAC Address: 00:0C:29:67:4E:FB (VMware)

Nmap done: 1 IP address (1 host up) scanned in 14.39 seconds

.... I wrong setting ?

Home | Main Index | Thread Index | Old Index