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

    OpenVPN for iOS connects, doesn't redirect all traffic

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 3.9k 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
      SpaceBass
      last edited by

      Hey folks - had a fairly easy time getting OpenVPN for iOS working.
      I'm able to pass traffic over the tunnel to hosts on the remote network.

      However, I cannot access the internet. In other words, redirecting all traffic isn't working.

      I tried to access a few websites via IP and they resolve to the correct name (so my DNS is working) but I cannot load them. That's about all the troubleshooting I can do on iOS without a terminal :)

      Server:

      dev ovpns4
      dev-type tun
      dev-node /dev/tun4
      writepid /var/run/openvpn_server4.pid
      #user nobody
      #group nobody
      script-security 3
      daemon
      keepalive 10 60
      ping-timer-rem
      persist-tun
      persist-key
      proto udp
      cipher AES-256-CBC
      up /usr/local/sbin/ovpn-linkup
      down /usr/local/sbin/ovpn-linkdown
      local 10.1.10.10
      tls-server
      server 10.76.1.0 255.255.255.0
      client-config-dir /var/etc/openvpn-csc
      username-as-common-name
      auth-user-pass-verify /var/etc/openvpn/server4.php via-env
      tls-verify /var/etc/openvpn/server4.tls-verify.php
      lport 1199
      management /var/etc/openvpn/server4.sock unix
      push "route 10.1.1.0 255.255.255.0"
      push "dhcp-option DOMAIN nsnet.us"
      push "dhcp-option DNS 10.1.1.15"
      push "dhcp-option NTP 10.1.1.15"
      push "redirect-gateway def1"
      client-to-client
      ca /var/etc/openvpn/server4.ca 
      cert /var/etc/openvpn/server4.cert 
      key /var/etc/openvpn/server4.key 
      dh /etc/dh-parameters.2048
      comp-lzo
      persist-remote-ip
      float
      
      

      Client

      dev tun
      persist-tun
      persist-key
      proto udp
      cipher AES-256-CBC
      tls-client
      client
      resolv-retry infinite
      remote home.nickdawson.net 1199
      redirect-gateway
      auth-user-pass
      comp-lzo
      
      [CA, Certs and Keys are inline in the file]
      
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.