внутри контейнера ping работает
# Определяем, нужно ли делать редирект для определенных user-agent
map $http_user_agent $redirect_to_https {
default 1; # По умолчанию редирект на HTTPS
"~*название_браузера/версия" 0; # Для конкретной версии браузера не делать редирект
}
server {
listen 80;
server_name example.com;
# Условие для редиректа на HTTPS
if ($redirect_to_https) {
return 301 https://$host$request_uri;
}
# Остальные настройки для HTTP
# Например, обработка запросов без редиректа
}
При звонке в очередь где настроено Max Wait Time 5 минут,
[Interface]
PrivateKey = PRIVATE_SERVER_KEY
Address = 10.8.0.1/24
ListenPort = 51820
PreUp =
PostUp = iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT; i>
PreDown =
PostDown = iptables -t nat -D POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE; iptables -D INPUT -p udp -m udp --dport 51820 -j ACCEPT;>
# Client: я (1d17c329-96f2-4e68-bbd2-fe9b75471ec5)
[Peer1]
PublicKey = CLIENT_PRIVAT_KEY
PresharedKey = d3jjmKSLjVHCr9IdKWdL9EfV4QvaM3ipi8MUOrfRZw0=
AllowedIPs = 10.8.0.2/32
[Peer2]
PublicKey = CLIENT_PRIVAT_KEY
PresharedKey = d3jjmKSLjVHCr9IdKWdL9EfV4QvaM3ipi8MUOrfRZw0=
AllowedIPs = 10.8.0.3/32
[Peer3]
PublicKey = CLIENT_PRIVAT_KEY
PresharedKey = d3jjmKSLjVHCr9IdKWdL9EfV4QvaM3ipi8MUOrfRZw0=
AllowedIPs = 10.8.0.4/32
[Peer]
PublicKey = CLIENT_PRIVAT_KEY
PresharedKey = d3jjmKSLjVHCr9IdKWdL9EfV4QvaM3ipi8MUOrfRZw0=
AllowedIPs = 10.8.0.2/32
dig NS citadel.crimea.ru
; <<>> DiG 9.10.6 <<>> NS citadel.crimea.ru
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10675
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 0
;; QUESTION SECTION:
;citadel.crimea.ru. IN NS
;; AUTHORITY SECTION:
crimea.ru. 1721 IN SOA ns1.ht-systems.ru. noc.ht-systems.ru. 3409255960 3600 300 604800 1800
;; Query time: 184 msec
;; SERVER: 94.140.14.14#53(94.140.14.14)
;; WHEN: Thu Oct 17 20:43:10 EEST 2024
;; MSG SIZE rcvd: 101
> dig NS google.com
; <<>> DiG 9.10.6 <<>> NS google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64092
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 9
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 0
;; QUESTION SECTION:
;google.com. IN NS
;; ANSWER SECTION:
google.com. 86400 IN NS ns1.google.com.
google.com. 86400 IN NS ns3.google.com.
google.com. 86400 IN NS ns4.google.com.
google.com. 86400 IN NS ns2.google.com.
;; ADDITIONAL SECTION:
ns3.google.com. 86400 IN A 216.239.36.10
ns3.google.com. 86400 IN AAAA 2001:4860:4802:36::a
ns4.google.com. 86400 IN A 216.239.38.10
ns4.google.com. 86400 IN AAAA 2001:4860:4802:38::a
ns2.google.com. 86400 IN A 216.239.34.10
ns2.google.com. 86400 IN AAAA 2001:4860:4802:34::a
ns1.google.com. 86400 IN A 216.239.32.10
ns1.google.com. 86400 IN AAAA 2001:4860:4802:32::a
;; Query time: 334 msec
;; SERVER: 94.140.14.14#53(94.140.14.14)
;; WHEN: Thu Oct 17 20:43:51 EEST 2024
;; MSG SIZE rcvd: 287