Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Tinc package on 2.3

    Scheduled Pinned Locked Moved pfSense Packages
    41 Posts 15 Posters 15.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      PiBa
      last edited by

      b.t.w. Did notice a php warning(only pfsense development snapshots show those, the release version only shows 'errors'..):

      
      [11-Jun-2016 16:28:24 CET] PHP Warning:  rename(/usr/local/etc/tinc/,/usr/local/etc/tinc/.old): Invalid argument in /usr/local/pkg/tinc.inc on line 67
      [11-Jun-2016 16:28:24 CET] PHP Stack trace:
      [11-Jun-2016 16:28:24 CET] PHP   1\. {main}() /usr/local/www/pkg_edit.php:0
      [11-Jun-2016 16:28:24 CET] PHP   2\. eval() /usr/local/www/pkg_edit.php:255
      [11-Jun-2016 16:28:24 CET] PHP   3\. tinc_save() /usr/local/www/pkg_edit.php(255) : eval()'d code:1
      [11-Jun-2016 16:28:24 CET] PHP   4\. rename() /usr/local/pkg/tinc.inc:67
      [11-Jun-2016 16:29:13 CET] PHP Warning:  rename(/usr/local/etc/tinc/,/usr/local/etc/tinc/.old): Invalid argument in /usr/local/pkg/tinc.inc on line 67
      [11-Jun-2016 16:29:13 CET] PHP Stack trace:
      [11-Jun-2016 16:29:13 CET] PHP   1\. {main}() /usr/local/www/pkg_edit.php:0
      [11-Jun-2016 16:29:13 CET] PHP   2\. eval() /usr/local/www/pkg_edit.php:255
      [11-Jun-2016 16:29:13 CET] PHP   3\. tinc_save() /usr/local/www/pkg_edit.php(255) : eval()'d code:1
      [11-Jun-2016 16:29:13 CET] PHP   4\. rename() /usr/local/pkg/tinc.inc:67
      

      Maybe you could check why this happens.?

      1 Reply Last reply Reply Quote 0
      • D Offline
        dmegyesi
        last edited by

        Thank you guys very much for the quick feedbacks!

        I have fixed the Makefile as discussed, it should be okay now.

        I haven't managed to produce the mentioned warning, however by looking at the code I believe it's caused by trying to rename the tinc/ folder to tinc/.old, so I removed the trailing slash at the end in that variable. All the rest of the lines later using this config folder variable are explicitly adding the beginning slash anyway, so it shouldn't cause any issue.

        Pull request submitted: https://github.com/pfsense/FreeBSD-ports/pull/149
        Hope to see the package offically back to pfSense very soon. :)

        1 Reply Last reply Reply Quote 0
        • D Offline
          DaveFH
          last edited by

          @ dmegyesi

          The version you compiled is a 64bit version?

          Du you have a 32bit version too ?

          1 Reply Last reply Reply Quote 0
          • D Offline
            dmegyesi
            last edited by

            Hi,

            I believe it should work basically on any architecture, the package I prepared is not hard-wired for anything special, it just depends on the tinc package itself. As long as the original package is available for i386, I think it should work. I don't have such a system to test though.

            1 Reply Last reply Reply Quote 0
            • F Offline
              FearNaBoinne
              last edited by

              Building a new pfSense right now… If TINC could be on there, it'd be great, since it's currently on a different machine in the network and being routed through it... It works... mostly...

              Having it on the pfSense box should make it much easier, as I'd no longer have to depend on another box and vague routing glitches...  ;)

              1 Reply Last reply Reply Quote 0
              • A Offline
                alphaz
                last edited by

                dmegyesi, i checked the pull request, i'm not that familiar with github, but theres a CLA logo next to it. does it mean its waiting for you to accept a contributor license agreement?

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dmegyesi
                  last edited by

                  It means it's verified that I have already accepted the CLA. So right now it's waiting for review and merge by the pfSense team. As I see there isn't much progress with some older pull requests neither, so I believe they might be busy.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dmegyesi
                    last edited by

                    Hello everyone,

                    in order to see the connected clients in tinc, syslog has to know about /var/log/tinc.log. At this point, it's not included by default in the pfSense syslog.conf. I have submitted a PR to fix this: https://github.com/pfsense/pfsense/pull/3023

                    Until then, a workaround is to add the following 2 lines in /var/etc/syslog.conf:

                    
                    !tinc
                    *.*                                                             %/var/log/tinc.log
                    
                    

                    Please note the syslog.conf is regenerated automatically at each syslog package update / syslog reset. (Those details come from /etc/inc/system.inc. The PR is supposed to fix this for the future.)

                    You can find the latest working version here to test: https://dl.dropboxusercontent.com/u/4512442/pfSense-pkg-tinc-1.0.28.txz

                    1 Reply Last reply Reply Quote 0
                    • V Offline
                      Vetal
                      last edited by

                      @dmegyesi:

                      Hello everyone,

                      in order to see the connected clients in tinc, syslog has to know about /var/log/tinc.log. At this point, it's not included by default in the pfSense syslog.conf. I have submitted a PR to fix this: https://github.com/pfsense/pfsense/pull/3023

                      Until then, a workaround is to add the following 2 lines in /var/etc/syslog.conf:

                      
                      !tinc
                      *.*                                                             %/var/log/tinc.log
                      
                      

                      Please note the syslog.conf is regenerated automatically at each syslog package update / syslog reset. (Those details come from /etc/inc/system.inc. The PR is supposed to fix this for the future.)

                      You can find the latest working version here to test: https://dl.dropboxusercontent.com/u/4512442/pfSense-pkg-tinc-1.0.28.txz

                      Thanks a lot for you support!

                      Finally, I can use 2.3.1.

                      Uploaded your pfSense-pkg-tinc-1.0.28.txz first, http://pkg.freebsd.org/freebsd:10:x86:64/latest/All/tinc-1.0.28.txz second. Existing configuration picked up and all works fine

                      I use tinc with Quagga routing, tap mode. Everything is good

                      There is a minor thing, Status->Tinc VPN does not show any status. Empty "Connection List …" etc

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        DaveFH
                        last edited by

                        Fetching tinc-1.0.28.txz: …....... done
                        Installing tinc-1.0.28...
                        pkg: wrong architecture: FreeBSD:10:amd64 instead of FreeBSD:10:i386

                        Failed to install the following 1 package(s): http://pkg.freebsd.org/freebsd:10:x86:64/latest/All/tinc-1.0.28.txz

                        pkg add http://pkg.freebsd.org/freebsd:10:x86:32/latest/All/tinc-1.0.28.txz:

                        Fetching tinc-1.0.28.txz: …....... done
                        Installing tinc-1.0.28...
                        the most recent version of tinc-1.0.28 is already installed

                        I'm runnig my PFsense on an old Watchguard x750.

                        Now I have successfully installed tinc, but how can I get a webinterface for tinc?

                        :(

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          dmegyesi
                          last edited by

                          @Vetal:

                          There is a minor thing, Status->Tinc VPN does not show any status. Empty "Connection List …" etc

                          Did you do the syslog.conf modification? After that, you need to restart syslogd. (killall syslogd && syslogd)

                          The syslog modification won't persist through reboots. The fix is already submitted to the pfSense repo, waiting for the pull request to be merged.

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            dmegyesi
                            last edited by

                            @DaveFH:

                            Now I have successfully installed tinc, but how can I get a webinterface for tinc?

                            :(

                            It's actually 2 packages: the tinc software itself + the web interface. Now you have installed the base software; the web interface will be the package I provided, see some posts before with the Dropbox link.

                            1 Reply Last reply Reply Quote 0
                            • V Offline
                              Vetal
                              last edited by

                              @dmegyesi:

                              Did you do the syslog.conf modification? After that, you need to restart syslogd. (killall syslogd && syslogd)

                              Thank you!

                              Restarting syslog without reboot makes tinc status page working

                              1 Reply Last reply Reply Quote 0
                              • luckman212L Offline
                                luckman212 LAYER 8
                                last edited by

                                Any further progress on an making the Tinc package official for 2.3.2?

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  alphaz
                                  last edited by

                                  please. I beg you if you know anyone that works at pfsense, harass them luckman212.
                                  I've spoken to a staff member on irc, and unfortunately its above his paygrade, on GitHub no one will ever pick it up apparently. so I don't know who to bug.
                                  tired of waiting.. for someone to click merge. its ridiculous.

                                  1 Reply Last reply Reply Quote 0
                                  • luckman212L Offline
                                    luckman212 LAYER 8
                                    last edited by

                                    I wish I had some insider pull but … I don't. Sorry that this is taking so long, believe me I would like to see it merged too.  I can only assume that people are still scrambling a bit and reshuffling responsibilities after Chris Buechler's departure.  So hopefully the development pace will pick back up soon.

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      tguldener
                                      last edited by

                                      Whats the status here? Will be TINC one time again a official PFSense Package? I follow the installation instruction for 3 firewalls - one working fine, on the two others with the same installations not. I haven't any TINC entry under VPN.

                                      1 Reply Last reply Reply Quote 0
                                      • V Offline
                                        Vetal
                                        last edited by

                                        @tguldener:

                                        Whats the status here? Will be TINC one time again a official PFSense Package? I follow the installation instruction for 3 firewalls - one working fine, on the two others with the same installations not. I haven't any TINC entry under VPN.

                                        I installed on 5 firewalls, all worked smooth

                                        And yesterday, I've guided one case. It didn't work. Mistake was, "pkg add" was called from pfSense UI, the way I never used myself

                                        Doing it the common way I did, via ssh with

                                        sudo pkg add -f ...
                                        

                                        Fixed the situation. Precondition: sudo package must be installed

                                        If you tried with gui, you can try with putty or ssh, just do not forget '-f' to force reinstall

                                        1 Reply Last reply Reply Quote 0
                                        • I Offline
                                          ioiioi
                                          last edited by

                                          I have a question about tinc HA, I got two pfsense box setup and implement active/passive, any possbile to implement tinc as active/passive way?

                                          1 Reply Last reply Reply Quote 0
                                          • L Offline
                                            lockheed
                                            last edited by

                                            @dmegyesi:

                                            Hi,

                                            I believe it should work basically on any architecture, the package I prepared is not hard-wired for anything special, it just depends on the tinc package itself. As long as the original package is available for i386, I think it should work. I don't have such a system to test though.

                                            I think it doesn't:

                                            pkg add https://dl.dropboxusercontent.com/u/4512442/pfSense-pkg-tinc-1.0.28.txz
                                            Fetching pfSense-pkg-tinc-1.0.28.txz: 100%   18 KiB  18.3kB/s    00:01    
                                            Installing pfSense-pkg-tinc-1.0.28...
                                            pkg: wrong architecture: FreeBSD:10:amd64 instead of FreeBSD:10:i386
                                            
                                            Failed to install the following 1 package(s): https://dl.dropboxusercontent.com/u/4512442/pfSense-pkg-tinc-1.0.28.txz
                                            
                                            

                                            Any ideas how to install it on a 32bit system?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.