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

pfsense traffic always goes through vpn client

Scheduled Pinned Locked Moved General pfSense Questions
5 Posts 2 Posters 562 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.
  • A
    andresmorago
    last edited by andresmorago Feb 11, 2021, 5:59 PM Feb 11, 2021, 5:57 PM

    Hello

    On a fresh install with a DHCP WAN and a openvpn client, all the traffic from the router will go through the vpn and not wan. is there any way to change this behaviour?

    [2.5.0-RC][admin@svr00.xxxx.com]/root: ifconfig
    em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
            description: LAN
            options=81209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER>
            ether xx:xx:xx:xx:xx:xx
            inet6 fe80::223:24ff:fe6f:63d8%em0 prefixlen 64 scopeid 0x1
            inet 10.0.0.100 netmask 0xffffff00 broadcast 10.0.0.255
            media: Ethernet autoselect (1000baseT <full-duplex>)
            status: active
            nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    enc0: flags=0<> metric 0 mtu 1536
            groups: enc
            nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
            options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
            inet6 ::1 prefixlen 128
            inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
            inet 127.0.0.1 netmask 0xff000000
            groups: lo
            nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    pflog0: flags=100<PROMISC> metric 0 mtu 33160
            groups: pflog
    pfsync0: flags=0<> metric 0 mtu 1500
            groups: pfsync
    ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
            description: WAN
            options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
            ether xx:xx:xx:xx:xx:xx
            inet6 fe80::d237:45ff:fecb:6a88%ue0 prefixlen 64 scopeid 0x6
            inet 181.53.xxx.xxx netmask 0xfffffc00 broadcast 181.53.43.255
            media: Ethernet autoselect (1000baseT <full-duplex>)
            status: active
            nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    ovpnc2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
            options=80000<LINKSTATE>
            inet6 fe80::223:24ff:fe6f:63d8%ovpnc2 prefixlen 64 scopeid 0x7
            inet 10.18.0.34 --> 10.18.0.1 netmask 0xffff0000
            groups: tun openvpn
            nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
            Opened by PID 88981
    
    [2.5.0-RC][admin@svr00.xxxx.com]/root: netstat -rn4 | grep default
    default            181.53.40.1        UGS         ue0
    
    [2.5.0-RC][admin@svr00.xxxx.com]/root: traceroute 1.1.1.1
    traceroute to 1.1.1.1 (1.1.1.1), 64 hops max, 40 byte packets
     1  10.18.0.1 (10.18.0.1)  85.238 ms  71.461 ms  127.844 ms
     2  * * *
     3  v121.ce09.wdc-02.us.leaseweb.net (192.96.203.92)  81.085 ms
        v32.ce02.wdc-01.us.leaseweb.net (192.96.203.93)  87.587 ms
        v121.ce09.wdc-02.us.leaseweb.net (192.96.203.92)  81.483 ms
     4  be-9.br02.wdc-02.us.leaseweb.net (173.208.126.38)  80.412 ms
        ae-10.br01.wdc-02.us.leaseweb.net (173.208.126.36)  74.751 ms
        be-10.br02.wdc-02.us.leaseweb.net (173.208.126.40)  75.037 ms
    ^C
    [2.5.0-RC][admin@svr00.xxxx.com]/root:
    
    

    014b7541-d31e-4c1b-8b2f-ffcf89c367b5-image.png

    J 1 Reply Last reply Feb 11, 2021, 6:06 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @andresmorago
      last edited by Feb 11, 2021, 6:06 PM

      Yeah don't pull routes from your vpn service and just policy route the traffic you want to go through the vpn.

      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

      A 1 Reply Last reply Feb 11, 2021, 6:46 PM Reply Quote 0
      • A
        andresmorago @johnpoz
        last edited by andresmorago Feb 11, 2021, 6:47 PM Feb 11, 2021, 6:46 PM

        @johnpoz said in pfsense traffic always goes through vpn client:

        m your vpn service and just policy route the traffic you want to go through the v

        should i add this then?

        no-pull
        
        J 1 Reply Last reply Feb 11, 2021, 6:47 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @andresmorago
          last edited by Feb 11, 2021, 6:47 PM

          Its a check box in the client setup..

          routes.png

          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

          A 1 Reply Last reply Feb 11, 2021, 6:52 PM Reply Quote 2
          • A
            andresmorago @johnpoz
            last edited by Feb 11, 2021, 6:52 PM

            @johnpoz thanks so much!

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