2017-10-19 10:58:07 -07:00
2017-10-19 11:05:05 -07:00
# UDPspeeder + openvpn config guide
2017-10-22 05:26:49 -07:00
![image_vpn ](/images/en/udpspeeder+openvpn3.PNG )
2017-10-19 11:05:05 -07:00
# UDPspeeder command
2017-10-22 22:12:26 -07:00
2017-10-22 22:12:59 -07:00
#### run at server side
2017-10-19 11:05:05 -07:00
```
2017-10-22 22:12:59 -07:00
./speederv2 -s -l0.0.0.0:8855 -r 127.0.0.1:7777 -f20:10
2017-10-19 11:05:05 -07:00
```
2017-10-22 22:12:59 -07:00
#### run at client side
assume server ip is 45.66.77.88
2017-10-22 22:12:26 -07:00
```
2017-10-22 22:12:59 -07:00
./speederv2 -c -l0.0.0.0:3333 -r 45.66.77.88:8855 -f20:10
2017-10-22 22:12:26 -07:00
```
2017-10-19 11:05:05 -07:00
# openvpn config
#### client side config
```
client
dev tun100
proto udp
remote 127.0.0.1 3333
resolv-retry infinite
nobind
persist-key
persist-tun
ca /root/add-on/openvpn/ca.crt
cert /root/add-on/openvpn/client.crt
key /root/add-on/openvpn/client.key
keepalive 3 20
verb 3
mute 20
comp-lzo no
fragment 1200 ##### very important you can turn it up a bit. but,the lower the safer
mssfix 1200 ##### very important
sndbuf 2000000 ##### important
rcvbuf 2000000 ##### important
txqueuelen 4000 ##### suggested
```
#### server side config
```
local 0.0.0.0
port 7777
proto udp
dev tun
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
server 10.222.2.0 255.255.255.0
ifconfig 10.222.2.1 10.222.2.6
client-to-client
duplicate-cn
keepalive 10 60
max-clients 50
persist-key
persist-tun
status /etc/openvpn/openvpn-status.log
verb 3
mute 20
comp-lzo no
fragment 1200 ##### very important you can turn it up a bit. but,the lower the safer
mssfix 1200 ##### very important
sndbuf 2000000 ##### important
rcvbuf 2000000 ##### important
txqueuelen 4000 ##### suggested
```
2017-10-23 04:56:28 -07:00
2017-10-23 04:58:06 -07:00
##### Note:
2017-10-23 05:00:22 -07:00
If you use the `redirect-gateway` option of OpenVPN,you may need to add a route exception for your remote server ip at client side.Otherwise OpenVPN may hijack UDPspeeder 's traffic.
2017-10-23 04:56:28 -07:00
For example,depend on your network environment,the command may looks like:
```
ip route add 44.55.66.77 via 44.55.66.1
```
or
```
ip route add 44.55.66.77 dev XXX
```
2017-10-23 05:00:49 -07:00
(run at client side)