pub struct OutboundNetwork {
pub mode: NetworkOutboundMode,
pub allow_hosts: Vec<String>,
pub allow_ports: Vec<u16>,
pub protocols: Vec<String>,
pub resolve_dns: ResolveDnsConfig,
}Fields§
§mode: NetworkOutboundMode§allow_hosts: Vec<String>§allow_ports: Vec<u16>Extra outbound TCP ports granted on top of the built-in web set
(RESTRICTED_GENERAL_PORTS: 80/443/8080/8443). Issue #006: without
this, a non-web port (ssh 2222, vite 5173, ollama 11434) was
unreachable under restricted and the only escape was
unrestricted, which opens EVERY port.
Honored under Restricted ONLY. Off stays air-gapped and
ProxyOnly keeps denying general TCP — a stale entry in a profile
whose mode was later tightened must never silently reopen it.
This is a PORT grant, not a host grant: like the base set, the port
opens to host *, because macOS SBPL’s remote tcp accepts only
* or localhost as the host. Bounding WHICH host is reached on
that port remains HostGuard’s job via allow_hosts.
protocols: Vec<String>§resolve_dns: ResolveDnsConfigTrait Implementations§
Source§impl Clone for OutboundNetwork
impl Clone for OutboundNetwork
Source§impl Debug for OutboundNetwork
impl Debug for OutboundNetwork
Source§impl<'de> Deserialize<'de> for OutboundNetwork
impl<'de> Deserialize<'de> for OutboundNetwork
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OutboundNetwork
impl PartialEq for OutboundNetwork
Source§impl Serialize for OutboundNetwork
impl Serialize for OutboundNetwork
impl StructuralPartialEq for OutboundNetwork
Auto Trait Implementations§
impl Freeze for OutboundNetwork
impl RefUnwindSafe for OutboundNetwork
impl Send for OutboundNetwork
impl Sync for OutboundNetwork
impl Unpin for OutboundNetwork
impl UnsafeUnpin for OutboundNetwork
impl UnwindSafe for OutboundNetwork
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more