Настраивал PF
ext_if="tun0"
int_if="em0"
int_net="10.10.10.1/24"scrub in all
rdr pass on $ext_if proto tcp from any to any port 6112 -> 10.10.10.10 port 6112
nat on $ext_if from $int_net to any -> ($ext_if)
block all
pass from { lo, $int_net } to any keep state
и так
ext_if="tun0"
int_if="em0"
int_net="10.10.10.1/24"scrub in all
nat on $ext_if from $int_net to any -> ($ext_if)
rdr pass on $ext_if proto tcp from any to any port 6112 -> 10.10.10.10 port 6112
block all
pass from { lo, $int_net } to any keep state
НЕ работает редирект
>Настраивал PF
>ext_if="tun0"
>int_if="em0"
>int_net="10.10.10.1/24"
>
>scrub in all
>
>rdr pass on $ext_if proto tcp from any to any port 6112 -> 10.10.10.10 port 6112
>
>nat on $ext_if from $int_net to any -> ($ext_if)
>
>block all
>
>pass from { lo, $int_net } to any keep state
>
>и так
>
>ext_if="tun0"
>int_if="em0"
>int_net="10.10.10.1/24"
>
>scrub in all
>
>nat on $ext_if from $int_net to any -> ($ext_if)
>
>rdr pass on $ext_if proto tcp from any to any port 6112 -> 10.10.10.10 port 6112
>
>block all
>
>pass from { lo, $int_net } to any keep state
>НЕ работает редирект# ============================================
# Section NAT, RDR
# ============================================rdr inet proto tcp from <pptp> to any port { 80, 8080, 8180 } -> 127.0.0.1 port 3128
nat inet from <pptp> to any -> 192.168.0.2Вывод pfctl -ss:
self tcp 127.0.0.1:3128 <- 192.168.0.1:80 <- 192.168.3.1:3288 ESTABLISHED:ESTABLISHED