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

    Routing Internet traffic to Internet with Wireguard

    Scheduled Pinned Locked Moved WireGuard
    7 Posts 3 Posters 432 Views 2 Watching
    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.
    • D Offline
      droidus
      last edited by

      I am using wireguard, and am routing all traffic through my wireguard server. Here is what the client wireguard config looks like:

      [Interface]
      PrivateKey = pkey
      Address = 192.168.4.6/32

      [Peer]
      PublicKey = pkey
      AllowedIPs = 0.0.0.0/0
      Endpoint = ip:51820

      When I connect to my WG server, this is what I see:
      652bc660-57f3-4dbc-89a8-8ed8ccb83481-image.png

      192.168.4.0 is my WG traffic subnet, and 192.168.1.0 is traffic local on the other side of the WG server. I can hit stuff internally on the other side of my WG server.

      How do I route the Internet traffic appropriately?

      Bob.DigB P 2 Replies Last reply Reply Quote 0
      • Bob.DigB Offline
        Bob.Dig LAYER 8 @droidus
        last edited by

        @droidus What is your problem exactly?

        D 1 Reply Last reply Reply Quote 0
        • P Online
          Popolou @droidus
          last edited by

          @droidus Outbound NAT configured for the WG subnet?

          1 Reply Last reply Reply Quote 0
          • D Offline
            droidus @Bob.Dig
            last edited by

            @Bob-Dig Something like this?:

            2d246580-30b0-4d17-a7f8-3957d7fa1203-image.png

            P 1 Reply Last reply Reply Quote 0
            • P Online
              Popolou @droidus
              last edited by

              @droidus Yup :)

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                droidus @Popolou
                last edited by

                @Popolou It still isn't working.

                P 1 Reply Last reply Reply Quote 0
                • P Online
                  Popolou @droidus
                  last edited by

                  @droidus Need to investigate elsewhere in your config i'm afraid.

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