mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2025-08-08 14:42:41 -04:00
Rationalised firewall rules syntax
Added explicit NAT target, allowing NAT even within client net and making it clear that NAT is used externally. Changed Redirect_to_netvm to NAT_to, and allow specifying any target host.
This commit is contained in:
parent
4032a5d776
commit
2002126b8b
11 changed files with 85 additions and 38 deletions
|
@ -37,8 +37,7 @@ module Main (Clock : V1.CLOCK) = struct
|
|||
(* Set up routing between networks and hosts *)
|
||||
let router = Router.create
|
||||
~client_eth
|
||||
~default_gateway:(Uplink.interface uplink)
|
||||
~my_uplink_ip:(Ipaddr.V4 config.Dao.uplink_our_ip) in
|
||||
~uplink:(Uplink.interface uplink) in
|
||||
(* Handle packets from both networks *)
|
||||
Lwt.join [
|
||||
Client_net.listen router;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue