andresmorago
Senior Member
Hello to all
My apologies in advanced since this has been discussed before. Im just trying to understand if im doing wrong with my VPN setup on my routers side.
This is my current setup:
My internet connection is 100/10. My AC3100 router is connected to it with a public ip address provided by my isp.
I have an Amazon EC2 linux VPS running openvpn. IP 10.0.2.1
My AC3100 is connected to this VPN server with open vpn client 1. It gets the IP 10.0.2.2 from vpn server. I have a selective routing thanks to @Xentrk scripts
All devices connected to my ac3100 router can reach http://10.0.2.1/speedtest in which i have a speedtest server running.
My issue is that When i run a speed test from any device connected to the router, i get a maximum of 18/10. even less than that
But running the same speedtest on a device directly connected to the vpn server (for example an iPhone and the openvpn app, gives me a full speed 100/10). This iPhone for example, is connected to ac3100 wifi.
my openvpn server has this conf file
my ac3100 has this config
here is my client1 log on the router
My apologies in advanced since this has been discussed before. Im just trying to understand if im doing wrong with my VPN setup on my routers side.
This is my current setup:
My internet connection is 100/10. My AC3100 router is connected to it with a public ip address provided by my isp.
I have an Amazon EC2 linux VPS running openvpn. IP 10.0.2.1
My AC3100 is connected to this VPN server with open vpn client 1. It gets the IP 10.0.2.2 from vpn server. I have a selective routing thanks to @Xentrk scripts
All devices connected to my ac3100 router can reach http://10.0.2.1/speedtest in which i have a speedtest server running.
My issue is that When i run a speed test from any device connected to the router, i get a maximum of 18/10. even less than that
But running the same speedtest on a device directly connected to the vpn server (for example an iPhone and the openvpn app, gives me a full speed 100/10). This iPhone for example, is connected to ac3100 wifi.
my openvpn server has this conf file
Code:
port 443
proto udp
dev tun
duplicate-cn
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA1
tls-crypt ta.key
ncp-disable
cipher AES-128-GCM
reneg-sec 0
sndbuf 0
rcvbuf 0
push "sndbuf 393216"
push "rcvbuf 393216"
mssfix 1492
txqueuelen 1000
topology subnet
server 10.0.2.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 10.0.2.1"
#push "dhcp-option DNS 8.8.8.8"
push "route 10.0.0.0 255.255.255.0"
push "route 10.0.1.0 255.255.255.0"
keepalive 10 120
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
my ac3100 has this config
Code:
resolv-retry infinite
remote-cert-tls server
fast-io
route 10.0.2.0 255.255.255.0
route 10.0.1.0 255.255.255.0
route 10.0.0.0 255.255.255.0
auth-nocache
mssfix 1492
here is my client1 log on the router
Code:
Dec 19 18:42:28 RT-AC3100-0548 ovpn-client1[2576]: OpenVPN 2.4.7 arm-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jul 31 2019
Dec 19 18:42:28 RT-AC3100-0548 ovpn-client1[2576]: library versions: OpenSSL 1.1.1c 28 May 2019, LZO 2.08
Dec 19 18:42:28 RT-AC3100-0548 ovpn-client1[2583]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Dec 19 18:42:28 RT-AC3100-0548 ovpn-client1[2583]: Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Dec 19 18:42:28 RT-AC3100-0548 ovpn-client1[2583]: Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Dec 19 18:42:28 RT-AC3100-0548 ovpn-client1[2583]: Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Dec 19 18:42:28 RT-AC3100-0548 ovpn-client1[2583]: Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Dec 19 18:42:31 RT-AC3100-0548 adaptive QOS: Delayed Start Canceled
Dec 19 18:42:32 RT-AC3100-0548 adaptive QOS: Applying - Iptable Down Rules
Dec 19 18:42:32 RT-AC3100-0548 adaptive QOS: Applying - Iptable Up Rules (eth0)
Dec 19 18:42:33 RT-AC3100-0548 adaptive QOS: TC Modification Delayed Start (5min)
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: TCP/UDP: Preserving recently used remote address: [AF_INET]xxx.xxx.xxx.xxx:443
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: Socket Buffers: R=[122880->122880] S=[122880->122880]
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: UDP link local: (not bound)
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: UDP link remote: [AF_INET]xxx.xxx.xxx.xxx:443
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: TLS: Initial packet from [AF_INET]xxx.xxx.xxx.xxx:443, sid=6124c995 1fdd16fc
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: VERIFY OK: depth=1, CN=ChangeMe
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: VERIFY KU OK
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: Validating certificate extended key usage
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: VERIFY EKU OK
Dec 19 18:42:39 RT-AC3100-0548 ovpn-client1[2583]: VERIFY OK: depth=0, CN=server
Dec 19 18:42:40 RT-AC3100-0548 ovpn-client1[2583]: Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 2048 bit RSA
Dec 19 18:42:40 RT-AC3100-0548 ovpn-client1[2583]: [server] Peer Connection Initiated with [AF_INET]xxx.xxx.xxx.xxx:443
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: PUSH: Received control message: 'PUSH_REPLY,sndbuf 393216,rcvbuf 393216,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.0.2.1,route 10.0.0.0 255.255.255.0,route 10.0.1.0 255.255.255.0,route-gateway 10.0.2.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.0.2.4 255.255.255.0,peer-id 2'
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: OPTIONS IMPORT: timers and/or timeouts modified
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: Socket Buffers: R=[122880->245760] S=[122880->245760]
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: OPTIONS IMPORT: --ifconfig/up options modified
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: OPTIONS IMPORT: route options modified
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: OPTIONS IMPORT: route-related options modified
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: OPTIONS IMPORT: peer-id set
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: OPTIONS IMPORT: adjusting link_mtu to 1624
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: Outgoing Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: Incoming Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: TUN/TAP device tun11 opened
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: TUN/TAP TX queue length set to 1000
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: /usr/sbin/ip link set dev tun11 up mtu 1500
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: /usr/sbin/ip addr add dev tun11 10.0.2.4/24 broadcast 10.0.2.255
Dec 19 18:42:41 RT-AC3100-0548 ovpn-client1[2583]: updown.sh tun11 1500 1552 10.0.2.4 255.255.255.0 init
Dec 19 18:42:42 RT-AC3100-0548 custom_script: Running /jffs/scripts/openvpn-event (args: tun11 1500 1552 10.0.2.4 255.255.255.0 init)
Dec 19 18:42:42 RT-AC3100-0548 openvpn-event[5498]: Script not defined for event: vpnclient1-up
Dec 19 18:42:44 RT-AC3100-0548 openvpn-routing: Configuring policy rules for client 1
Dec 19 18:42:44 RT-AC3100-0548 custom_script: Running /jffs/scripts/openvpn-event (args: tun11 1500 1552 10.0.2.4 )
Dec 19 18:42:44 RT-AC3100-0548 openvpn-event[6146]: Running /jffs/scripts/x3mRouting/vpnclient1-route-up tun11 1500 1552 10.0.2.4
Dec 19 18:42:44 RT-AC3100-0548 (vpnclient1-route-up): 6158 Starting Script Execution JAJA
Dec 19 18:42:44 RT-AC3100-0548 (load_MANUAL_ipset_iface.sh): 6166 Starting Script Execution
Dec 19 18:42:45 RT-AC3100-0548 (load_MANUAL_ipset_iface.sh): 6166 Selective Routing Rule via VPN Client 1 created TAG fwmark 0x1000/0x1000
Dec 19 18:42:45 RT-AC3100-0548 (load_MANUAL_ipset_iface.sh): 6166 Ending Script Execution
Dec 19 18:42:45 RT-AC3100-0548 (load_ASN_ipset_iface.sh): 6293 Starting Script Execution
Dec 19 18:42:45 RT-AC3100-0548 (load_ASN_ipset_iface.sh): 6293 Selective Routing Rule via VPN Client 1 created for ph1 (TAG fwmark 0x1000/0x1000)
Dec 19 18:42:45 RT-AC3100-0548 (load_ASN_ipset_iface.sh): 6293 Ending Script Execution
Dec 19 18:42:45 RT-AC3100-0548 (load_ASN_ipset_iface.sh): 6418 Starting Script Execution
Dec 19 18:42:45 RT-AC3100-0548 (load_ASN_ipset_iface.sh): 6418 Selective Routing Rule via VPN Client 1 created for ph2 (TAG fwmark 0x1000/0x1000)
Dec 19 18:42:45 RT-AC3100-0548 (load_ASN_ipset_iface.sh): 6418 Ending Script Execution
Dec 19 18:42:45 RT-AC3100-0548 (vpnclient1-route-up): 6158 Ending Script Execution
Dec 19 18:42:45 RT-AC3100-0548 ovpn-client1[2583]: Initialization Sequence Completed
Last edited: