Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Nginx usage without GUI
« previous
next »
Print
Pages: [
1
]
Author
Topic: Nginx usage without GUI (Read 2594 times)
michaelgo
Jr. Member
Posts: 52
Karma: 1
Nginx usage without GUI
«
on:
September 17, 2021, 07:57:19 am »
Hi,
is it possible to use Nginx without GUI?
can i just clean /usr/local/etc/nginx/nginx.conf and use it? Or is there some kind of integration parameters that cannot be deleted(the configuration file is quite big)?
thanks
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Nginx usage without GUI
«
Reply #1 on:
September 17, 2021, 07:08:27 pm »
You can uninstall os-nginx and install only the nginx package (pkg install nginx). Then the whole UI and the integration is gone and you can use almost plain nginx (it will still contain some compiled in extensions but they should not do anything if you don't configure those features).
In general, this works with all plugins. The os- package is the OPNsense UI / service management / system integration.
The package without the os- prefix is the FreeBSD package compiled for OPNsense with the actual software.
«
Last Edit: September 17, 2021, 07:18:26 pm by fabian
»
Logged
michaelgo
Jr. Member
Posts: 52
Karma: 1
Re: Nginx usage without GUI
«
Reply #2 on:
September 21, 2021, 08:08:31 am »
thanks!
does it mean that the packet flow will remain the same in the system if nginx installed as package without system integration?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Nginx usage without GUI
«
Reply #3 on:
September 21, 2021, 08:36:09 am »
Even the plugin did nothing with the packets explicitly.
Logged
michaelgo
Jr. Member
Posts: 52
Karma: 1
Re: Nginx usage without GUI
«
Reply #4 on:
September 21, 2021, 09:35:50 am »
thanks!
by packet flow i mean order of processing.
Where does traffic go through Nginx or other plugins in the FW=>routing order?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Nginx usage without GUI
«
Reply #5 on:
September 21, 2021, 05:54:54 pm »
local services do not involve routing on OPNsense since they are the source or the target. Or do you mean some NAT stuff?
Logged
michaelgo
Jr. Member
Posts: 52
Karma: 1
Re: Nginx usage without GUI
«
Reply #6 on:
September 22, 2021, 03:33:41 pm »
then i'm confused...
what is the traffic processing order when you use Nginx with opnsense?
for example:
nginx (as a reverse proxy) is listening on a specific port and forwards traffic to upstream servers
now, where's FW and system routing comes in?
routing = > FW => Nginx => routing => FW=> upstream server?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Nginx usage without GUI
«
Reply #7 on:
September 22, 2021, 09:21:31 pm »
AFAIK
(DNAT ->) filter in -> nginx -> SNAT / Filter out (don't know the order here).
There is no routing except maybe the NAT decision. The other thing that involves routing is that the kernel will choose the optimal outbound interface which is as close to the destination host as possible.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Nginx usage without GUI