Update tunnel/maatma IP
continuous-integration/drone/push Build is passing Details

This commit is contained in:
nemunaire 2023-03-15 20:44:35 +01:00
parent c7560f8332
commit f6bbdcf096
6 changed files with 8 additions and 8 deletions

View File

@ -12,7 +12,7 @@ import (
)
const (
DEFAULT_RESOLVER = "2a01:e0a:2b:2250::1"
DEFAULT_RESOLVER = "2a01:e0a:518:830::1"
year68 = 1 << 31 // For RFC1982 (Serial Arithmetic) calculations in 32 bits. Taken from miekg/dns
)

View File

@ -141,9 +141,9 @@ func get_GLUE(student *adlin.Student) (aaaa net.IP, err error) {
client := dns.Client{Net: "tcp", Timeout: time.Second * 5}
domain := student.MyDelegatedDomain()
dnssrv := "[2a01:e0a:2b:2250::b]:53"
dnssrv := "[2a01:e0a:518:830::e]:53"
if strings.HasSuffix(domain, student.MyDelegatedDomainSuffix()) {
dnssrv = "[2a01:e0a:2b:2250::b]:53"
dnssrv = "[2a01:e0a:518:830::e]:53"
} else if v, ok := domainsHostingMap[domain]; ok {
dnssrv = v
} else {
@ -390,7 +390,7 @@ func check_dnssec(domain, ip string) (err error) {
m.RecursionDesired = false
m.SetEdns0(4096, true)
r, _, err = client.Exchange(m, "[2a01:e0a:2b:2250::b]:53")
r, _, err = client.Exchange(m, "[2a01:e0a:518:830::e]:53")
if err != nil {
return
}

View File

@ -29,7 +29,7 @@ func GetCollectorPublic() ed25519.PublicKey {
}
func StudentIP(idstd int64, overrideid int) net.IP {
return net.ParseIP(fmt.Sprintf("2a01:e0a:2b:2252:%x%x::", overrideid, idstd))
return net.ParseIP(fmt.Sprintf("2a01:e0a:518:833:%x%x::", overrideid, idstd))
}
func StudentNet(idstd int64, overrideid int) *net.IPNet {

View File

@ -16,7 +16,7 @@ import (
)
var (
ControlSocket = "[2a01:e0a:2b:2250::b]:53"
ControlSocket = "[2a01:e0a:518:830::5]:53"
tsigName = "ddns."
tsigSecret = ""
)

View File

@ -67,7 +67,7 @@ func getTunnelInfo(student int64, idoverride int) TunnelInfo {
SrvPort: 42912,
CltIPv6: adlin.StudentIP(student, idoverride),
CltRange: adlin.StdNetmask,
SrvGW6: "2a01:e0a:2b:2252::1",
SrvGW6: "2a01:e0a:518:833::1",
}
}

View File

@ -61,7 +61,7 @@ Votre passerelle répond aux `ping`, une fois la connexion établie, vous devrie
pouvoir :
```
ping 2a01:e0a:2b:2252::1
ping 2a01:e0a:518:833::1
```