ho-ansible / ansible

Playbooks and config for remote administration
1 stars 0 forks source link

tinc: router mode? #60

Closed seanho00 closed 6 years ago

seanho00 commented 7 years ago

Android app requires it due to Android VPN service limitation. Worthwhile to convert entire tinc network over to L3 router mode instead of L2 switch mode?

seanho00 commented 7 years ago

A partial workaround is to run a separate routed tinc network just for the Android phones. Two servers run double-duty and can route between both VPNs.

On the Android clients, use tinc host files and Subnet declarations to specify which host can route packets to the main VPN (or indeed to the internet, default route).

On the VPN routers, add FORWARDING and -t nat POSTROUTING iptables rules to do SNAT to the internet and to the main VPN.

Need to set ansible for multiple tinc networks (with_dict).

seanho00 commented 7 years ago

sysctl net.ipv4.ip_forward = 1

seanho00 commented 6 years ago

Config host files: #86