Documentation
¶
Index ¶
Constants ¶
View Source
const ( WarpDir = "/etc/slipgate/warp" WarpConf = "/etc/slipgate/warp/wg0.conf" AccountFile = "/etc/slipgate/warp/wgcf-account.toml" ProfileFile = "/etc/slipgate/warp/wgcf-profile.conf" WgcfBin = "/usr/local/bin/wgcf" ServiceName = "slipgate-warp" RouteTable = 200 // SocksUser is a dedicated system user for the SOCKS5 proxy so its // outbound traffic can be routed through WARP independently of the // tunnel processes that also run as config.SystemUser. SocksUser = "slipgate-socks" // NaiveUser is a dedicated system user for the Caddy/NaiveProxy // process so its forward-proxy traffic can be routed through WARP. NaiveUser = "slipgate-naive" )
Variables ¶
This section is empty.
Functions ¶
func RefreshRouting ¶
RefreshRouting regenerates the wg0.conf with current user UIDs and restarts if running.
func RemoveUsers ¶
func RemoveUsers()
RemoveUsers removes the dedicated SOCKS and NaiveProxy system users created for WARP routing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.