Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RoutingTable is the routing table RoutingTable = "42111" // RulePriority1 is the first routing rule priority. It must be unique, // higher than the local rule, lower than the main and default rules, // lower than the second routing rule priority RulePriority1 = "2111" // RulePriority2 is the second routing rule priority. It must be unique, // higher than the local rule, lower than the main and default rules, // higher than the first routing rule priority RulePriority2 = "2112" // FirewallMark is the firewall mark used for split routing FirewallMark = RoutingTable )
Functions ¶
Types ¶
type Addresses ¶
type Addresses struct {
// contains filtered or unexported fields
}
Addresses is a set of addresses
type Config ¶ added in v0.1.0
type Config struct { RoutingTable string RulePriority1 string RulePriority2 string FirewallMark string }
Config is a split routing configuration
type Devices ¶
type Devices struct {
// contains filtered or unexported fields
}
Devices is a set of devices
func (*Devices) GetVirtual ¶
GetVirtual returns device indexes of all virtual devices
type Excludes ¶
Excludes contains split Excludes
func (*Excludes) AddDynamic ¶
AddDynamic adds a dynamic entry to the split excludes
type SplitRouting ¶
type SplitRouting struct {
// contains filtered or unexported fields
}
SplitRouting is a split routing configuration
func NewSplitRouting ¶
func NewSplitRouting(config *Config, vpnconfig *vpnconfig.Config) *SplitRouting
NewSplitRouting returns a new SplitRouting
func (*SplitRouting) DNSReports ¶
func (s *SplitRouting) DNSReports() chan *dnsproxy.Report
DNSReports returns the channel for dns reports
Click to show internal directories.
Click to hide internal directories.