Problem s nacitanim pravidel pro ipfw
Zdeněk Kolařík
zkolarik at miastudio.cz
Wed Sep 29 16:05:25 CEST 2004
Divacky Roman napsal(a):
>radu co psal kolega jsem nepochopil
>
>
Upresnim tedy zneni:
Do /etc/rc.firewall je treba zadat spravne HODNOTY do promennych. Zde je
ta cast skriptu, oniz byla rec:
[Ss][Ii][Mm][Pp][Ll][Ee])
############
# This is a prototype setup for a simple firewall. Configure this
# machine as a named server and ntp server, and point all the
machines
# on the inside at this machine for those services.
############
A toto jsou ty promenne, ktere se musi nastavit dle Vaseho systemu
(napr. "oif" a "iif" lze vycist v "ifconfig"):
# set these to your outside interface network and netmask and ip
oif="ed0"
onet="192.0.2.0"
omask="255.255.255.240"
oip="192.0.2.1"
# set these to your inside interface network and netmask and ip
iif="ed1"
inet="192.0.2.16"
imask="255.255.255.240"
iip="192.0.2.17"
Jinak pri provadeni skriptu shell proste skonci, kdyz nenajde ta
zarizeni....
>>Do skriptu /etc/rc.firewall je treba zadat do promennych oip, onet,
>>omask, atd. spravna zarizeni. (Napr. viz dmesg). Ve vypisu z
>>/etc/rc.conf, co posilate, mate "FITEWALL_TYPE" (schvalne pisu velkym,
>>ale to asi neni ten problem, spise preklep pri opisu...)
>>
>>Martin Hlahůlek - MERAX napsal(a):
>>
>>
>>
>>>Zdravim,
>>>asi to bude trapny problem, ale uz se s tim trapim dobre ctyri hodiny.
>>>Vysvetli mi nekdo, proc mi FreeBSD 5.2.1-RELEASE po restartu nechce
>>>nacist rc.firewall script?.
>>>V rc.conf mam (mimo jine) tohle:
>>>firewall_enable="YES"
>>>firewall_script="/etc/rc.firewall"
>>>fitewall_type="simple" # pokus
>>>
>>>ale rc.firewall se nenacte, pokud zadam sh /etc/rc.firewall open, tak
>>>se normalne nacte (ipfw list - vypis podle predstav).
>>>
>>>
More information about the Users-l
mailing list