[][src]Trait ttstack::model::Firewall

pub trait Firewall {
    pub fn set_nat(&self, vm: &mut Vm) -> Result<()>;
pub fn unset_nat(&self, vm: &mut Vm) -> Result<()>;
pub fn deny_outgoing(&self, vm: &mut Vm) -> Result<()>;
pub fn allow_outgoing(&self, vm: &mut Vm) -> Result<()>;
pub fn set_outgoing_blacklist(&self, vm: &mut Vm) -> Result<()>; }

This trait describes how to manage the 'firewall rule'.

Required methods

pub fn set_nat(&self, vm: &mut Vm) -> Result<()>[src]

Set the 'NAT' rules between the VM and client.

pub fn unset_nat(&self, vm: &mut Vm) -> Result<()>[src]

Unset the 'NAT' rules between the VM and client.

pub fn deny_outgoing(&self, vm: &mut Vm) -> Result<()>[src]

Disable VM's active access to the Internet.

pub fn allow_outgoing(&self, vm: &mut Vm) -> Result<()>[src]

Enable VM's active access to the Internet.

pub fn set_outgoing_blacklist(&self, vm: &mut Vm) -> Result<()>[src]

There needs NOT a reponsponding unset_ method, we can get equal effect by clear the Vm.VmState.outgoing_blacklist.

Loading content...

Implementors

Loading content...