Static Routing on Additional Lan Gateway
-
@johnpoz yes all routers are natting in here. About the IP addresses for now please consider them to be on class C like 190.xx.xx.xx/24.
-
Doesn't actually matter from a technical point of view as long as your not advertising them out.. .But it is so freaking BORKED!!! you can not just pull public space out your ass and use it internally ;)
Well if that downstream router is natting, then you would have to do port forwards if you want say that PC to create an unsolicited connection into the 10.x.x.x network.
-
This post is deleted! -
This post is deleted! -
This post is deleted! -
@johnpoz because that space in not under my control, this is being given to me by organization. I cannot change that. however if we ignore about this space issue.. still this aint working
All i want is if im going to aceess 162.29.149.0/24 then it should be routed through my 10.10.10.150.
I tried to change my gateway and dns on 10.10.10.11 windows computer to 10.10.10.150 from 10.10.10.75 and everything works absolutely fine..
I want to do this automatically from pfsense router. without the need of manually changing gateway and dns every time in each of my computers and loosing connectivity to internet in the process.
-
This post is deleted! -
@johnpoz Though i cant change the actual ip, lets consider it like this for now just to resolve this technical issue
-
you need a static route on the other side like 10.10.10.0/24 with gateway 196.29.149.99 if there isn't already one
-
@kiokoman do you mean i need to create that static route on my pfsense? or mikrotik? I did try to create a additional gateway on lan interface with ip 10.10.10.150. and setup a static route 196.29.149.0/24 pointing to gateway 10.10.10.150. I added the firewall rule for the same as well.
however if i do "route add 196.29.149.0/24 10.10.10.150" on my windows machine in 10.10.10.0/24 subnet then it works without any problem.
-
the yellow line is what it's doing now
the red, what it should beif the gateway for the network is 196.29.149.36 than you have to tell that device to send the traffic back to 196.29.149.99
@Rupesh said in Static Routing on Additional Lan Gateway:
however if i do "route add 196.29.149.0/24 10.10.10.150" on my windows machine in 10.10.10.0/24 subnet then it works without any problem.
of course, you have to define that route inside 196.29.149.36 whatever it is
-
Not going to mater if natted.. Not going to work... For unsolicated traffic from the 196 network towards the 10 network. He would have to do port forwarding. When he is coming from the 10 network to the 196 network - say the printer the traffic would be natted so it looks to be coming from the router 196.29.149.99 address.
And the devices in that 10 network should have host routes going to the 196 network pointing to 10.10.10.150, or he needs to use an actual transit network.
-
@kiokoman That region inst my concern i just want to get access to printer and one windows share pc. The red line is pointing to my organistion gateway. moreover internal ip of my organization gateway 196.29.149.36 is in the same subnet as my mikrotik external IP(196.29.149.99) so shouldn't be any problem. Also if i remove my pfsense and set default gateway and dns to 10.10.10.150, then everything is resolved.
-
@johnpoz now in both the senarios explained in diagrams below everything is working without any problems. I didn't touch mikrotik router at all.
-
So now you have a transit, so not asymmetrical.. your other way with clients just pointing to the mikrotik works too..
You don't need any return routes in the 196 network, since your natting all traffic from your 10 network to the 196.29.149.99 address of your mikrotik router.. So the clients in this network think they are just talking to the ip in their own network.
-
-
@johnpoz can you please point out where should i make changes and what changes to make this work.
-
your way with the transit is all you need.. Setup a gateway to the 196 network on pfsense. And then you would need return on the mikrotik if using transit.
Your device in the 196 don't need any routes, nor your wan enterprise router because you are natting at the mikrotik
-
-
@johnpoz said in Static Routing on Additional Lan Gateway:
your way with the transit is all you need.. Setup a gateway to the 196 network on pfsense. And then you would need return on the mikrotik if using transit.
Your device in the 196 don't need any routes, nor your wan enterprise router because you are natting at the mikrotik
Yes i did add that static route to 196.29.149.0/24 after adding a 10.10.10.150 gateway on lan interface. Post that i made a rule to pass the traffic for 196.29.149.0/24 network through 10.10.10.150 gateway..