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

    Gre tunnel to protect IP.

    Scheduled Pinned Locked Moved General pfSense Questions
    63 Posts 2 Posters 10.5k 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.
    • S
      s_serra @stephenw10
      last edited by

      Hi @stephenw10 ,

      I will probably buy a /28 since my clients have increased and I am using about 10 ips. Could you give me some tips on how to do "fully routed solution " as mentioned above. I would be grateful.

      Thanks

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You need to have a routed subnet. So that means the provider at the remote side needs to route the /28 to you via the WAN IP which must be in a different subnet.
        Then you can route traffic to/from that subnet however you wish. Including routing it across the GRE tunnel and using it directly on clients at the local end.

        Steve

        S 1 Reply Last reply Reply Quote 0
        • S
          s_serra @stephenw10
          last edited by

          I've been having a problem which is high CPU utilization on the remote host. The system only has 1 vCPU 3.40Ghz but I think I must have something wrong. I had to check and in the traffic graph option the wan interface of the pfsense remote is using a lot of bandwidth and in the dashboard it doesn't happen.
          I send the prints below so you can better understand the problem.

          Thanks

          Screenshot 2022-08-29 215643.png Screenshot 2022-08-29 215353.png Screenshot 2022-08-29 215305.png

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Hmm, curious. Those graphs should show the same data.

            What are the IPs shown as generating the traffic there? .145 and .160?

            Check the state tables. What are the states being created by that?

            Steve

            S 1 Reply Last reply Reply Quote 0
            • S
              s_serra @stephenw10
              last edited by s_serra

              The ip .145 is the remote pfsense ip used only to access the pfsense graphical interface and to establish the gre tunnel with the local pfsense. The other ip's are from virtual machines that probably run game servers.

              Thanks

              States: https://pastebin.com/JzsHJezE

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Hmm, all of those states are to/from one host at .160.
                No traffic is show from .145 at all.
                There is no GRE state on WAN and that should always be there.
                Was the table filtered when you took that data?

                What is the WAN bandwidth at the local end? Or the bandwidth on GRE?

                Steve

                S 1 Reply Last reply Reply Quote 0
                • S
                  s_serra @stephenw10
                  last edited by

                  On the proxmox server the traffic seems to be clean and it's the only machine I have connected to the local pfsense so the problem I think must be in the pfsense. It looks like it's tripling the bandwidth coming out of the server inside the gre tunnel.

                  Screenshot 2022-08-29 232916.png

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Mmm, but you're seeing ~25Mbps there. Check the history in Status > Monitoring for the GRE interface at each end. That should be showing the same thing.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      s_serra @stephenw10
                      last edited by

                      Remote pfsense
                      Screenshot 2022-08-30 000403.png

                      Local pfsense
                      Screenshot 2022-08-30 000434.png

                      I didn't quite understand what you meant. In status -> monitor I only have this. Thanks

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Sorry I mean hit the 'wrench' icon and update the graphs for traffic on the GRE interface. Like:

                        Screenshot from 2022-08-30 00-22-18.png

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          s_serra @stephenw10
                          last edited by

                          It's a little different on one site it's using 6 mb/s on another 60 mb/s.

                          Screenshot 2022-08-30 002940.png

                          Thanks

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            Hmm, I assume the 6Mbps side is local, where the servers are?

                            There is almost no outbound traffic there which seems odd. I would expect games servers to send more than they receive.

                            The traffic across the tunnel should show as reversed also. I could believe that's shown in the outbound at the remote side. Hard to say because the graph is swamped by the inbound. You can disable that by clicking the dot there.

                            I wonder if you just have a lot of inbound GRE traffic that's being incorrectly passed?

                            Check the state table for all GRE states at the remote site. If there is any GRE traffic from anywhere but your own local site then make sure the WAN firewall rules are not passing that.

                            Steve

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              s_serra @stephenw10
                              last edited by

                              Yes, the 6 mbps is the local side where the server is.

                              Local Side
                              Screenshot 2022-08-30 005636.png

                              Remote Side
                              Screenshot 2022-08-30 005539.png

                              @stephenw10 said in Gre tunnel to protect IP.:

                              I wonder if you just have a lot of inbound GRE traffic that's being incorrectly passed?

                              Yeah probably, I'm not very expert yet.

                              GRE States on remote side: https://pastebin.com/2ZyHg09V

                              Thanks

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                There are no GRE states shows there, only TCP/UDP states on the GRE interface.

                                You need to look for gre states on WAN like:
                                Screenshot from 2022-08-30 14-44-39.png

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  s_serra @stephenw10
                                  last edited by

                                  @stephenw10

                                  Screenshot 2022-08-30 145117.png

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    Mmm, that looks OK then. The end end show similar states? Data ratios the same?

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      s_serra @stephenw10
                                      last edited by

                                      @stephenw10

                                      I guess so

                                      5ab35fe0-838b-4e88-93cd-cd65b6741b29-image.png

                                      Thanks

                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        Ok that looks good.

                                        Are you still seeing the extra traffic on the remote WAN? It could be there is simply no traffic right now.

                                        Make sure the rules allowing GRE on WAN there only allow it from the local site.

                                        Steve

                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          s_serra @stephenw10
                                          last edited by

                                          @stephenw10

                                          On the local site I have the following rules.

                                          Screenshot 2022-08-30 150633.png Screenshot 2022-08-30 150623.png

                                          1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            Ok, so in that case the local site always has to establish the tunnel since it is not allowing gre in at all. That's fine.
                                            What rules do you have at the remote site?

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