i have a question for routing traffic with two eth.
eth3 is the public ip where my pbx is reachable over the internet. eth4 is in a separate network where my clients over ipsec should connect to the server. reason for that: only the ip from the SIP trunk server shall communicate with my pbx (via firewall)
now with that config I can reach the internet and also all other networks which are connected over IPSEC…problem: my pbx is not reachable over the internet anymore because the routing is wrong 0.0.0.0 10.253.0.254
I tried some things but I got confused and nothing works really the way I would like to have it. Is this a thing I have to put on freepbx with routes or something I have to put on my firewall (sophos?)
I really would appreciate any help from anyone here - thank you very much in advance, best regards, hubert
In general, when you have multiple paths to the internet from your PBX, you need to establish routes to force some IPs through one NIC, and some other through the other.
In your case, generally speaking, I think you have to force your PBX to use eth3 when communicating with the IP of your provider.
Probably when you configured IPSEC, the configuration forced all traffic through IPSEC interface and that is why you are seeing this behaviour.
I have two interfaces on my PBX, eth0 which is used to communicate with my VoIP provider and eth1 connected to my LAN and used by the office phones to register to the PBX. Since that internal LAN also has access to Internet, I have forced the PBX to use eth0 to communicate with the IP of my provider.