Skip to content

Commit

Permalink
docs: add gaming-oriented routing tutorial (#527)
Browse files Browse the repository at this point in the history
Co-authored-by: Sumire (菫) <151038614+sumire88@users.noreply.github.com>
  • Loading branch information
rustcult and sumire88 authored Jun 16, 2024
1 parent cb61bf9 commit 80a5fc0
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions docs/en/configuration/gaming-oriented-routing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
DAE Config (e.g. /etc/dae/config.dae)

```
routing {
#stop using low efficiency socks5 proxy or else
#dscp(8) -> game
#using fw mark for ultra fast gaming experience
dscp(8) -> direct(mark:0x800)
}
```

OpenWRT Network Config (e.g. /etc/config/network)

Please choose the tunnel MTU carefully (CS2 Require MTU > 1300 due to UDP Ping (1300 bytes))

```
config interface 'wg100'
option proto 'wireguard'
option private_key '[Client Private Key]'
list addresses '10.7.0.2/24'
list addresses 'fd42:42:42::2/64'
option mtu '1420'
config wireguard_wg100
option public_key '[Server Public Key]'
option endpoint_host '[Your Server IP]'
list allowed_ips '0.0.0.0/0'
list allowed_ips '::/0'
config route
option interface 'wg100'
option target '0.0.0.0/0'
option gateway '10.7.0.1'
option table '114'
config route6
option interface 'wg100'
option target '::/0'
option gateway 'fd42:42:42::1'
option table '114'
config rule
option lookup '114'
option mark '0x800/0x800'
config rule6
option lookup '114'
option mark '0x800/0x800'
```

OpenWRT Firewall Config (e.g. /etc/config/firewall)

```
config nat
option src 'vpn'
option src_ip '[Gaming PC IPv4 Address]'
option target 'SNAT'
option snat_ip '10.7.0.2'
option family 'ipv4'
list proto 'all'
config nat
option src 'vpn'
option src_ip '[Gaming PC IPv6 Address]'
option target 'SNAT'
option snat_ip 'fd42:42:42::2'
option family 'ipv6'
list proto 'all'
```

0 comments on commit 80a5fc0

Please sign in to comment.