Хочу поставить файервол ipfw.
Читаю:
Возможно ли поставить файервол без пересборки ядра?Итак. Для включения файрволла придётся пересобрать ядро со следующими опциями:
Спасибо!
Возможно ли поставить файервол без пересборки ядра?Итак. Для включения файрволла придётся пересобрать ядро со следующими опциями:
Код: Выделить всё
kldload ipfw
Код: Выделить всё
kldload libalias
kldload ipfw_nat
Код: Выделить всё
kldload ipdivert
Код: Выделить всё
kldload dummynet
Код: Выделить всё
kldload alias_ftp
kldload alias_pptp
Код: Выделить всё
kldload ipfw && ipfw add 65530 allow ip from any to any
но если вам нужен fwd то он включается только пересборкой ядра
Код: Выделить всё
ipfw_load="YES"
А почему тогда у меня работает, и divert и nat и mpd, может потому, что в /boot/loader.confГость писал(а):да не все
кроме IPFIREWALL_FORWARD
IPDIVERT кстати тоже не доступен
если вы пользуетесь ipfw add divert natd итд
Код: Выделить всё
geom_journal_load="yes"
libalias_load="yes"
ipfw_load="yes"
ipfw_nat_load="yes"
dummynet_load="yes"
ipdivert_load="yes"
wlan_xauth_load="yes"
netgraph_load="yes"
rc4_load="yes"
ng_ether_load="yes"
ng_tee_load="yes"
ng_socket_load="yes"
ng_mppc_load="yes"
Код: Выделить всё
firewall_enable="yes"
mpd_enable="yes"
Код: Выделить всё
... 7.2-RELEASE-p8 #0: ... /usr/obj/usr/src/sys/GENERIC i386
Гость писал(а):да не все
кроме IPFIREWALL_FORWARD
IPDIVERT кстати тоже не доступен
если вы пользуетесь ipfw add divert natd итд
Код: Выделить всё
dog@dog:~> uname -rsm
FreeBSD 8.2-PRERELEASE amd64
Код: Выделить всё
dog@dog:~> man divert
DIVERT(4) FreeBSD Kernel Interfaces Manual DIVERT(4)
NAME
divert — kernel packet diversion mechanism
SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int
socket(PF_INET, SOCK_RAW, IPPROTO_DIVERT);
To enable support for divert sockets, place the following lines in the
kernel configuration file:
options IPFIREWALL
options IPDIVERT
Alternatively, to load divert as a module at boot time, add the following
lines into the loader.conf(5) file:
ipfw_load="YES"
ipdivert_load="YES"
...