2021-06-20 09:21:48 -07:00
|
|
|
package ipvanish
|
|
|
|
|
|
|
|
|
|
import (
|
2022-01-06 06:40:23 -05:00
|
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
2021-06-20 09:21:48 -07:00
|
|
|
"github.com/qdm12/gluetun/internal/constants"
|
|
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
|
|
|
"github.com/qdm12/gluetun/internal/provider/utils"
|
|
|
|
|
)
|
|
|
|
|
|
2021-08-19 14:09:41 +00:00
|
|
|
func (i *Ipvanish) BuildConf(connection models.Connection,
|
2022-04-25 07:57:45 +00:00
|
|
|
settings settings.OpenVPN) (lines []string) {
|
|
|
|
|
providerSettings := utils.OpenVPNProviderSettings{
|
|
|
|
|
AuthUserPass: true,
|
|
|
|
|
Ciphers: []string{
|
|
|
|
|
constants.AES256cbc,
|
|
|
|
|
},
|
|
|
|
|
Auth: constants.SHA256,
|
|
|
|
|
VerifyX509Type: "name",
|
|
|
|
|
TLSCipher: "TLS-DHE-RSA-WITH-AES-256-CBC-SHA:TLS-DHE-DSS-WITH-AES-256-CBC-SHA:TLS-RSA-WITH-AES-256-CBC-SHA",
|
|
|
|
|
CA: constants.IpvanishCA,
|
2021-06-20 09:21:48 -07:00
|
|
|
}
|
2022-04-25 07:57:45 +00:00
|
|
|
return utils.OpenVPNConfig(providerSettings, connection, settings)
|
2021-06-20 09:21:48 -07:00
|
|
|
}
|