Hi all

This is my first post to the list. I should preface that I have searched
the dup-to topic on the forums and haven't found any good explanations as
to how to do it in pfSense.

I used to run a tomato based router at home. it reached its limits as my
link speed exceed it, instead of getting a faster tomato based router I
have decided to try out pfSense. I have APU1D4 box that does the job.

I have some iptables rules that I am at a bit of a loss to convert over to
pf dup-to. I need to copy SIP INVITE packets are routed to my SIP adapter
are copied  to another computer where I extract that information and keep a
log and notify various systems.

iptables -t mangle -A POSTROUTING -p udp -d 192.168.100.0/23  -m string
--string "INVITE sip:" --algo kmp -j ROUTE --tee --gw 192.168.100.2

Or a worst case where I duplicate all packets, and drop what doesn't match
at the .2 server.

# Brute force
# iptables -t mangle -A POSTROUTING -d 192.168.100.9 -p udp -j ROUTE --tee
--gw 192.168.100.2
# iptables -t mangle -A POSTROUTING -d 192.168.100.249 -p udp -j ROUTE
--tee --gw 192.168.100.2

How can I get this done w/ pf. I have been using pf for 2 days now so am a
complete noob w/ it.

thanks
vajonam
_______________________________________________
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold

Reply via email to