mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2024-10-01 01:05:39 -04:00
adapt to mirage 3.8.0 changes (ipaddr5, tcpip5); bump opam-repository hash (to get netchannel+mirage-net-xen 0.13.1)
This commit is contained in:
parent
094637b2de
commit
de0eb9d970
@ -7,9 +7,9 @@ FROM ocurrent/opam@sha256:d30098ff92b5ee10cf7c11c17f2351705e5226a6b05aa8b9b7280b
|
|||||||
# Pin last known-good version for reproducible builds.
|
# Pin last known-good version for reproducible builds.
|
||||||
# Remove this line (and the base image pin above) if you want to test with the
|
# Remove this line (and the base image pin above) if you want to test with the
|
||||||
# latest versions.
|
# latest versions.
|
||||||
RUN cd ~/opam-repository && git fetch origin master && git reset --hard 0cd6dafebfb49a3b56cce8e6651aa83c591214d5 && opam update
|
RUN cd ~/opam-repository && git fetch origin master && git reset --hard e81ab2996896b21cba74c43a903b305a5a6341ef && opam update
|
||||||
|
|
||||||
RUN opam depext -i -y mirage.3.7.7 lwt.5.3.0
|
RUN opam depext -i -y mirage.3.8.0 lwt.5.3.0
|
||||||
RUN mkdir /home/opam/qubes-mirage-firewall
|
RUN mkdir /home/opam/qubes-mirage-firewall
|
||||||
ADD config.ml /home/opam/qubes-mirage-firewall/config.ml
|
ADD config.ml /home/opam/qubes-mirage-firewall/config.ml
|
||||||
WORKDIR /home/opam/qubes-mirage-firewall
|
WORKDIR /home/opam/qubes-mirage-firewall
|
||||||
|
@ -4,5 +4,5 @@ SOURCE_BUILD_DEP := firewall-build-dep
|
|||||||
|
|
||||||
firewall-build-dep:
|
firewall-build-dep:
|
||||||
opam install -y depext
|
opam install -y depext
|
||||||
opam depext -i -y mirage.3.7.7 lwt.5.3.0
|
opam depext -i -y mirage.3.8.0 lwt.5.3.0
|
||||||
|
|
||||||
|
@ -83,8 +83,8 @@ let connect config =
|
|||||||
Eth.connect net >>= fun eth ->
|
Eth.connect net >>= fun eth ->
|
||||||
Arp.connect eth >>= fun arp ->
|
Arp.connect eth >>= fun arp ->
|
||||||
Arp.add_ip arp my_ip >>= fun () ->
|
Arp.add_ip arp my_ip >>= fun () ->
|
||||||
let network = Ipaddr.V4.Prefix.make 0 Ipaddr.V4.any in
|
let cidr = Ipaddr.V4.Prefix.make 0 my_ip in
|
||||||
I.connect ~ip:(network, my_ip) ~gateway eth arp >>= fun ip ->
|
I.connect ~cidr ~gateway eth arp >>= fun ip ->
|
||||||
U.connect ip >>= fun udp ->
|
U.connect ip >>= fun udp ->
|
||||||
let netvm_mac =
|
let netvm_mac =
|
||||||
Arp.query arp gateway
|
Arp.query arp gateway
|
||||||
|
Loading…
Reference in New Issue
Block a user