#+CAPTION: [[file:public/vars.yml][=public/vars.yml=]]
#+BEGIN_SRC conf :tangle public/vars.yml
-front_addr: 192.168.15.3
+front_addr: 192.168.15.4
#+END_SRC
The example address is a private network address because the example
PostUp = resolvectl domain %i small.private
[Peer]
-EndPoint = 192.168.15.3:39608
+EndPoint = 192.168.15.4:39608
PublicKey = S+6HaTnOwwhWgUGXjSBcPAvifKw+j8BDTRfq534gNW4=
AllowedIPs = 10.177.87.1
AllowedIPs = 192.168.56.0/24
# Front
[Peer]
-EndPoint = 192.168.15.3:39608
+EndPoint = 192.168.15.4:39608
PublicKey = S+6HaTnOwwhWgUGXjSBcPAvifKw+j8BDTRfq534gNW4=
AllowedIPs = 10.177.87.1
AllowedIPs = 10.177.87.0/24
--network 192.168.15.0/24 \
--enable --dhcp on --ipv6 off
VBoxManage natnetwork start --netname public
+VBoxManage dhcpserver modify --network=public --lower-ip=192.168.15.5
VBoxManage hostonlyif create # vboxnet0
VBoxManage hostonlyif ipconfig vboxnet0 --ip=192.168.56.10
VBoxManage hostonlyif create # vboxnet1
#+END_SRC
Note that only the NAT network ~public~ should have a DHCP server
-enabled, and it should not lease ~192.168.15.3~. This works, so far.
-The VirtualBox DHCP service seems to start assigning IPs beginning
-with ~192.168.15.5~. It is not simply disabled because Gate is
-expecting the service from its ISP.
+enabled (to simulate an ISP and cloud for ~gate~ and ~front~
+respectively). Yet ~front~ is statically assigned an IP address
+outside the DHCP server's pool. This ensures it gets ~front_addr~
+without more server configuration.
Note also that actual ISPs and clouds will provide Gate and Front with
public network addresses. In this simulation "they" provide addresses
-on the private ~192.168.15.0/24~ NAT network.
+in ~192.168.15.0/24~, on the NAT network ~public~.
** The Test Machines
# The primary network interface
auto enp0s3
iface enp0s3 inet static
- address 192.168.15.3/24
+ address 192.168.15.4/24
gateway 192.168.15.1
# Testing interface
#+BEGIN_SRC sh
ping -c 1 8.8.4.4 # dns.google
-ping -c 1 192.168.15.3 # front_addr
+ping -c 1 192.168.15.4 # front_addr
#+END_SRC
~gate~ and thus ~core~ should be able to resolve internal and public
- Find it in =/home/dick/Maildir/new/=.
- Re-configure Evolution on ~dick~. Edit the ~dick@small.example.org~
mail account (or create a new one?) so that the Receiving Email
- Server name is ~192.168.15.3~, not ~mail.small.private~. The
+ Server name is ~192.168.15.4~, not ~mail.small.private~. The
latter domain name will not work while the campus is disappeared.
In actual use (with Front, not ~front~), the institute domain name
could be used.