mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2024-10-01 01:05:39 -04:00
2d78d47591
Co-Authored-By: Mindy Preston <yomimono@users.noreply.github.com> Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com> Co-Authored-By: hannes <hannes@mehnert.org> Co-Authored-By: cfcs <cfcs@users.noreply.github.com>
45 lines
1.2 KiB
OCaml
45 lines
1.2 KiB
OCaml
(* Copyright (C) 2017, Thomas Leonard <thomas.leonard@unikernel.com>
|
|
See the README file for details. *)
|
|
|
|
(** Configuration for the "mirage" tool. *)
|
|
|
|
open Mirage
|
|
|
|
let table_size =
|
|
let open Functoria_key in
|
|
let info = Arg.info
|
|
~doc:"The number of NAT entries to allocate."
|
|
~docv:"ENTRIES" ["nat-table-size"]
|
|
in
|
|
let key = Arg.opt ~stage:`Both Arg.int 5_000 info in
|
|
create "nat_table_size" key
|
|
|
|
let main =
|
|
foreign
|
|
~keys:[Functoria_key.abstract table_size]
|
|
~packages:[
|
|
package "vchan" ~min:"4.0.2";
|
|
package "cstruct";
|
|
package "astring";
|
|
package "tcpip" ~min:"3.7.0";
|
|
package "arp";
|
|
package "arp-mirage";
|
|
package "ethernet";
|
|
package "mirage-protocols";
|
|
package "shared-memory-ring" ~min:"3.0.0";
|
|
package "netchannel" ~min:"1.11.0";
|
|
package "mirage-net-xen";
|
|
package "ipaddr" ~min:"4.0.0";
|
|
package "mirage-qubes" ~min:"0.8.2";
|
|
package "mirage-nat" ~min:"2.2.1";
|
|
package "mirage-logs";
|
|
package "mirage-xen" ~min:"5.0.0";
|
|
package ~min:"4.5.0" "dns-client";
|
|
package "pf-qubes";
|
|
]
|
|
"Unikernel.Main" (random @-> mclock @-> job)
|
|
|
|
let () =
|
|
register "qubes-firewall" [main $ default_random $ default_monotonic_clock]
|
|
~argv:no_argv
|