gemlog/public/en/pac-file-example-for-yggstack.gmi
2025-09-11 12:43:12 +03:00

22 lines
611 B
Text

# PAC-file example for Yggstack
Yggstack is lightweight proxy server in Go, usually wanted to not represent TUN address into Yggdrasil network.
## Firefox
Unlike static host/port setup, following configuration rewrites only IPv6 (0200::/7) and .ygg (Alfis DNS) requests:
``` file:///path/to/proxy.pac
function FindProxyForURL(url, host)
{
if (/^0{0,1}[2-3][a-f0-9]{0,2}:/.test(host) || /\.ygg$/.test(host))
{
return 'SOCKS5 127.0.0.1:1080; DIRECT';
}
}
```
## Links
=> https://en.wikipedia.org/wiki/Proxy_auto-config About PAC
=> https://github.com/yggdrasil-network/yggstack Yggstack on GitHub