<div dir="ltr">I dont know have to. I had this configuration working on Ubuntu, but it may be that NixOS is not very happy about it may be?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 26, 2014 at 12:11 AM, Saverio Proto <span dir="ltr"><<a href="mailto:zioproto@gmail.com" target="_blank">zioproto@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">are you trying to use the same subnet on both interfaces ?<br>
<br>
2014-08-26 6:55 GMT+02:00 Zia Syed <<a href="mailto:xia.syed@gmail.com">xia.syed@gmail.com</a>>:<br>
<div><div class="h5">> Hi,<br>
><br>
> Does anyone here have experience running Tinc on NixOS?<br>
><br>
> I'm trying to run Tinc on a NixOS machine, using the similar configuration i<br>
> had for Ubuntu. My home subnet is <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> and my work is<br>
> <a href="http://10.16.0.0/24" target="_blank">10.16.0.0/24</a>. However, unlike ubuntu, when I start tincd on nixos, and try<br>
> to 'ifconfig $INTERFACE 192.168.1.10 netmask 255.255.255.0' in my tinc-up, I<br>
> loose network access on the box (no ping/ssh to the box). I see tun0<br>
> interface created, but no data flows.<br>
><br>
> eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500<br>
> inet 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255<br>
> inet6 fe80::c23f:d5ff:fe62:8353 prefixlen 64 scopeid 0x20<link><br>
> ether c0:3f:d5:62:83:53 txqueuelen 1000 (Ethernet)<br>
> RX packets 33611293 bytes 45550645568 (42.4 GiB)<br>
> RX errors 0 dropped 42 overruns 0 frame 0<br>
> TX packets 22359766 bytes 26366564624 (24.5 GiB)<br>
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
> device interrupt 20 memory 0xf7c00000-f7c20000<br>
><br>
><br>
> tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500<br>
> unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen<br>
> 500 (UNSPEC)<br>
> RX packets 0 bytes 0 (0.0 B)<br>
> RX errors 0 dropped 0 overruns 0 frame 0<br>
> TX packets 0 bytes 0 (0.0 B)<br>
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
><br>
> Here is my tinc-up<br>
><br>
> #!/nix/store/ajxd1z42ql9qihdj1pa7in12iynf532g-bash-4.2-p45/bin/sh<br>
> #ifconfig $INTERFACE 192.168.1.10 netmask 255.255.255.0<br>
> ip route add <a href="http://10.16.0.0/24" target="_blank">10.16.0.0/24</a> dev $INTERFACE<br>
> ip link set dev $INTERFACE up<br>
><br>
> Here are the routes on I see<br>
> [zs@homer2:~]$ route<br>
> Kernel IP routing table<br>
> Destination Gateway Genmask Flags Metric Ref Use<br>
> Iface<br>
> default 10.16.0.1 0.0.0.0 UG 0 0 0<br>
> eno16777728<br>
> 10.16.0.0 * 255.255.0.0 U 0 0 0<br>
> eno16777728<br>
> 192.168.1.0 * 255.255.255.0 U 0 0 0<br>
> eno16777728<br>
><br>
> [zs@esprit1:~]$ route<br>
> Kernel IP routing table<br>
> Destination Gateway Genmask Flags Metric Ref Use<br>
> Iface<br>
> default 192.168.1.1 0.0.0.0 UG 202 0 0 eno1<br>
> 10.16.0.0 * 255.255.255.0 U 0 0 0 eno1<br>
> 192.168.1.0 * 255.255.255.0 U 202 0 0 eno1<br>
><br>
><br>
> Any suggestions/pointers to debug this would be appreciated. I see the two<br>
> tinc nodes are performing PING/PONG.<br>
><br>
> Thanks,<br>
> Zia<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> tinc mailing list<br>
> <a href="mailto:tinc@tinc-vpn.org">tinc@tinc-vpn.org</a><br>
> <a href="http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc" target="_blank">http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc</a><br>
><br>
_______________________________________________<br>
tinc mailing list<br>
<a href="mailto:tinc@tinc-vpn.org">tinc@tinc-vpn.org</a><br>
<a href="http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc" target="_blank">http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc</a><br>
</blockquote></div><br></div>