Hi everyone, I have a working existing setup, which I would like to get your feedback on, in terms of security and "best-practice".
In my home network, I am running a FritzBox (German router) in IP-Client mode behind my opnsense in VLAN30.
This way, the FB becomes just a regular network device, with the function of being the SIP gateway of my network.
In order for ringing and voice communication to commence, I had (found by trial and error and a lot of snippets here and there) to create two NAT outbound rules:
A second rule is in place for IPv6.
So far, this setup is working, but I do not understand it very well.
In particular, my questions are:
In my home network, I am running a FritzBox (German router) in IP-Client mode behind my opnsense in VLAN30.
This way, the FB becomes just a regular network device, with the function of being the SIP gateway of my network.
Code Select
[ opnsense ]====VLAN Trunk:30====[ managed L2 switch ]----UNTAGGED:30----[ SIP client ]
10.0.30.1/24 10.0.30.2/32 (dhcp, static)
In order for ringing and voice communication to commence, I had (found by trial and error and a lot of snippets here and there) to create two NAT outbound rules:
Code Select
Interface: VLAN30
TCP/IP Version: IPv4
Source address: Server_VOIP (alias for 10.0.30.2)
Source port: any
Destination address: any
Destination port: any
Translation/target: Interface address
Static Port: yes
A second rule is in place for IPv6.
So far, this setup is working, but I do not understand it very well.
In particular, my questions are:
- Is NAT Outbound the right thing to do here?
I'm asking, because in other places, I do NAT outbound when routing between different VLANs and their subnets, because some stupid service requires the clients to live in the same /24 network, and I require the clients live in a different network from the service. So why (if at all) is it necessary that my SIP provider perceives all the connections coming from one common client with the interface address? - I feel this is not the ideal solution, and instead, port forwarding should be used. Is my feeling correct? And if so, why?
"