|
| 1 | +DAE Config (e.g. /etc/dae/config.dae) |
| 2 | + |
| 3 | +``` |
| 4 | +routing { |
| 5 | +#stop using low efficiency socks5 proxy or else |
| 6 | +#dscp(8) -> game |
| 7 | +
|
| 8 | +#using fw mark for ultra fast gaming experience |
| 9 | +dscp(8) -> direct(mark:0x800) |
| 10 | +} |
| 11 | +
|
| 12 | +``` |
| 13 | + |
| 14 | +OpenWRT Network Config (e.g. /etc/config/network) |
| 15 | + |
| 16 | +Please choose the tunnel MTU carefully (CS2 Require MTU > 1300 due to UDP Ping (1300 bytes)) |
| 17 | + |
| 18 | +``` |
| 19 | +config interface 'wg100' |
| 20 | + option proto 'wireguard' |
| 21 | + option private_key '[Client Private Key]' |
| 22 | + list addresses '10.7.0.2/24' |
| 23 | + list addresses 'fd42:42:42::2/64' |
| 24 | + option mtu '1420' |
| 25 | + |
| 26 | +config wireguard_wg100 |
| 27 | + option public_key '[Server Public Key]' |
| 28 | + option endpoint_host '[Your Server IP]' |
| 29 | + list allowed_ips '0.0.0.0/0' |
| 30 | + list allowed_ips '::/0' |
| 31 | + |
| 32 | +config route |
| 33 | + option interface 'wg100' |
| 34 | + option target '0.0.0.0/0' |
| 35 | + option gateway '10.7.0.1' |
| 36 | + option table '114' |
| 37 | + |
| 38 | +config route6 |
| 39 | + option interface 'wg100' |
| 40 | + option target '::/0' |
| 41 | + option gateway 'fd42:42:42::1' |
| 42 | + option table '114' |
| 43 | + |
| 44 | +config rule |
| 45 | + option lookup '114' |
| 46 | + option mark '0x800/0x800' |
| 47 | + |
| 48 | +config rule6 |
| 49 | + option lookup '114' |
| 50 | + option mark '0x800/0x800' |
| 51 | +``` |
| 52 | + |
| 53 | +OpenWRT Firewall Config (e.g. /etc/config/firewall) |
| 54 | + |
| 55 | +``` |
| 56 | +config nat |
| 57 | + option src 'vpn' |
| 58 | + option src_ip '[Gaming PC IPv4 Address]' |
| 59 | + option target 'SNAT' |
| 60 | + option snat_ip '10.7.0.2' |
| 61 | + option family 'ipv4' |
| 62 | + list proto 'all' |
| 63 | +
|
| 64 | +config nat |
| 65 | + option src 'vpn' |
| 66 | + option src_ip '[Gaming PC IPv6 Address]' |
| 67 | + option target 'SNAT' |
| 68 | + option snat_ip 'fd42:42:42::2' |
| 69 | + option family 'ipv6' |
| 70 | + list proto 'all' |
| 71 | +
|
| 72 | +``` |
0 commit comments