A connection between the subnets behind the gateways moon and sun is set up. The authentication is based on Preshared Keys (PSK). Upon the successful establishment of the IPsec tunnel, automatically inserted iptables-based firewall rules let pass the tunneled traffic. In order to test both tunnel and firewall, client alice behind gateway moon pings client bob located behind gateway sun.