Fórumok
Üdv!
Van egy FreeBSD 7.0 szerver, rajta PF, a konfig így néz ki:
# macros
ext_if = "re0"
tcp_services = "{ 22, 80 }"
icmp_types = "echoreq"
# options
set block-policy return
set loginterface $ext_if
# scrub
scrub in all
# filter rules
block all
pass quick on lo0 all
pass in on $ext_if inet proto tcp from any to ($ext_if) port $tcp_services flags S/SA keep state
pass in inet proto icmp all icmp-types $icmp-types keep state
pass out on $ext_if proto tcp all modulate state flags S/SA
pass out on $ext_if proto { udp, icmp } all keep state
Engedélyezéskor azt mondja, hogy az icmp makró nincs definiálva. Keresgéltem a neten, de nem igen találtam megoldást, mi lehet a baj?
- 742 megtekintés
Hozzászólások
pass in inet proto icmp all icmp-type $icmp-types keep state
Nem icmp-types, hanem icmp-type.
It doesn't matter if you like my song as long as you can hear me sing
- A hozzászóláshoz be kell jelentkezni
no meg nem $icmp-types hanem $icmp_types :)
- A hozzászóláshoz be kell jelentkezni
typo kign
http://weho.st
never happen if you never try
- A hozzászóláshoz be kell jelentkezni
Igen, elgépeltem :-) Köszi a segítséget.
tehát helyesen:
pass in inet proto icmp all icmp-type $icmp_types keep state
- A hozzászóláshoz be kell jelentkezni