Имеется pf.confext_if="rl0"
int_if="bfe0"
tcp_services = "{ ssh, pop3, smtp, domain }"
udp_services = "{ domain }"
scrub in all
nat on $ext_if from $int_if:network to any -> ($ext_if)
block all
pass proto tcp to any port $tcp_services keep state
pass proto udp to any port $udp_services keep state
pass on $ext_if inet proto icmp icmp-type {0, 3, 4, 8, 11, 12}
pass out on $ext_if proto {tcp, udp} all flags S/SA keep state
Внутри сети есть squid (не transparent). Как написать правило, которое будет пропускать трафик изнутри сети с порта 3128 и выпускать его наружу? Пробовал
ext_if="rl0"
int_if="bfe0"
tcp_services = "{ ssh, pop3, smtp, domain, www }"
udp_services = "{ domain }"
scrub in all
nat on $ext_if from $int_if:network to any -> ($ext_if)
rdr on $int_if proto tcp from any to any port 3128 -> 127.0.0.1
block all
block drop in quick log on $int_if proto tcp from $int_if:network to ! 192.168.0.1 port 80
pass on lo0
pass proto tcp to any port $tcp_services keep state
pass proto udp to any port $udp_services keep state
pass on $ext_if inet proto icmp icmp-type {0, 3, 4, 8, 11, 12}
pass out on $ext_if proto {tcp, udp} all flags S/SA keep state
Не получается...