metaoin 0 Posted ... Hello,i tried to set up the vpn connection as non default route in ubuntu but the vpn doen't work after that.My config: client dev tun proto udp remote 213.152.161.148 443 resolv-retry infinite nobind persist-key persist-tun remote-cert-tls server cipher AES-256-CBC comp-lzo no route-delay 5 verb 3 explicit-exit-notify 5 route-nopull openvpn output: Sun Jun 28 01:07:18 2015 OpenVPN 2.3.6 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jan 12 2015 Sun Jun 28 01:07:18 2015 library versions: OpenSSL 1.0.1k 8 Jan 2015, LZO 2.08 Sun Jun 28 01:07:18 2015 Control Channel Authentication: tls-auth using INLINE static key file Sun Jun 28 01:07:18 2015 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication Sun Jun 28 01:07:18 2015 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication Sun Jun 28 01:07:18 2015 Socket Buffers: R=[212992->131072] S=[212992->131072] Sun Jun 28 01:07:18 2015 UDPv4 link local: [undef] Sun Jun 28 01:07:18 2015 UDPv4 link remote: [AF_INET]213.152.161.148:443 Sun Jun 28 01:07:18 2015 TLS: Initial packet from [AF_INET]213.152.161.148:443, sid=474de814 5b2128ee Sun Jun 28 01:07:18 2015 VERIFY OK: depth=1, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=airvpn.org CA, emailAddress=info@airvpn.org Sun Jun 28 01:07:18 2015 Validating certificate key usage Sun Jun 28 01:07:18 2015 ++ Certificate has key usage 00a0, expects 00a0 Sun Jun 28 01:07:18 2015 VERIFY KU OK Sun Jun 28 01:07:18 2015 Validating certificate extended key usage Sun Jun 28 01:07:18 2015 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication Sun Jun 28 01:07:18 2015 VERIFY EKU OK Sun Jun 28 01:07:18 2015 VERIFY OK: depth=0, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=server, emailAddress=info@airvpn.org Sun Jun 28 01:07:18 2015 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key Sun Jun 28 01:07:18 2015 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sun Jun 28 01:07:18 2015 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key Sun Jun 28 01:07:18 2015 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sun Jun 28 01:07:18 2015 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA Sun Jun 28 01:07:18 2015 [server] Peer Connection Initiated with [AF_INET]213.152.161.148:443 Sun Jun 28 01:07:20 2015 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1) Sun Jun 28 01:07:20 2015 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.4.0.1,comp-lzo no,route-gateway 10.4.0.1,topology subnet,ping 10,ping-restart 60,ifconfig 10.4.0.100 255.255.0.0' Sun Jun 28 01:07:20 2015 Options error: option 'redirect-gateway' cannot be used in this context ([PUSH-OPTIONS]) Sun Jun 28 01:07:20 2015 Options error: option 'dhcp-option' cannot be used in this context ([PUSH-OPTIONS]) Sun Jun 28 01:07:20 2015 OPTIONS IMPORT: timers and/or timeouts modified Sun Jun 28 01:07:20 2015 OPTIONS IMPORT: LZO parms modified Sun Jun 28 01:07:20 2015 OPTIONS IMPORT: --ifconfig/up options modified Sun Jun 28 01:07:20 2015 OPTIONS IMPORT: route-related options modified Sun Jun 28 01:07:20 2015 TUN/TAP device tun1 opened Sun Jun 28 01:07:20 2015 TUN/TAP TX queue length set to 100 Sun Jun 28 01:07:20 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0 Sun Jun 28 01:07:20 2015 /sbin/ifconfig tun1 10.4.0.100 netmask 255.255.0.0 mtu 1500 broadcast 10.4.255.255 Sun Jun 28 01:07:25 2015 Initialization Sequence Completed tun0 shows up as network interface but when i try to use it i can't get a connection. Quote Share this post Link to post
zhang888 1066 Posted ... tun0 shows up as network interface but when i try to use it i can't get a connection. When you try to use what?Please paste your routing table after the tun0 is up. Quote Hide zhang888's signature Hide all signatures Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees. Share this post Link to post
NaDre 157 Posted ... ... tun0 shows up as network interface but when i try to use it i can't get a connection. See the second half of this post (the Linux part about source address routing): https://airvpn.org/topic/14158-question-run-airvpn-as-non-primary-network-adapter/?p=27398 Quote Share this post Link to post
metaoin 0 Posted ... ... tun0 shows up as network interface but when i try to use it i can't get a connection.See the second half of this post (the Linux part about source address routing): https://airvpn.org/topic/14158-question-run-airvpn-as-non-primary-network-adapter/?hl=+source++address&do=findComment&comment=27398It worked !Thanks for your help. Quote Share this post Link to post