Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gegam/redpill
/ functions
Functions
312 in github.com/Gegam/redpill
⨍
Functions
312
◇
Types & classes
81
↓ 1 callers
Function
default_cert_file
()
crates/redpill-quic/src/config.rs:349
↓ 1 callers
Function
default_decoy_page
()
crates/redpill-quic/src/config.rs:364
↓ 1 callers
Function
default_dns
()
crates/redpill-quic/src/config.rs:358
↓ 1 callers
Function
default_key_file
()
crates/redpill-quic/src/config.rs:352
↓ 1 callers
Function
default_listen
()
crates/redpill-quic/src/config.rs:328
↓ 1 callers
Function
default_log_level
()
crates/redpill-quic/src/config.rs:355
↓ 1 callers
Function
default_max_connections
()
crates/redpill-quic/src/config.rs:343
↓ 1 callers
Function
default_metrics_listen
()
crates/redpill-quic/src/config.rs:367
↓ 1 callers
Function
default_mtu
()
crates/redpill-quic/src/config.rs:340
↓ 1 callers
Function
default_psk_file
()
crates/redpill-quic/src/config.rs:346
↓ 1 callers
Function
default_reality_listen
()
crates/redpill-quic/src/config.rs:376
↓ 1 callers
Function
default_sni_pool
()
crates/redpill-quic/src/config.rs:391
↓ 1 callers
Function
default_transport_mode
()
crates/redpill-quic/src/config.rs:385
↓ 1 callers
Function
default_tun_address
()
crates/redpill-quic/src/config.rs:334
↓ 1 callers
Function
default_tun_name
()
crates/redpill-quic/src/config.rs:331
↓ 1 callers
Function
default_tun_prefix_len
()
crates/redpill-quic/src/config.rs:337
↓ 1 callers
Function
default_wan_interface
()
crates/redpill-quic/src/config.rs:361
↓ 1 callers
Function
default_ws_listen
()
crates/redpill-quic/src/config.rs:382
↓ 1 callers
Function
enable
(tun_name: &str, server_ip: &str, port: u16)
crates/redpill-quic/src/killswitch.rs:12
↓ 1 callers
Function
enable_ip_forwarding
()
crates/redpill-tun/src/route.rs:69
↓ 1 callers
Function
handle_http3
Handle an HTTP/3 connection by serving a static page. Times out after 30 seconds to prevent Slowloris-style resource exhaustion.
crates/redpill-quic/src/decoy.rs:27
↓ 1 callers
Function
handle_http3_inner
(conn: &quinn::Connection, page_path: &str)
crates/redpill-quic/src/decoy.rs:45
↓ 1 callers
Function
handle_vpn
(conn: quinn::Connection, tun_fd: i32, state: Arc<ServerState>)
crates/redpill-quic/src/server.rs:574
↓ 1 callers
Function
handle_vpn_h3
Handle a camouflaged VPN client that connected with h3 ALPN. Padding is enabled for both send and receive paths.
crates/redpill-quic/src/server.rs:679
↓ 1 callers
Method
has_pending
Check if there are pending packets.
crates/redpill-quic/src/batch.rs:98
↓ 1 callers
Method
interval
(&self)
crates/redpill-quic/src/padding.rs:67
↓ 1 callers
Function
ip_version
Detect IP version from the first byte of a packet. Returns 4, 6, or None if invalid.
crates/redpill-quic/src/datagram.rs:10
↓ 1 callers
Method
kx_groups
(&self)
crates/redpill-quic/src/browser_profile.rs:67
↓ 1 callers
Function
load_from_files
Load existing cert+key PEM files.
crates/redpill-quic/src/cert.rs:54
↓ 1 callers
Function
log_path
Platform-specific log file location.
crates/redpill-quic/src/daemon.rs:22
↓ 1 callers
Method
next_sni
Get the next SNI domain (round-robin).
crates/redpill-quic/src/camouflage.rs:31
↓ 1 callers
Method
padding_enabled
Whether padding is enabled for this connector.
crates/redpill-quic/src/transport/quic_camouflaged.rs:95
↓ 1 callers
Function
parse_hex
(hex: &str)
crates/redpill-quic/src/users.rs:154
↓ 1 callers
Function
pem_to_key_der
Parse a PEM string into a DER private key.
crates/redpill-quic/src/cert.rs:80
↓ 1 callers
Function
probe_udp_reachable
Heuristic UDP reachability probe. Sends a small packet to the server's UDP port and waits briefly for any response (or ICMP unreachable). This is a b
crates/redpill-quic/src/transport/health.rs:177
↓ 1 callers
Function
proxy_bidirectional
( client: &mut tokio_rustls::server::TlsStream<TcpStream>, target: &mut TcpStream, )
crates/redpill-quic/src/reality.rs:176
↓ 1 callers
Function
query_status
Query daemon status via IPC socket. Returns parsed DaemonStatus.
crates/redpill-quic/src/ipc.rs:124
↓ 1 callers
Method
quic_transport_params
Get QUIC transport parameters matching this browser's real values.
crates/redpill-quic/src/browser_profile.rs:79
↓ 1 callers
Method
read_packet
(&self, buf: &mut [u8])
crates/redpill-tun/src/device.rs:344
↓ 1 callers
Function
read_session_updates
Read SessionUpdate messages from the control stream (dynamic MTU). Old servers call send.finish() → recv gets EOF → task exits cleanly.
crates/redpill-quic/src/client.rs:752
↓ 1 callers
Function
reconnect_delay
Calculate reconnect delay with exponential backoff + jitter.
crates/redpill-quic/src/client.rs:507
↓ 1 callers
Method
refill
(&self)
crates/redpill-quic/src/shaper.rs:57
↓ 1 callers
Method
reload
Reload all users from disk.
crates/redpill-quic/src/users.rs:72
↓ 1 callers
Function
run_acme_renewal
Background ACME renewal loop. This is a simplified implementation that: 1. Requests a certificate from Let's Encrypt using TLS-ALPN-01 2. Saves the c
crates/redpill-quic/src/acme.rs:127
↓ 1 callers
Function
run_client
(cli: &Cli, daemon_mode: bool)
crates/redpill-quic/src/client.rs:189
↓ 1 callers
Function
run_global_tun_reader
Global TUN reader: reads packets from TUN and routes to the correct client.
crates/redpill-quic/src/server.rs:461
↓ 1 callers
Function
run_tcp_reality_listener
TCP Reality accept loop: listens for TCP connections, handles TLS, routes to VPN or proxy.
crates/redpill-quic/src/server.rs:1257
↓ 1 callers
Function
run_ws_listener
WebSocket accept loop: listens for WebSocket connections (behind CDN reverse proxy).
crates/redpill-quic/src/server.rs:1349
↓ 1 callers
Function
run_ws_vpn_tunnel
Server-side: run VPN tunnel over a WebSocket connection. Similar to TCP Reality tunnel but uses WebSocket frames instead of length-prefixed TCP. Each
crates/redpill-quic/src/transport/websocket_cdn.rs:195
↓ 1 callers
Function
send_bulk
Send bulk: fast path via send_datagram when space available, slow path via send_datagram_wait when congested.
crates/redpill-quic/src/server.rs:888
↓ 1 callers
Method
set_rate
Update the rate and burst dynamically.
crates/redpill-quic/src/shaper.rs:98
↓ 1 callers
Function
setup_client_dns
()
crates/redpill-tun/src/route.rs:635
↓ 1 callers
Function
setup_nat
(tun_subnet: &str, wan_interface: &str)
crates/redpill-tun/src/route.rs:162
↓ 1 callers
Function
setup_notrack_iptables
Set up NOTRACK rules in iptables raw table for UDP:443.
crates/redpill-quic/src/xdp.rs:28
↓ 1 callers
Function
shutdown_signal
Wait for any shutdown signal (SIGINT, SIGTERM, SIGHUP on Unix; Ctrl+C on Windows).
crates/redpill-quic/src/client.rs:809
↓ 1 callers
Function
spawn_ipc_server
Spawn the IPC server on an already-bound Unix domain socket.
crates/redpill-quic/src/ipc.rs:71
↓ 1 callers
Function
stop_daemon
Stop a running daemon by sending SIGTERM.
crates/redpill-quic/src/daemon.rs:90
↓ 1 callers
Function
subnet_from_config
Derive subnet base address from config (e.g. "10.0.1.1" → "10.0.1.0").
crates/redpill-quic/src/server.rs:1504
↓ 1 callers
Method
to_status
(&self)
crates/redpill-quic/src/ipc.rs:38
↓ 1 callers
Function
tune_socket
Tune socket: 8MB buffers + disable GRO (reduces latency variance).
crates/redpill-quic/src/xdp.rs:96
↓ 1 callers
Method
unregister
(&self, ip: Ipv4Addr)
crates/redpill-quic/src/demux.rs:70
↓ 1 callers
Method
update_dg_size
(&self, size: usize)
crates/redpill-quic/src/stats.rs:74
↓ 1 callers
Method
usernames
(&self)
crates/redpill-quic/src/users.rs:101
↓ 1 callers
Method
validate
(&self)
crates/redpill-quic/src/config.rs:175
↓ 1 callers
Method
verify
Trial-verify: try each PSK against the client's HMAC. Returns the username on success, None on failure.
crates/redpill-quic/src/users.rs:80
↓ 1 callers
Method
verify_auth
(&self, nonce: &[u8; 32], mac: &[u8; 32])
crates/redpill-quic/src/auth.rs:13
↓ 1 callers
Method
watch_fallback
Monitor fallback transport for QUIC upgrade opportunity.
crates/redpill-quic/src/transport/health.rs:138
↓ 1 callers
Method
watch_quic
Monitor QUIC connection RTT for degradation.
crates/redpill-quic/src/transport/health.rs:95
↓ 1 callers
Function
write_pid
Write PID file. Returns the path for logging.
crates/redpill-quic/src/daemon.rs:48
Function
adaptive_decreases_on_high_delay
()
crates/redpill-quic/tests/integration.rs:543
Function
adaptive_increases_on_low_delay
()
crates/redpill-quic/tests/integration.rs:521
Function
anti_spoof_drop
()
crates/redpill-quic/tests/integration.rs:279
Function
anti_spoof_pass
()
crates/redpill-quic/tests/integration.rs:291
Method
available_modes
Get the list of available transport modes.
crates/redpill-quic/src/transport/manager.rs:89
Method
base_rtt
Get base (minimum observed) RTT.
crates/redpill-quic/src/shaper.rs:260
Function
batch_encode_decode_roundtrip
()
crates/redpill-quic/tests/integration.rs:664
Function
batch_large_packet_bypasses
()
crates/redpill-quic/tests/integration.rs:681
Method
check
Try to consume `bytes` tokens. Returns true if allowed.
crates/redpill-quic/src/shaper.rs:32
Function
chrome_crypto_provider
Build a `rustls::CryptoProvider` matching Chrome's TLS 1.3 fingerprint.
crates/redpill-quic/src/fingerprint.rs:16
Function
classify_dns_realtime
()
crates/redpill-quic/tests/integration.rs:581
Function
classify_dscp_ef_realtime
()
crates/redpill-quic/tests/integration.rs:592
Function
classify_small_udp_realtime
()
crates/redpill-quic/tests/integration.rs:559
Function
classify_tcp_bulk
()
crates/redpill-quic/tests/integration.rs:572
Method
client_ip
(&self)
crates/redpill-quic/src/demux.rs:82
Function
client_router_register_route_unregister
()
crates/redpill-quic/tests/integration.rs:403
Method
clone_box
(&self)
crates/redpill-quic/src/noop_cc.rs:60
Function
configure_client_interface
( dev_name: &str, client_ip: Ipv4Addr, server_tunnel_ip: Ipv4Addr, mtu: u16, )
crates/redpill-tun/src/route.rs:548
Method
connect
Connect to the server via WebSocket through CDN. 1. WebSocket connect to CDN URL 2. Send ClientAuth as first binary message 3. Read SessionConfig res
crates/redpill-quic/src/transport/websocket_cdn.rs:128
Method
connection
Get a reference to the underlying quinn connection. Useful for accessing quinn-specific stats or features not exposed by the Transport trait.
crates/redpill-quic/src/transport/quic_raw.rs:55
Function
connection_limit
()
crates/redpill-quic/tests/integration.rs:364
Function
control_auth_fail
()
crates/redpill-quic/tests/integration.rs:181
Function
control_auth_malformed
()
crates/redpill-quic/tests/integration.rs:223
Function
control_auth_ok
()
crates/redpill-quic/tests/integration.rs:142
Method
current_key
Get the current certified key.
crates/redpill-quic/src/acme.rs:77
Function
datagram_ipv4
()
crates/redpill-quic/tests/integration.rs:342
Function
datagram_ipv6
()
crates/redpill-quic/tests/integration.rs:355
Method
decode
Decode from wire format.
crates/redpill-quic/src/control.rs:45
Method
default
()
crates/redpill-quic/src/config.rs:102
Method
default
()
crates/redpill-quic/src/metrics.rs:40
Method
default
()
crates/redpill-quic/src/batch.rs:55
← previous
next →
101–200 of 312, ranked by callers