Add additional workstation Betelgeuse
This commit is contained in:
parent
bbb48bcf8c
commit
3e9ece5237
3 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
|||
/sbin/ifconfig $INTERFACE down
|
||||
/bin/ip route del {{ tinc_remote_nets[0].net_cidr }} dev eth0
|
||||
|
||||
{% elif ansible_hostname == 'Magrathea' %}
|
||||
{% elif ansible_os_family == 'Darwin' %}
|
||||
/sbin/ifconfig $INTERFACE down
|
||||
/sbin/route -n delete -net {{ tinc_remote_nets[0].net_cidr }} {{ tinc_remote_nets[0].gateway }}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
iptables -t nat -A POSTROUTING -o eth0 -s {{ tinc_vpn_net }} -j MASQUERADE
|
||||
|
||||
{% elif ansible_hostname == 'Magrathea' %}
|
||||
{% elif ansible_os_family == 'Darwin' %}
|
||||
# only a single endpoint works, because tun interface is p2p
|
||||
/sbin/ifconfig tun0 inet {{ tinc_client_ip | ipaddr('address') }} {{ tinc_remote_nets[0].gateway }} up netmast 255.255.255.0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue