description.txt 1.1 KB

123456789101112131415
  1. A connection between two identical <b>10.0.0.0/14</b> networks behind the gateways <b>moon</b>
  2. and <b>sun</b> is set up. In order to make network routing work, the subnet behind <b>moon</b>
  3. sees the subnet behind <b>sun</b> as <b>10.4.0.0/14</b> whereas the subnet behind <b>sun</b>
  4. sees the subnet behind <b>moon</b> as <b>10.8.0.0/14</b>. The necessary network mappings are
  5. done on gateway <b>sun</b> using the iptables <b>MARK</b> and <b>NETMAP</b> targets.
  6. <p/>
  7. Upon the successful establishment of the IPsec tunnel, on gateway <b>moon</b> the directive
  8. <b>leftfirewall=yes</b> automatically inserts iptables-based firewall rules that let pass
  9. the tunneled traffic whereas on gateway <b>sun</b> the script indicated by
  10. <b>leftupdown=/etc/mark_updown</b> inserts iptables rules that set marks defined in the
  11. connection definition of <b>ipsec.conf</b> both on the inbound and outbound traffic, create
  12. the necessary NETMAP operations and forward the tunneled traffic.
  13. <p/>
  14. In order to test both tunnel and firewall, client <b>alice</b> behind gateway <b>moon</b>
  15. pings client <b>bob</b> located behind gateway <b>sun</b> and vice versa.