Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2002 12:36:26 +0300
From:      Hard Wisdom <hw@ksue.edu.ua>, Kharkov@FreeBSD.ORG, State@FreeBSD.ORG, University@FreeBSD.ORG, of@FreeBSD.ORG, Economics@FreeBSD.ORG
To:        to Somebody it may concern <freebsd-hackers@FreeBSD.org>
Subject:   [PATCH] Small contribution to FreeBSD Firewall configuration
Message-ID:  <13213006484.20020904123626@ksue.edu.ua>

next in thread | raw e-mail | index | archive | help
------------110115E3E248818
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello freebsd-hackers,

After some attempts to configure firewall (during last 2 years) I
realized necessity to automate the task. So, output of my work is
here:

These scripts may be easely extended to implement another security model.
I think, these must be placed at /usr/share/examples/ipfw,
then user may wish to install them at /etc/firewall manually
and invoke as:

firewall_enable="YES"
firewall_type="/etc/firewall/mirinda.load"

Currently configured template file is for my particular computer
(configuration is somewhat complicated, but shows all configuration
possibilities implemented).

I use only /bin/sh utility to produce necessary loadable configuration
(and make utility too, but it doesn't matter now)

-- 
Best regards,
 hw                          mailto:hw@ksue.edu.ua
------------110115E3E248818
Content-Type: application/x-compressed; name="ipfw_reload.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ipfw_reload.tgz"

H4sIAEjRdT0AA+08aXfbyJHzVfwVbYkJLUWiCICHNFpl1yM7L/N2nPj5SD7YHg4ENkVEJMDBYUnj
8X9PVXU3boAAJcreDdszEoSuqq6urq6jD0xtj9+Y83nXchcL1/luE0Xr9Ya9HvuOYcn+Zmw40geM
jQaGofWHxqjPmKYbmvEd622Em0wJ/cD0GPvOc92gCu5mxvn8MRh63LL35PjSdo79Wau1x46Ojthr
Pp1zK7Bdh5nOhC14YLKpadlzO7C5jyA1iyT4cAXo/WT7AXOn7JM5D4EZevJs83IOf/hLbtlTm0/Y
5R3rLD0+tW87LYAczwHr6T773EJt83nAfmdXHl+yn9saPPqAsesf//z+5/OPB+fHx7utL5tk3TE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WADqpA3SaBirbaawBdFIH
6JQy4+Y34QVtCO7kRfYaWUusCZVoWeNdEy2bqdREy+coRYhNspM18Y1G+JUZSUMKhblIcxr5LERN
ubU+ZUCNn5RtyiW1LGuCayD110EarIOE+lWKlhBorEbp3lV0rwDbWAM7pUEJdDG4NfDT+rMmhYT2
1KewSiuSLra2VjREGqyDpLSiEK22VtTFLtaKauzVWrECv4ZWrKawSisait3IRxRN1KIR1mAtrIRi
FOA10Yx66KWqUYVeSzcqCdRTjlUkamhHlII1/LyMaFWlmfXWraS7q/hSjKCq97Yfi/m2ijr/JW6L
bKaNFff/WN/Inv/anv9/rCJv9sAQteSjHj8a8eNAix/1+NGIHocx7DAGGCYA+vHjIH4cxY8n8eNp
9DiK6Y5iHkZxE6O4iVHcxGgYP8ZNjOImRnETJ3ETJ3ETYKy29mhbtmVbtmVbtmVbtmVbtmVbtmVb
tmVbtmVbtmVb/g+XfwPonD0GAKAAAA==

------------110115E3E248818--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13213006484.20020904123626>