Setup a Firewall Mangle rule to mark connection and mark packet for ‘any port’ 1194. Make a call, no traffic shows. Tried adding src address and then dest address, still no traffic shows.
Tried again and used Packet Sniffer and there of course the traffic shows.
What interfaces are involved in the traffic flow? If it doesn’t leave a bridge or switch group I think you need to ensure it gets to the firewall, i.e. fix that in the bridge settings.
Adding a trailing mangle LOG target rule might be useful too - packets should show there.
Hi,
What I did now to retest was the following. On one SIP phone here, changed it to stop using VPN and just use normal insecure communications.
Even using the VoIP mangle rule doesn’t catch it. The reason seems to be RTP (the actual voice) because 5060 is NOT where voice goes, 5060 is for registration/authentication.
Since we use ports 10251-15000 for RTP I made the following Firewall/Mangle rules:
Hi,
I think you are wrong. I write this because of the following from the /log
oct/14 23:34:56 firewall,info vpn prerouting: in:ether2 out:(none), src-mac 00:15:65:33:ba:d0, proto UDP, 192
.168.10.11:1024->xxx.xxx.xxx.xxx:1194, NAT (192.168.10.11:1024->99.238.86.174:1024)->xxx.xxx.xxx.xxx:1194, len 409
oct/14 23:34:57 firewall,info prerouting: in:ether1-gateway out:(none), src-mac 00:14:f1:eb:ec:d9, proto UDP,
xxx.xxx.xxx.xxx:5060->99.238.86.174:1025, NAT xxx.xxx.xxx.xxx:5060->(99.238.86.174:1025->192.168.10.8:5062), len 5
85
What I do find strange is it picks up on the 192.168.10 subnet, but in the phone the setup for the SIP server is 10.8.0.1. I must presume that the ovpn setup file that is in the phone has a lot to do with this.
I think your problem is the passthrough=no on the prerouting chain. Put the second part (to mark the packets) in the postrouting chain. You could also change the passthrough to be yes.
I’d also remove the port= part as its not required.