I have two pfenses (say p1 and p2) in two separate networks. Each has a public IP. There is an internal network on each side (say n1 and n2). I want to connect these two networks through these two pfsenses:
p1:1.2.3.4
n1:10.10.10.0/24
p2:2.3.4.5
n2:172.16.1.0/24
I want to send traffic from n1 to n2. for example I want to send traffic from 10.10.10.30 to 172.16.1.40. I want a solution like linux ip route. in this example traffic should go from 10.10.10.30 to 1.2.3.4 and from 1.2.3.4 to 2.3.4.5 and finally from 2.3.4.5 to 172.16.1.40. there is a access from pf1 to pf2 with a cable on extra NIC (say optx) how can I do that?