pub struct SynProxy<'a> {
pub family: NfFamily,
pub table: Cow<'a, str>,
pub name: Cow<'a, str>,
pub handle: Option<u32>,
pub mss: Option<u16>,
pub wscale: Option<u8>,
pub flags: Option<HashSet<SynProxyFlag>>,
}Expand description
SynProxy intercepts new TCP connections and handles the initial 3-way handshake using syncookies instead of conntrack to establish the connection.
Named SynProxy requires nftables 0.9.3 or newer.
Fields§
§family: NfFamilyThe table’s family.
table: Cow<'a, str>The table’s name.
name: Cow<'a, str>The synproxy’s name.
handle: Option<u32>The synproxy’s handle. For input, it is used by the delete command only.
mss: Option<u16>The maximum segment size (must match your backend server).
wscale: Option<u8>The window scale (must match your backend server).
flags: Option<HashSet<SynProxyFlag>>The synproxy’s flags.
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for SynProxy<'a>
impl<'de, 'a> Deserialize<'de> for SynProxy<'a>
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<'a> JsonSchema for SynProxy<'a>
impl<'a> JsonSchema for SynProxy<'a>
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl<'a> Eq for SynProxy<'a>
impl<'a> StructuralPartialEq for SynProxy<'a>
Auto Trait Implementations§
impl<'a> Freeze for SynProxy<'a>
impl<'a> RefUnwindSafe for SynProxy<'a>
impl<'a> Send for SynProxy<'a>
impl<'a> Sync for SynProxy<'a>
impl<'a> Unpin for SynProxy<'a>
impl<'a> UnsafeUnpin for SynProxy<'a>
impl<'a> UnwindSafe for SynProxy<'a>
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