pf.conf
Добавлено: 2012-10-25 9:21:55
Сам шлюз не резолвит имена, клиенты локальные натовские - нормально. Что не пускает? Не могу понять...
Код: Выделить всё
# cat /etc/pf.conf
ext_if="em0"
int_if="em1"
lan="10.0.1.0/24"
provider="77.232.0.0/16"
good_tcp = "{ ssh, smtp, domain, pop3, auth, pop3s }"
good_udp = "{ domain }"
table <fullnats> file "/etc/fullnats.conf"
set skip on lo0
scrub in all
nat on $ext_if from $lan to any -> ($ext_if)
block in all
pass in quick on $int_if from <fullnats> to any # nat в полном объёме разрешен лишь избранным
pass in proto tcp from any to any port $good_tcp
pass in proto udp from any to any port $good_udp
pass in on $int_if proto tcp from any to $int_if port 8080 # клиенты сквид
pass in on $ext_if proto tcp from $provider to ($ext_if) port ssh
pass in on $int_if proto tcp from any to $int_if port ssh
pass inet proto icmp all icmp-type echoreq