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

do not add default gateway

Scheduled Pinned Locked Moved OpenVPN
4 Posts 2 Posters 506 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
    soheil.amiri
    last edited by Jul 31, 2022, 6:46 AM

    hi guys
    i set up and running openvpn on pfsense.
    when my linux client machine connecting to VPN server they get default gateway route, but in my configuration i do not enable redirect gateway or not using any unusual route push. but my windows client work fine.
    how should i Tshoot this problem ?

    V 1 Reply Last reply Jul 31, 2022, 8:11 AM Reply Quote 0
    • V
      viragomann @soheil.amiri
      last edited by Jul 31, 2022, 8:11 AM

      @soheil-amiri
      I guess, your using the Network Manager. Yes, there is an issue with setting the default route, even if the server pushes only specific networks.

      You can edit the VPN client settings, on the IPvX tab click Routes, check "ignore automatic pulled routes" and add the needed networks manually. You don't need to state a gateway, only networks and masks.

      S 1 Reply Last reply Jul 31, 2022, 9:25 AM Reply Quote 1
      • S
        soheil.amiri @viragomann
        last edited by Jul 31, 2022, 9:25 AM

        @viragomann
        by enabling " use this connection only for resources on its network" the vpn default route removed from linux client.
        my client use ubuntu 22.04 LTS
        Screenshot 2022-07-31 135222.png

        V 1 Reply Last reply Jul 31, 2022, 11:19 AM Reply Quote 0
        • V
          viragomann @soheil.amiri
          last edited by Jul 31, 2022, 11:19 AM

          @soheil-amiri
          This looks somewhat different than my NM on OpenSUSE Leap 15.3. But glad that you got it working.

          1 Reply Last reply Reply Quote 1
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received