<p dir="ltr">Hey there,<br></p>
<p dir="ltr">So I have two Amazon EC2 instances (micro) running tincd. Each is running dnsmasq to provide a dhcp server for tinc users.<br></p>
<p dir="ltr">Their configuration looks something like this:<br></p>
<p dir="ltr">[tinc1:/etc/tinc/tincnet/tinc.conf]</p>
<p dir="ltr">Name = tinc1</p>
<p dir="ltr">AddressFamily = ipv4</p>
<p dir="ltr">Interface = tun0</p>
<p dir="ltr">Mode = switch<br></p>
<p dir="ltr">ConnectTo = tinc1</p>
<p dir="ltr">ConnectTo = tinc2<br></p>
<p dir="ltr">[tinc1:/etc/tinc/tincnet/hosts/tinc1]</p>
<p dir="ltr">Address = 10.100.250.100</p>
<p dir="ltr">Subnet = <a href="http://172.31.1.1/32">172.31.1.1/32</a><br></p>
<p dir="ltr">[tinc1:/etc/tinc/tincnet/tinc-up]</p>
<p dir="ltr">#!/bin/sh</p>
<p dir="ltr">ifconfig $INTERFACE 172.31.1.1 netmask 255.255.0.0<br></p>
<p dir="ltr">[tinc1:/etc/dnsmasq.d/devnet-dhcp]</p>
<p dir="ltr">interface=tun0</p>
<p dir="ltr">bind-interfaces</p>
<p dir="ltr"># Dynamic IP range</p>
<p dir="ltr">dhcp-range=172.31.1.11,172.31.1.254,24h<br></p>
<p dir="ltr">The VPN works great - I simply add a new user's pubkey to /etc/tinc/tincnet/hosts on each of the two boxes, then they can connect and send traffic to any host on the VPN (each with an IP like 172.31.14.13).</p>
<p dir="ltr">Next question is... how do I go from this setup to a "router"/"bridge" like setup? I would like to ultimately use this to allow access to some internal networks with IPs like <a href="http://10.100.250.0/24">10.100.250.0/24</a> through the VPN, but I have no idea how to actually build that just yet.<br></p>
<p dir="ltr">Thanks for any consideration and thanks for reading this far :)<br>
~ Benjamin</p>