mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-02-28 09:59:34 +08:00
Updated udp2raw openvpn config guide (markdown)
parent
edb65a3097
commit
75a8d1255c
@ -93,8 +93,23 @@ rcvbuf 2000000 ##### important
|
|||||||
txqueuelen 4000 ##### suggested
|
txqueuelen 4000 ##### suggested
|
||||||
```
|
```
|
||||||
|
|
||||||
# to redirect all traffic through udp2raw+openvpn
|
# Addtional steps to transparently redirect traffic
|
||||||
|
|
||||||
check this article, its essentially same:
|
#### at server side
|
||||||
|
run:
|
||||||
|
```
|
||||||
|
#enable ip forward:
|
||||||
|
echo 1 >/proc/sys/net/ipv4/ip_forward
|
||||||
|
|
||||||
https://github.com/wangyu-/UDPspeeder/wiki/UDPspeeder-openvpn-config-guide
|
#setup SNAT rule:
|
||||||
|
iptables -t nat -A POSTROUTING -s 10.222.0.0/16 ! -d 10.222.0.0/16 -j MASQUERADE
|
||||||
|
```
|
||||||
|
|
||||||
|
#### at client side
|
||||||
|
|
||||||
|
add following line to the end of you OpenVPN config:
|
||||||
|
|
||||||
|
```
|
||||||
|
redirect-gateway def1
|
||||||
|
route 44.55.66.77 255.255.255.255 net_gateway # change 44.55.66.77 to your server ip
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user