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

    From SOURCES to PACKAGES

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    18 Posts 7 Posters 3.8k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Of course you realise that running nginx on your pfSense box is very much not recommended? What function are you planning to use it for?

      Steve

      1 Reply Last reply Reply Quote 0
      • B
        bullet92
        last edited by

        It works, thanks!  :) But i had to modify the sintax. This is what i used:

        ./configure --with-http_gzip_static_module --prefix=/usr/local/etc/nginx
        mkdir /tmp/nginx
        make install DESTDIR=/tmp/nginx
        cd /tmp/nginx
        tar -czf nginx.tz *
        #after moving the tarball to pfsens box:
        /etc/rc.conf_mount_rw
        mkdir /usr/local/etc/nginx
        tar xzf nginx.tz -C / # The tarball already contains the directory structure used in  .configure
        
        

        @stephenw10

        Yes, i know :) in fact i have 2 pfsense box:
        1 without any plugins and another one that i'm using to do video and web-cache.

        1 Reply Last reply Reply Quote 0
        • I
          iolaus
          last edited by

          @stephenw10:

          Of course you realise that running nginx on your pfSense box is very much not recommended? What function are you planning to use it for?

          Steve

          Steve,

          Can you elaborate on why nginx on pfSense is not recommended?  I'm very interested in using at as a reverse proxy server.  I've explored using the Squid3 package but it is missing features that I've been using from nginx (on OpenWRT).  Namely, redirect with path & querystring (ie https://sub.mydomain.com/some/path?querystring to http://internal-server/some/path?querystring) and support for Basic Authentication (so I can force authentication for remote connections without implementing it on each internal web server).

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Running as a web server is what's really not recommended. As a reverse proxy less so. However adding any packages yourself carries an inherent risk especially if they are services exposed to WAN. You would responsible for maintaining it against any new vulnerability.

            There are several reverse proxy packages already. Does nginx offer something the others don't that you really need?

            Steve

            1 Reply Last reply Reply Quote 0
            • K
              kejianshi
              last edited by

              Too many people seem to think pfsense is a swiss army knife.

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                An nginx package doesn't seem like a terrible idea though, as long as it's limited to reverse proxy duties. People will inevitably use it as a web server I imagine.  ::)

                Steve

                1 Reply Last reply Reply Quote 0
                • R
                  robi
                  last edited by

                  @kejianshi:

                  Too many people seem to think pfsense is a swiss army knife.

                  Actually, it is. And that's no problem. It's great.
                  The only thing is, that you have to use it cleverly. Like 5 posts before: he has two pfSense installs, one for main firewalling, and one for playing around. What's wrong with that?

                  1 Reply Last reply Reply Quote 0
                  • K
                    kejianshi
                    last edited by

                    My personal opinion is that if you install too many services on your pfsense firewall, you no longer have a firewall - you have something that needs a firewall in front of it.

                    1 Reply Last reply Reply Quote 0
                    • R
                      robi
                      last edited by

                      But he said he already has a firewall in front, which is a separate pfSense box.

                      1 Reply Last reply Reply Quote 0
                      • K
                        kejianshi
                        last edited by

                        http://www.youtube.com/watch?v=aXQ2lO3ieBA

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          I have no problem using pfSense as a base for an appliance. You just have to understand the security implications. pfSense had at one time a dedicated DNS version and it makes a nice VPN concentrator. No reason why it couldn't be a dedicated reverse proxy.

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • R
                            robi
                            last edited by

                            @stephenw10:

                            it makes a nice VPN concentrator

                            Indeed!

                            1 Reply Last reply Reply Quote 0
                            • K
                              kejianshi
                              last edited by

                              But…  Can it blend?

                              1 Reply Last reply Reply Quote 0
                              • R
                                robi
                                last edited by

                                ???

                                1 Reply Last reply Reply Quote 0
                                • D
                                  doktornotor Banned
                                  last edited by

                                  @robi:

                                  ???

                                  http://www.youtube.com/watch?v=ZWP8OUytprE

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