module Router: sig
.. end
Equipment for routing/nating traffic
val debug : bool
val min_port : int
the lowest port number used by the address translation
module Nat: sig
.. end
Network Address Translation (N.A.T.) is the process of replacing on the fly non routable
addresses used within a LAN by a unique routable address, so that hosts from the LAN
can communicate with the outside world by sharing the only routable IP address.
module Router: sig
.. end
A router is a device with N IP/Eth devices and a routing
table with rules on interface number, Ip addresses, proto, ports.
val make_gw : ?nb_max_cnxs:int -> Ip.Addr.t -> Ip.Cidr.t -> Tools.trx
A gateway is a device with 2 Eth interfaces, with a public IP address
and a private network address, performing routing between these two,
NAT and DHCP for the LAN. The returned TRX is seen from the LAN (ie, tx
for going out)