Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Command line firewall rules - easyrule in opnsense?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Command line firewall rules - easyrule in opnsense? (Read 12859 times)
daniel78
Newbie
Posts: 7
Karma: 1
Command line firewall rules - easyrule in opnsense?
«
on:
August 25, 2020, 11:23:51 am »
Hi,
is there something like
https://docs.netgate.com/pfsense/en/latest/firewall/adding-rules-with-easyrule.html
to easy modify some rules on the cli in opnsense?
Lets say directly after commandline installation I want to temporarily administrate the box from WAN and therefore enable webinterface on wan?
Thanks
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Command line firewall rules - easyrule in opnsense?
«
Reply #1 on:
August 25, 2020, 11:46:58 am »
easyrule utility was removed in 2015. I don't think anyone ever asked for it since then.
Today, you can use an API to inject firewall rules
https://github.com/opnsense/plugins/issues/1720
or you can simply use a WAN-only setting for the first few minutes (anti-lockout will know what you are doing) of your setup where you manually enable port 443 access before you add your LAN and OPTs.
Cheers,
Franco
Logged
daniel78
Newbie
Posts: 7
Karma: 1
Re: Command line firewall rules - easyrule in opnsense?
«
Reply #2 on:
August 26, 2020, 04:23:26 pm »
Thanks a lot! This helps!
Logged
Tol Phobos
Newbie
Posts: 6
Karma: 0
Re: Command line firewall rules - easyrule in opnsense?
«
Reply #3 on:
December 02, 2020, 09:54:59 pm »
I used regularly easyrule on pfSense (I protected my HTPPS interface with IP source filtering on my AS adress range ... and sometime my provider change my AS).
I miss it on OPNsense.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Command line firewall rules - easyrule in opnsense?
«
Reply #4 on:
December 03, 2020, 08:03:07 pm »
It's perfectly possible to write a plugin emulating the functionality with all the rule handling reworks we've done over the years.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Command line firewall rules - easyrule in opnsense?