2020-04-12 20:01:33 +00:00
|
|
|
package constants
|
|
|
|
|
|
|
|
|
|
import (
|
2020-07-26 12:07:06 +00:00
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
2020-04-12 20:01:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
2020-10-20 02:45:28 +00:00
|
|
|
// UnboundConf is the file path to the Unbound configuration file.
|
2020-04-12 20:01:33 +00:00
|
|
|
UnboundConf models.Filepath = "/etc/unbound/unbound.conf"
|
2020-10-20 02:45:28 +00:00
|
|
|
// ResolvConf is the file path to the system resolv.conf file.
|
2020-04-12 20:01:33 +00:00
|
|
|
ResolvConf models.Filepath = "/etc/resolv.conf"
|
2020-10-20 02:45:28 +00:00
|
|
|
// CACertificates is the file path to the CA certificates file.
|
2020-04-12 20:01:33 +00:00
|
|
|
CACertificates models.Filepath = "/etc/ssl/certs/ca-certificates.crt"
|
2020-10-20 02:45:28 +00:00
|
|
|
// OpenVPNAuthConf is the file path to the OpenVPN auth file.
|
2020-04-12 20:01:33 +00:00
|
|
|
OpenVPNAuthConf models.Filepath = "/etc/openvpn/auth.conf"
|
2020-10-20 02:45:28 +00:00
|
|
|
// OpenVPNConf is the file path to the OpenVPN client configuration file.
|
2020-04-12 20:01:33 +00:00
|
|
|
OpenVPNConf models.Filepath = "/etc/openvpn/target.ovpn"
|
2020-10-20 02:45:28 +00:00
|
|
|
// PIAPortForward is the file path to the port forwarding JSON information for PIA v4 servers.
|
2020-10-12 10:55:08 -04:00
|
|
|
PIAPortForward models.Filepath = "/gluetun/piaportforward.json"
|
2020-10-20 02:45:28 +00:00
|
|
|
// TunnelDevice is the file path to tun device.
|
2020-04-12 20:01:33 +00:00
|
|
|
TunnelDevice models.Filepath = "/dev/net/tun"
|
2020-10-20 02:45:28 +00:00
|
|
|
// NetRoute is the path to the file containing information on the network route.
|
2020-04-12 20:01:33 +00:00
|
|
|
NetRoute models.Filepath = "/proc/net/route"
|
2020-10-20 02:45:28 +00:00
|
|
|
// RootHints is the filepath to the root.hints file used by Unbound.
|
2020-04-12 20:01:33 +00:00
|
|
|
RootHints models.Filepath = "/etc/unbound/root.hints"
|
2020-10-20 02:45:28 +00:00
|
|
|
// RootKey is the filepath to the root.key file used by Unbound.
|
2020-04-12 20:01:33 +00:00
|
|
|
RootKey models.Filepath = "/etc/unbound/root.key"
|
|
|
|
|
)
|