Revamp Profile Domains and Ports to Endpoints and ServiceEndpoints
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package profile
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/Safing/portmaster/status"
|
||||
)
|
||||
|
||||
@@ -32,50 +30,14 @@ func makeDefaultFallbackProfile() *Profile {
|
||||
Related: status.SecurityLevelDynamic,
|
||||
PeerToPeer: status.SecurityLevelDynamic,
|
||||
},
|
||||
Ports: map[int16][]*Port{
|
||||
6: []*Port{
|
||||
&Port{ // SSH
|
||||
Permit: true,
|
||||
Created: time.Now().Unix(),
|
||||
Start: 22,
|
||||
End: 22,
|
||||
},
|
||||
&Port{ // HTTP
|
||||
Permit: true,
|
||||
Created: time.Now().Unix(),
|
||||
Start: 80,
|
||||
End: 80,
|
||||
},
|
||||
&Port{ // HTTPS
|
||||
Permit: true,
|
||||
Created: time.Now().Unix(),
|
||||
Start: 443,
|
||||
End: 443,
|
||||
},
|
||||
&Port{ // SMTP (TLS)
|
||||
Permit: true,
|
||||
Created: time.Now().Unix(),
|
||||
Start: 465,
|
||||
End: 465,
|
||||
},
|
||||
&Port{ // SMTP (STARTTLS)
|
||||
Permit: true,
|
||||
Created: time.Now().Unix(),
|
||||
Start: 587,
|
||||
End: 587,
|
||||
},
|
||||
&Port{ // IMAP (TLS)
|
||||
Permit: true,
|
||||
Created: time.Now().Unix(),
|
||||
Start: 993,
|
||||
End: 993,
|
||||
},
|
||||
&Port{ // IMAP (STARTTLS)
|
||||
Permit: true,
|
||||
Created: time.Now().Unix(),
|
||||
Start: 143,
|
||||
End: 143,
|
||||
},
|
||||
ServiceEndpoints: []*EndpointPermission{
|
||||
&EndpointPermission{
|
||||
DomainOrIP: "",
|
||||
Wildcard: true,
|
||||
Protocol: 0,
|
||||
StartPort: 0,
|
||||
EndPort: 0,
|
||||
Permit: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user