]>
Commit | Line | Data |
---|---|---|
9ed09d5f MW |
1 | moon::iptables-restore < /etc/iptables.rules |
2 | moon::iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/16 -j MASQUERADE | |
3 | moon::iptables -A FORWARD -i eth1 -o eth0 -s 10.1.0.0/16 -j ACCEPT | |
4 | moon::iptables -A FORWARD -i eth0 -o eth1 -d 10.1.0.0/16 -j ACCEPT | |
eba26225 AS |
5 | sun::systemctl start strongswan |
6 | alice::systemctl start strongswan | |
7 | venus::systemctl start strongswan | |
141ac4df | 8 | sun::expect-connection nat-t |
9ed09d5f | 9 | alice::expect-connection nat-t |
eba26225 | 10 | alice::swanctl --initiate --child nat-t |
141ac4df | 11 | venus::expect-connection nat-t |
eba26225 | 12 | venus::swanctl --initiate --child nat-t |