Route an outgoing connection request to a specific IP (or interface)
I was using Tailscale in my corporate network and it was working well, until I realized one the portals I need for work is in the same private IP space as the Tailscale network (100.x.x.x). With Tailscale installed, I can't access that portal. Right now Tailscale doesn't have an on/off switch for Linux (perhaps the systemd service could work), but I'm not sure if during the install it messes with iptables or any firewall rules.
So, I'd like to ask for help from people that know how to set up rules on iptables or ufw for me to set up a rule to route a request to that IP from the portal to the corporate network interface of the device.
So here is a bad diagram on how it is right now and how I want it to be:
Corporate portal (100.x.x.x) ---->> Corporate network interface
Corporate portal (100.x.x.x) ---->> Tailscale (100.x.x.x) ---->> Does not resolve
Corporate portal (100.x.x.x) ---->> Firewall (route) ---->> Corporate network interface
Any other 100.x.x.x ---->> Tailscale
As far as I checked, this is the only portal on this private IP space. But If I learn how to make that route and I find out other portals, I can simply do the same route 1 by 1 (I don't mind actually).