Documentation ¶
Overview ¶
Package portfiltering implements the portfiltering experiment
Spec: https://github.com/ooni/spec/blob/master/nettests/ts-038-port-filtering.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ports = []string{
"80",
"631",
"161",
"137",
"123",
"138",
"1434",
"135",
"67",
"23",
"53",
"443",
"21",
"22",
"500",
"68",
"520",
"1900",
"25",
"4500",
"514",
"49152",
"162",
"69",
"5353",
"49154",
"3389",
"110",
"1701",
"998",
"996",
"997",
"999",
"3283",
"49153",
"445",
"1812",
"136",
"139",
"143",
"2222",
"3306",
"2049",
"32768",
"5060",
"8080",
"1433",
"3456",
"1723",
"111",
"995",
"993",
"20031",
"1026",
"7",
"5900",
"1646",
"1645",
"593",
"1025",
"518",
"2048",
"626",
}
List generated from nmap-services: https://github.com/nmap/nmap/blob/master/nmap-services Note: Using privileged ports like :80 requires elevated permissions
Functions ¶
func NewExperimentMeasurer ¶
func NewExperimentMeasurer(config Config) model.ExperimentMeasurer
NewExperimentMeasurer creates a new ExperimentMeasurer.
Types ¶
type Config ¶
type Config struct { // Delay is the delay between each repetition (in milliseconds). Delay int64 `ooni:"number of milliseconds to wait before testing each port"` }
Config contains the experiment configuration.
type Measurer ¶
type Measurer struct {
// contains filtered or unexported fields
}
Measurer performs the measurement.
func (*Measurer) ExperimentName ¶
ExperimentName implements ExperimentMeasurer.ExperiExperimentName.
func (*Measurer) ExperimentVersion ¶
ExperimentVersion implements ExperimentMeasurer.ExperimentVersion.
type TestKeys ¶
type TestKeys struct {
TCPConnect []*model.ArchivalTCPConnectResult `json:"tcp_connect"`
}
TestKeys contains the experiment results.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.