mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 06:19:31 +08:00
Updated udp2raw openvpn config guide (markdown)
parent
75a8d1255c
commit
c64102e850
@ -93,23 +93,6 @@ rcvbuf 2000000 ##### important
|
||||
txqueuelen 4000 ##### suggested
|
||||
```
|
||||
|
||||
# Addtional steps to transparently redirect traffic
|
||||
|
||||
#### at server side
|
||||
run:
|
||||
```
|
||||
#enable ip forward:
|
||||
echo 1 >/proc/sys/net/ipv4/ip_forward
|
||||
|
||||
#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
|
||||
```
|
||||
# to transparently redirect traffic
|
||||
check:
|
||||
https://github.com/wangyu-/UDPspeeder/wiki/UDPspeeder-openvpn-config-guide
|
Loading…
x
Reference in New Issue
Block a user