Toon posts:

[BC3] [FreeBSD] IPFW

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hoe zet ik support voor ipfw (firewall) in FreeBSD aan?
Je moet een extra optie toevoegen.. maar hoe/waar? :?

Alvast bedankt!

  • RvdH
  • Registratie: Juni 1999
  • Laatst online: 28-07 15:42

RvdH

Uitvinder van RickRAID

http://www.freebsd.org/handbook/kernelconfig.html

"options IPFIREWALL" moet je ws hebben, zie ook /sys/i386/conf/LINT.

Verwijderd

indien thuisnetwerkje met private range ip adressen (dus als je natd gebruikt:

options IPFIREWALL #rara was is dit
options IPDIVERT #voor natd
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=10
options TCP_DROP_SYNFIN
options TCP_RESTRICT_RST
options ICMP_BANDLIM


dan kernel compilen
vervolgend in /etc/rc.conf het volgende neerplanten:

firewall_enable="YES"
firewall_scripts="/etc/rc.firewall"
firewall_type="open"
firewall_quiet="NO"
gateway_enable="YES"
natd_program="/sbin/natd"
natd_enable="YES"
natd_interface="ed0" #naam van je EXTERNE kaart
natd_flags="-dynamic"
hostname="mindstudios.com"
rebooten en klaar