Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Static Routing on Additional Lan Gateway

    Scheduled Pinned Locked Moved Routing and Multi WAN
    50 Posts 3 Posters 6.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz

      That is fine still shouldn't be PUBLIC space - pick a network out of the rfc1918 space to use... There is plenty of it!!!

      Using public space internally that is not yours - is borked!! And now what if for some reason there is a website hosted on this public network you want to get to?? ;) Do not use public space internally unless you actually own it!!

      Here is older thread and drawing where show the problem of hosts on transit, ie asymmetrical routing.
      https://forum.netgate.com/post/865509

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      R 1 Reply Last reply Reply Quote 1
      • R
        Rupesh @johnpoz
        last edited by

        @johnpoz got it..I'll do the needful regarding class of addressing, however my issue/question still remains the same.

        I'm able to open the share and even printers webpage is opening without any issues...
        I can copy from windows share to my 10.10.10.0/24 subnet but can't do the other way around...

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          Lets see your drawing you were going to do ;)

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          R 1 Reply Last reply Reply Quote 0
          • R
            Rupesh @johnpoz
            last edited by

            @johnpoz ok removed that 145 network Here is what it looks like now
            Capture.PNG

            R 1 Reply Last reply Reply Quote 0
            • R
              Rupesh @Rupesh
              last edited by

              @Rupesh also this 162.29.149.0/24 network is not under my control. Its my organizational network strictly isolated from internet.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz

                162.29.149 is not RFC1918... WTF dude?

                NetRange:       162.29.0.0 - 162.29.255.255
                CIDR:           162.29.0.0/16
                NetName:        WELLSFARGO-162-29-0-0
                

                Are you wells fargo? Why are you using that space? Is it yours? Use rfc1918 10.x.x.x, 192.168.x.x, 172.16-31.x.x there is plenty of space to use..

                And yeah that is going to a be a asymmetrical nightmare..., Where to the windows machine and the print point to for their gateway? Do they have specific routes on how to get back cto your 10.10.10 network? Is this mikrotik router natting these IPs?

                Its my organizational network strictly isolated from internet.

                So you are wellsfargo? If not your IT org are a bunch of freaking idiots!!

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                R 1 Reply Last reply Reply Quote 0
                • R
                  Rupesh @johnpoz
                  last edited by

                  @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.

                  R 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator
                    last edited by johnpoz

                    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.

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    R 3 Replies Last reply Reply Quote 1
                    • R
                      Rupesh @Rupesh
                      last edited by

                      This post is deleted!
                      R 1 Reply Last reply Reply Quote 0
                      • R
                        Rupesh @Rupesh
                        last edited by

                        This post is deleted!
                        R 1 Reply Last reply Reply Quote 0
                        • R
                          Rupesh @Rupesh
                          last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • R
                            Rupesh @johnpoz
                            last edited by

                            @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.

                            1 Reply Last reply Reply Quote 0
                            • R
                              Rupesh @johnpoz
                              last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • R
                                Rupesh @johnpoz
                                last edited by

                                @johnpoz Though i cant change the actual ip, lets consider it like this for now just to resolve this technical issuecorrected one.PNG

                                1 Reply Last reply Reply Quote 0
                                • kiokomanK
                                  kiokoman LAYER 8
                                  last edited by kiokoman

                                  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

                                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                  Please do not use chat/PM to ask for help
                                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                                  R 1 Reply Last reply Reply Quote 1
                                  • R
                                    Rupesh @kiokoman
                                    last edited by Rupesh

                                    @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.

                                    1 Reply Last reply Reply Quote 0
                                    • kiokomanK
                                      kiokoman LAYER 8
                                      last edited by kiokoman

                                      Immagine.jpg

                                      the yellow line is what it's doing now
                                      the red, what it should be

                                      if 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

                                      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                      Please do not use chat/PM to ask for help
                                      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                                      R 2 Replies Last reply Reply Quote 0
                                      • johnpozJ
                                        johnpoz LAYER 8 Global Moderator
                                        last edited by johnpoz

                                        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.

                                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                                        If you get confused: Listen to the Music Play
                                        Please don't Chat/PM me for help, unless mod related
                                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                                        R 1 Reply Last reply Reply Quote 1
                                        • R
                                          Rupesh @kiokoman
                                          last edited by

                                          @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. corrected oneq.png

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            Rupesh @johnpoz
                                            last edited by Rupesh

                                            @johnpoz now in both the senarios explained in diagrams below everything is working without any problems. I didn't touch mikrotik router at all.case 1.PNG case 2.PNG

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.