1*4d7709ddSKristof Provost# test nat 2*4d7709ddSKristof Provost 3*4d7709ddSKristof ProvostTEST_LIST1 = "{ 192.168.1.5, 192.168.1.6, 192.168.1.7 }" 4*4d7709ddSKristof ProvostTEST_LIST2 = "{ 172.6.1.1, 172.14.1.2/32, 172.16.2.0/24 }" 5*4d7709ddSKristof Provost 6*4d7709ddSKristof Provost#match out on lo0 from 192.168.1.1 to any nat-to 10.0.0.1 7*4d7709ddSKristof Provost#match out on lo0 proto tcp from 192.168.1.2 to any nat-to 10.0.0.2 8*4d7709ddSKristof Provost#match out on lo0 proto udp from 192.168.1.3 to any nat-to 10.0.0.3 9*4d7709ddSKristof Provost#match out on lo0 proto icmp from 192.168.1.4 to any nat-to 10.0.0.4 10*4d7709ddSKristof Provost 11*4d7709ddSKristof Provost#match out on lo0 inet from $TEST_LIST1 to $TEST_LIST2 nat-to lo0 12*4d7709ddSKristof Provost 13*4d7709ddSKristof Provost#match out on lo0 inet from 192.168.0.1/24 to any nat-to (lo0) 14*4d7709ddSKristof Provost 15*4d7709ddSKristof Provost#match out on lo0 from 192.168.1.8 to ! 172.17.0.0/16 nat-to 10.0.0.8 16*4d7709ddSKristof Provost 17*4d7709ddSKristof Provost#match out on ! lo0 proto { udp, tcp } from any to any nat-to 10.0.0.8 static-port 18*4d7709ddSKristof Provost 19*4d7709ddSKristof Provost#match out on { lo0, tun1000000 } from any to any nat-to 10.0.0.8 20