Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/celzero/firestack
/ functions
Functions
3,609 in github.com/celzero/firestack
⨍
Functions
3,609
◇
Types & classes
485
↓ 1 callers
Method
Log
Log implements Console.
intra/log/xlog_other.go:24
↓ 1 callers
Method
LogFD
(readAfterDup int)
intra/backend/protect.go:17
↓ 1 callers
Method
LogMemFD
LogMemFD hands off the shared-memory and that back the double-buffered log data. fd1 and fd2 can be mapped; but must be dup(2)'d before use. size is t
intra/backend/protect.go:24
↓ 1 callers
Function
LogPacket
LogPacket logs a packet to stdout.
intra/netstack/snooper.go:135
↓ 1 callers
Method
Lookup
(q []byte, _ string, _ ...string)
intra/dns53/dot_test.go:48
↓ 1 callers
Method
Lookup
Implements IPMapper.
intra/dns53/ipmapper.go:81
↓ 1 callers
Method
Lookup
Implements IPMapper.
intra/protect/ipmap/ipmap.go:243
↓ 1 callers
Method
LookupContextHost
-------------------------------------------------------------------- dns dialer --------------------------------------------------------------------
intra/ipn/wgnet.go:53
↓ 1 callers
Method
LookupFor
LookupFor resolves q over client-code preferred tid conveyed via DNSOpts returned from DNSListener.OnQuery. As a special case, UID may be protect.MyUi
intra/protect/ipmap/ipmap.go:93
↓ 1 callers
Method
LookupFor
LookupFor performs resolution for uid.
intra/dnsx/rethinkdns.go:77
↓ 1 callers
Method
LookupFor2
Lookup performs resolution on chosen Transport for uid.
intra/dnsx/rethinkdns.go:79
↓ 1 callers
Function
MakeNsICMPListener
(who string, c Controller)
intra/protect/protect.go:245
↓ 1 callers
Function
MakeNsICMPListenerExt
(who string, ctl Controller, ext []ControlFn)
intra/protect/protect.go:253
↓ 1 callers
Function
MakeNsListenConfigExt
Creates a listener that can bind to any active interface, with additional control fns.
intra/protect/protect.go:227
↓ 1 callers
Function
MakeNsListener
Creates a listener that can bind to any active interface.
intra/protect/protect.go:218
↓ 1 callers
Method
MakeWsEntitlement
Did can be left empty if entitlementOrStateJson has one.
intra/ipn/rpn/yegor.go:2209
↓ 1 callers
Method
MakeWsWg
(entitlement []byte, did string, ops x.RpnOps)
intra/ipn/rpn/yegor.go:2151
↓ 1 callers
Method
MakeWsWgFrom
(entitlementOrWsConfigJson []byte, did string, ops x.RpnOps)
intra/ipn/rpn/yegor.go:2240
↓ 1 callers
Method
MaybeRefresh
()
intra/ipn/multihost/map.go:204
↓ 1 callers
Function
MaybeToQuadA
MaybeToQuadA translates an A record to a AAAA record if the prefix is not nil. The ttl of the new record is the max of the original ttl and minttl. If
intra/xdns/dnsutil.go:1217
↓ 1 callers
Function
MemProfile
MemProfile triggers GC and writes a heap profile to outprofile. rate controls the memory profiling granularity: 1 is most detailed, 0 disables profili
intra/core/prof.go:97
↓ 1 callers
Function
Metrics
()
intra/core/runmet.go:81
↓ 1 callers
Function
Metrics
()
intra/log/log.go:274
↓ 1 callers
Method
Metrics
()
intra/log/logger.go:72
↓ 1 callers
Method
Mtime
()
intra/ipn/multihost/multihost.go:85
↓ 1 callers
Method
Mtu
Mtu returns the current MTU of the tunnel (tun MTU).
tunnel/tunnel.go:57
↓ 1 callers
Function
Nano2Sec
(ns uint64)
intra/core/fmtstr.go:36
↓ 1 callers
Function
NewAmnezia
(id string)
intra/ipn/wg/amnezia.go:46
↓ 1 callers
Function
NewAutoProxy
NewAutoProxy returns a new exit proxy.
intra/ipn/auto.go:46
↓ 1 callers
Function
NewBarrier
NewBarrier returns a new Barrier with the given time-to-live for completed Vs.
intra/core/barrier.go:108
↓ 1 callers
Function
NewBaseProxy
Base returns a base proxy.
intra/ipn/base.go:42
↓ 1 callers
Function
NewBasicProxy
(id string, ctx context.Context, c protect.Controller, px ProxyProvider)
intra/ipn/base.go:59
↓ 1 callers
Function
NewBigPrivateKey
NewBigPrivateKey creates a BigPrivateKey from a rsa.PrivateKey.
intra/core/brsa/keys.go:64
↓ 1 callers
Function
NewBuiltinDefaultDNS
NewBuiltinDefaultDNS creates a new DefaultDNS resolver of type dnsx.DNS53. It may either use OS provided or network provided DNS resolver, & will not
intra/bootstrap.go:94
↓ 1 callers
Function
NewClient
(v Variant, pk *rsa.PublicKey)
intra/core/brsa/brsa.go:75
↓ 1 callers
Function
NewClientQueryError
with http, for 4xx errors
intra/dnsx/queryerror.go:133
↓ 1 callers
Function
NewConnMap
(id string)
intra/core/connmap.go:73
↓ 1 callers
Function
NewConnPool
NewConnPool creates a new conn pool with preset capacity and ttl.
intra/core/connpool.go:208
↓ 1 callers
Function
NewDNSGateway
NewDNSGateway returns a DNS ALG, ready for use.
intra/dnsx/alg.go:1035
↓ 1 callers
Function
NewDNSOptions
NewDNSOptions returns a new DNSOpitons object.
intra/settings/dnsopts.go:53
↓ 1 callers
Function
NewDNSOptionsFromHostname
(idOrHostOrHostPort, ipOrIPPortCsv string)
intra/settings/dnsopts.go:80
↓ 1 callers
Function
NewDNSOptionsFromNetIp
(ipp netip.AddrPort)
intra/settings/dnsopts.go:70
↓ 1 callers
Function
NewEndpoint
TODO: get d, ep, f, rb through an Opts bag?
intra/ipn/wg/wgconn.go:176
↓ 1 callers
Function
NewEndpoint2
(ctx context.Context, id string, d connector, pm *atomic.Pointer[multihost.MHMap], f rwobserver, a *atomic.Poi
intra/ipn/wg/wgconn2.go:137
↓ 1 callers
Function
NewErrorerTransport
NewErrorerTransport returns a DNS transport that always errors out on queries.
intra/dns53/errorer.go:31
↓ 1 callers
Function
NewExit64Proxy
NewExit64Proxy returns a new exit64 proxy.
intra/ipn/exit64.go:53
↓ 1 callers
Function
NewExitProxy
NewExitProxy returns a new exit proxy.
intra/ipn/exit.go:47
↓ 1 callers
Function
NewExitProxyWithID
(id, addr string, ctx context.Context, c protect.Controller)
intra/ipn/exit.go:51
↓ 1 callers
Function
NewExtClient
(d protect.RDialer)
intra/ipn/rpn/cfg.go:165
↓ 1 callers
Function
NewFilebased
NewFilebased sets a pipe-backed console and returns reader and writer. Caller is expected to hand off the read fd and read until EOF. Caller owns the
intra/log/log.go:120
↓ 1 callers
Function
NewFlowFor
(ctx context.Context, v *Volatile[T])
intra/core/volatileflow.go:59
↓ 1 callers
Function
NewGConnHandler
(addrs []netip.Prefix, tcp GTCPConnHandler, udp GUDPConnHandler, icmp GICMPHandler)
intra/netstack/hdl.go:74
↓ 1 callers
Function
NewGroundProxy
NewGroundProxy returns a new ground proxy.
intra/ipn/ground.go:29
↓ 1 callers
Function
NewGroundedTransport
NewGroundedTransport returns a DNS transport that blocks all DNS queries.
intra/dns53/grounded.go:30
↓ 1 callers
Function
NewHTTPProxy
(id string, ctx context.Context, c protect.Controller, px ProxyProvider, po *settings.ProxyOptions)
intra/ipn/http1.go:42
↓ 1 callers
Function
NewHangover
()
intra/core/hangover.go:20
↓ 1 callers
Function
NewICMPHandler
(pctx context.Context, resolver dnsx.Resolver, prox ipn.ProxyProvider, listener Listener)
intra/icmp.go:31
↓ 1 callers
Function
NewLogger
NewLogger creates a new Logger with the given tag.
intra/log/logger.go:294
↓ 1 callers
Function
NewMDNSTransport
NewMDNSTransport returns a DNS transport that sends all DNS queries to mDNS endpoint.
intra/dns53/mdns.go:60
↓ 1 callers
Function
NewNetstack
also: github.com/google/gvisor/blob/adbdac747/runsc/boot/loader.go#L1132 github.com/FlowerWrong/tun2socks/blob/1045a49618/cmd/netstack/main.go github.
intra/netstack/netstack.go:219
↓ 1 callers
Function
NewNoResponseQueryError
(err error)
intra/dnsx/queryerror.go:111
↓ 1 callers
Function
NewOdohTransport
NewTransport returns a POST-only Oblivious DoH transport. `id` identifies this transport. `endpoint` is the ODoH proxy that liaisons with the target.
intra/doh/doh.go:130
↓ 1 callers
Function
NewP2QuantileEstimator
NewP90Estimator returns a new estimator with percentile p.
intra/core/p2est.go:53
↓ 1 callers
Function
NewPausedQueryError
()
intra/dnsx/queryerror.go:137
↓ 1 callers
Function
NewPipMsgWith
(tok *PipToken)
intra/backend/ipn_pipkeygen.go:109
↓ 1 callers
Function
NewPipProxy
(ctx context.Context, ctl protect.Controller, px ProxyProvider, po *settings.ProxyOptions)
intra/ipn/piph2.go:178
↓ 1 callers
Function
NewPipWsProxy
NewPipWsProxy creates a new pipws proxy with the given id, controller, and proxy options. The proxy options must contain a valid URL, and the URL must
intra/ipn/pipws.go:175
↓ 1 callers
Function
NewPlusTransport
(ctx context.Context, r TransportProviderInternal, ts ...Transport)
intra/dnsx/plus.go:57
↓ 1 callers
Function
NewProcNetCache
()
intra/netstat/procfs.go:81
↓ 1 callers
Function
NewReverseGConnHandler
(pctx context.Context, to *stack.Stack, of tcpip.NICID, ep SeamlessEndpoint, via GConnHandler)
intra/netstack/rev.go:60
↓ 1 callers
Function
NewServices
(pctx context.Context, proxies ipn.Proxies, ctl protect.Controller, listener ServerListener)
intra/rnet/servers.go:71
↓ 1 callers
Function
NewSieve2K
NewSieve2K returns a new Sieve2K with keys expiring after lifetime.
intra/core/expiringsieve.go:32
↓ 1 callers
Function
NewTCPHandler
NewTCPHandler returns a TCP forwarder with Intra-style behavior. Connections to `fakedns` are redirected to DOH. All other traffic is forwarded using
intra/tcp.go:107
↓ 1 callers
Function
NewTransportFrom
NewTransportFrom returns a DNS53 transport serving from ipp, ready for use.
intra/dns53/upstream.go:140
↓ 1 callers
Function
NewTunnel
(fd, tunmtu int, ifaddrs, fakedns string, dtr DefaultDNS, bdg Bridge)
intra/tunnel.go:155
↓ 1 callers
Function
NewUDPHandler
NewUDPHandler makes a UDP handler with Intra-style DNS redirection: All packets are routed directly to their destination. `timeout` controls the effec
intra/udp.go:77
↓ 1 callers
Function
NewWeakRef
refs to pointers to interfaces: go.dev/play/p/QWjdHVrg_84 unsafe type conversion: github.com/golang/go/issues/71583
intra/core/weakref.go:31
↓ 1 callers
Function
NewWgPrivateKey
()
intra/backend/ipn_wgkeygen.go:79
↓ 1 callers
Method
Note
()
intra/core/hangover.go:30
↓ 1 callers
Method
OnClose
()
intra/log/log.go:64
↓ 1 callers
Method
OnDNSRemoved
OnDNSRemoved is called when a DNS transport with id is removed, except when the transport is stopped, then OnDNSStopped is called instead.
intra/backend/dnsx.go:171
↓ 1 callers
Method
OnDNSStopped
OnDNSStopped is called when all DNS transports are stopped. Note: OnDNSRemoved is not called for each transport even if they are being removed and not
intra/backend/dnsx.go:175
↓ 1 callers
Method
OnProxyRemoved
OnProxyRemoved is called when a proxy is removed except when all proxies are stopped, in which case OnProxiesStopped is called.
intra/backend/ipn_proxies.go:378
↓ 1 callers
Method
OnProxyStopped
OnProxyStopped is called when a proxy is stopped instead of being removed (that is, this callback is not called in all proxy stop scenarios). A stoppe
intra/backend/ipn_proxies.go:385
↓ 1 callers
Method
OnQuery
OnQuery is called when a DNS query is received. The listener can return a DNSOpts to specify how the query should be handled.
intra/backend/dnsx_listener.go:130
↓ 1 callers
Method
OnUpstreamAnswer
OnUpstreamAnswer is called before an upstream DNS answer (not blocked by firestack) is sent to the OS. The listener may return DNSOpts to specify if a
intra/backend/dnsx_listener.go:135
↓ 1 callers
Method
OneIPOnly
()
intra/protect/ipmap/ipmap.go:781
↓ 1 callers
Method
Opaque
Opaque returns the client id part of the PipMsg as hex string.
intra/backend/ipn_pipkeygen.go:163
↓ 1 callers
Function
OutboundICMP
github.com/google/gvisor/blob/738e1d995f/pkg/tcpip/network/ipv4/icmp.go github.com/google/gvisor/blob/738e1d995f/pkg/tcpip/network/ipv6/icmp.go
intra/netstack/icmp.go:34
↓ 1 callers
Function
ParseProcNet
ParseProcNet scans /proc/net/* returns a list of entries, one entry per line scanned
intra/netstat/procfs.go:267
↓ 1 callers
Method
Payload
Payload returns the payload of the IP subprotocol section. This is a read-only view; that is, q retains the ownership of the buffer.
intra/core/wire/parsed.go:481
↓ 1 callers
Function
Pcap2File
(y bool)
intra/netstack/seamless.go:129
↓ 1 callers
Function
Pcap2Stdout
(y bool)
intra/netstack/seamless.go:119
↓ 1 callers
Function
PcapModes
PCAP logging modes: - stdout: packets are logged to stdout - file: packets are logged to a file - none: no packets are logged
intra/netstack/seamless.go:143
↓ 1 callers
Function
Periodic
(id string, pctx context.Context, d time.Duration, f func())
intra/core/async.go:293
↓ 1 callers
Method
Perma
Perma reports whether permanent WG credentials should be used in Conf().
intra/backend/ipn_proxies.go:164
↓ 1 callers
Method
Piif
(at int, msg string, args ...any)
intra/log/logger.go:63
↓ 1 callers
Method
Ping
Ping implements Proxy As backpressure, pings are sent once in a 5s period.
intra/ipn/wgproxy.go:277
↓ 1 callers
Method
PreferredAddrs
PreferredAddrs returns the list of IPs per the dialer's preference.
intra/ipn/multihost/multihost.go:148
↓ 1 callers
Method
Preflow
Preflow is called before a new connection is established; return owner "uid", which is later used by dnsx.Resolver to determine the DNS transport to u
intra/listener.go:52
← previous
next →
1,401–1,500 of 3,609, ranked by callers