Routing setup with pfSense package

Lars Kruse lists at sumpfralle.de
Wed Aug 29 00:11:43 CEST 2018


Hello Corey,


Am Tue, 28 Aug 2018 16:23:02 -0400
schrieb Corey Boyle <coreybrett at gmail.com>:

> See this thread for more details...
> 
> https://forum.netgate.com/topic/134218/tinc-initial-setup


I think, the crucial misunderstanding in the above thread is the following:

> However, the routeing table on each router does not reflect this information
> and only has a single route added for the tun interface.

I think it is important to understand, that tinc (unlike OpenVPN, for example)
does not provide any network configuration details for you. It just creates a
network interface and deals with packets, that flow into or out of this
interface.
Everything else (configuring IP addresses and routing) needs to be done by you
in the scripts (tinc-(up|down), subnet-(up|down), ...).

For your case I guess, that the following script "subnet-up" could be
sufficient:

 #!/bin/sh
 ip route add "$SUBNET" dev "$INTERFACE"

("subnet-down" should do the opposite)

Cheers,
Lars


More information about the tinc mailing list