openBSD netstat cheat sheet : 

# netstat -anf inet 
Active Internet connections (including servers)
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
ip           0      0  *.*                    *.*                    17
Active Internet connections (including servers)
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp          0      0  127.0.0.1.8953         *.*                    LISTEN
tcp          0      0  127.0.0.1.53           *.*                    LISTEN
tcp          0      0  127.0.0.1.111          *.*                    LISTEN
tcp          0      0  *.111                  *.*                    LISTEN
tcp          0      0  192.168.0.24.22        192.168.0.23.38090     ESTABLISHED
tcp          0      0  *.179                  *.*                    LISTEN
tcp          0      0  127.0.0.1.587          *.*                    LISTEN
tcp          0      0  127.0.0.1.25           *.*                    LISTEN
tcp          0      0  *.22                   *.*                    LISTEN
Active Internet connections (including servers)
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
udp          0      0  127.0.0.1.53           *.*                   
udp          0      0  127.0.0.1.111          *.*                   
udp          0      0  *.111                  *.*                   
udp          0      0  192.168.0.24.36808     62.210.207.122.123    
udp          0      0  192.168.0.24.28749     178.33.227.201.123    
udp          0      0  192.168.0.24.47345     129.250.35.250.123    
udp          0      0  192.168.0.24.43207     212.83.133.51.123     
udp          0      0  *.514                  *.*