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

    Redirect IPv4 Gateway - Force all client-generated IPv4 traffic through the tunnel does not work

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 215 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
      sparkman123
      last edited by sparkman123

      When setting up an OpenVPN server, if I enable the Redirect IPv4 Gateway - Force all client-generated IPv4 traffic through the tunnel option, my VPN tunnel does not work. I am unable to ping any hosts on my LAN or browse the internet.

      If I disable this option however, I can browse the internet and ping my hosts.

      As far as traffic hitting my firewall, I cannot see any (looking at the traffic monitoring on my firewall states)

      From my reading other posts here, it has been stated that it might be a NATing issue. Here are my outbound NAT rules:

      a43cfd10-b4ba-4013-b0df-cd1db8b14819-image.png

      192.168.20.0/24 is the network for my VPN.

      I would prefer to enable this option since for most scenarios, I need all my traffic to flow through my VPN.

      Any thoughts?

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @sparkman123
        last edited by

        @sparkman123 said in Redirect IPv4 Gateway - Force all client-generated IPv4 traffic through the tunnel does not work:

        When setting up an OpenVPN server, if I enable the Redirect IPv4 Gateway - Force all client-generated IPv4 traffic through the tunnel option, my VPN tunnel does not work

        That's what I use.

        No mappings needed.

        c4924488-daa2-44ed-a960-ee5bd9b0507c-image.png

        Set up with, for example : OpenVPN Remote Access Configuration Example

        Don't forget to add rules on the OpenVPN interface - or instantiate it and set the rules on that interface.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • S
          sparkman123
          last edited by

          I figured out the problem. Apparently there's something screwy regarding the bridged connections for my VMs (pfSense and OpenVPN clients) where if I try to force all traffic through the OpenVPN connection, it won't work (I am running VmWare Workstation)

          I solved it by switching the external (WAN) and OpenVPN client box to NAT, and it worked just fine.

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