Answer the question
In order to leave comments, you need to log in
Port forwarding with pf on a proxy
Part of /etc/pf.conf
$int_if="192.168.3.1" $proxy="192.168.1.250" rdr on $int_if proto tcp from $int_if:network to !(self) port 80 -> $proxy port 3128
iptables -t nat -A PREROUTING -s 192.168.3.0/24 ! -d 192.168.3.1 -j DNAT --to-destination 192.168.1.250:3128 iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question