Hi,
I have a bit of a luxury problem on my hands. Since last week we got antoher fiber connection to the internet. That's right. We have not one, but two fiber lines
However, this presents me with a problem I didn't anticipate. After activating the connection and testing it, everything wordked fine. So I hooked it up to our FreeBSD router/firewall. Pinging the modem works fine. I'm also able to access the webinterface. Browsing the internet works fine too. And a speedtest gives the expected results. So far so good. So I put in place a port forward, to simply forward all incoming traffic to FreeBSD and let PF handle it from there. Theoretically I should now be able to access FreeBSD from a remote location on the new fiber connection. I SSH-ed out to my server at home and tried to SSH back to our new IP-address. But no luck. I got nothing
I went over the PF-rules to see if somthing was configured wrong. But I couldn't find anything. So I hooked up a laptop directly to the new fiber line (directly means, directly to the modem). I changed the forward rule to the IP of the laptop and tried to SSH from a remote location again. It worked like a charm.
That meant that the problem was with my FreeBSD router/firewall. And I figured the problem was most likely in the PF-rules. So, I went over those again. But stll no luck. Until it dawned on me that all outgoing traffic is send over the old fiber connection, because that is the default gateway. So any incoming connection on the new fiber connection is never going to get an answer from the same IP-address. And that is most likely why it doesn't work.
The contract for the old fiber connection is still going for another two years. So I was hoping to gradually migrate everything to the new fiber connection, one service at a time. And only changing the affected DNS-records, one at a time. But right now, that doesn't seem possible. If I change the default gateway from the old to the new connection, I have to do it all. Probably during the night, or a weeking. Something I was hoping to avoid.
That got me thinking. Is it possible to configure multiple gateways? Can I tell FreeBSD to answer on the line where the packets came from in the first place? What's the best and most elegant way to handle this?
Kind regards,
Marinus ten Napel
I have a bit of a luxury problem on my hands. Since last week we got antoher fiber connection to the internet. That's right. We have not one, but two fiber lines
However, this presents me with a problem I didn't anticipate. After activating the connection and testing it, everything wordked fine. So I hooked it up to our FreeBSD router/firewall. Pinging the modem works fine. I'm also able to access the webinterface. Browsing the internet works fine too. And a speedtest gives the expected results. So far so good. So I put in place a port forward, to simply forward all incoming traffic to FreeBSD and let PF handle it from there. Theoretically I should now be able to access FreeBSD from a remote location on the new fiber connection. I SSH-ed out to my server at home and tried to SSH back to our new IP-address. But no luck. I got nothing
I went over the PF-rules to see if somthing was configured wrong. But I couldn't find anything. So I hooked up a laptop directly to the new fiber line (directly means, directly to the modem). I changed the forward rule to the IP of the laptop and tried to SSH from a remote location again. It worked like a charm.
That meant that the problem was with my FreeBSD router/firewall. And I figured the problem was most likely in the PF-rules. So, I went over those again. But stll no luck. Until it dawned on me that all outgoing traffic is send over the old fiber connection, because that is the default gateway. So any incoming connection on the new fiber connection is never going to get an answer from the same IP-address. And that is most likely why it doesn't work.
The contract for the old fiber connection is still going for another two years. So I was hoping to gradually migrate everything to the new fiber connection, one service at a time. And only changing the affected DNS-records, one at a time. But right now, that doesn't seem possible. If I change the default gateway from the old to the new connection, I have to do it all. Probably during the night, or a weeking. Something I was hoping to avoid.
That got me thinking. Is it possible to configure multiple gateways? Can I tell FreeBSD to answer on the line where the packets came from in the first place? What's the best and most elegant way to handle this?
Kind regards,
Marinus ten Napel