Project

General

Profile

Actions

Bug #14076

open

OI: Ipfilter firewall table rules won't load at startup

Added by Adrian Kieß 11 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Dear Developers,

using my OpenIndiana installation, the ipfilter service won't load at startup after adding content to /etc/ipf/ipf.conf and /etc/ipf/ipf6.conf.
I enabled the ipfilter service with svcadm enable ipfilter.

I found a script in a forum @ the Internet, which fixes the issue. I paste it down below:

#!/bin/sh
#wait for system to bootup and services start
sleep 15
#Enable custom firewall rules for ipfilter...
svcadm enable ipfilter

svccfg -s ipfilter:default setprop \
firewall_config_default/policy = astring: "custom"

svccfg -s ipfilter:default setprop \
firewall_config_default/custom_policy_file = astring: \
"/etc/ipf/ipf.conf"

svcadm refresh ipfilter:default

This script I have put in /usr/local/bin/pkcfirewall.

Please have a look at the issue.

Thank you very much in advance.

Sincerely,

Adrian Kieß


Files

network-ipfilter_default.log (35.7 KB) network-ipfilter_default.log /var/svc/log/network-ipfilter:default.log Adrian Kieß, 2022-03-17 03:08 PM
ipf.conf (1.99 KB) ipf.conf Adrian Kieß, 2022-03-17 03:30 PM
ipf6.conf (2.28 KB) ipf6.conf Adrian Kieß, 2022-03-17 03:30 PM
Actions

Also available in: Atom PDF