I am trying to replicate this iptables rule after moving from a tomato based router to pfSense router.
This basically duplicates or "tees up" sends SIP invite packets to a specific host. I know the string matching might be harder to do (should still be possible using an L7 pattern, will get there in a bit)
for the moment I will edit the rules.debug and reload the filter to test out the rule. If I can duplicate all the packets I am okay, I will ignore the non INVITE packets at the client.
So far I have got this.
But I think I am lacking an understanding of how to do this on *bsd because I don't seem to understand what "in" and "out" mean on an interface, from what perspective is it in or out.. help
I have tried both the pfSense forums and lists with no success.. help me freebsd forum you my only hope..
Code:
iptables -t mangle -A POSTROUTING -p udp -d 192.168.1.0/23 -m string --string "INVITE sip:" --algo kmp -j ROUTE --tee --gw 192.168.1.2
This basically duplicates or "tees up" sends SIP invite packets to a specific host. I know the string matching might be harder to do (should still be possible using an L7 pattern, will get there in a bit)
for the moment I will edit the rules.debug and reload the filter to test out the rule. If I can duplicate all the packets I am okay, I will ignore the non INVITE packets at the client.
So far I have got this.
Code:
pass in log on pppoe0 dup-to 192.168.100.252 inet proto udp from 54.225.88.244 port 5060
But I think I am lacking an understanding of how to do this on *bsd because I don't seem to understand what "in" and "out" mean on an interface, from what perspective is it in or out.. help
I have tried both the pfSense forums and lists with no success.. help me freebsd forum you my only hope..