| 1 |
######################################################################################################## |
| 2 |
#------------------------------------------------------------------------------------------------------# |
| 3 |
# Address Translation table # |
| 4 |
#---------------------------------------------------------------------------- |
| 5 |
# |
| 6 |
# DO NOT, I REPEAT, DO NOT TOUCH THIS FILE UNLESS YOU RUN THE SERVER ON A |
| 7 |
# COMPUTER INSIDE A LAN AND YOU NEED TO HAVE PLAYERS FROM "OUTSIDE" YOUR LAN |
| 8 |
# |
| 9 |
# This is a list of ip:port addresses that get translated |
| 10 |
# EVERYTHING AFTER A "#" IS IGNORED (ie COMMENTED) |
| 11 |
# |
| 12 |
# The entries are broken into four parts: |
| 13 |
# |
| 14 |
# * the IP address w/port to be translated (what pvpgn wants to send initially) |
| 15 |
# * the output IP address w/port (what pvpgn WILL send after translation) |
| 16 |
# * comma delimited list of networks to be excluded from translation |
| 17 |
# * comma delimited list of networks to be included in translation |
| 18 |
# |
| 19 |
# Each line must contain all four parts or the entire entry will be rejected |
| 20 |
# There are no default ports, make sure input and output include the port number |
| 21 |
# |
| 22 |
# The entries are searched in the order listed in this file |
| 23 |
# Exclude networks are searched before include networks |
| 24 |
# Only the first matching line is used |
| 25 |
# Lines begining with '#' are ignored |
| 26 |
# |
| 27 |
# If no match is found, the input ip will be returned. |
| 28 |
# |
| 29 |
# Network specification can be either NONE, ANY or x.y.z.t/bitlen: |
| 30 |
# - NONE = no neworks (same as 0.0.0.0/32) |
| 31 |
# - ANY = All networks (same as 0.0.0.0/0) |
| 32 |
# x.y.z.t/bitlen : means matching the first bitlen bits from the x.y.z.t value |
| 33 |
# Example: if you have the network 192.168.0.x (where x is from 1 to 255) to |
| 34 |
# match any IP in it you use "192.168.0.0/24" meaning the first 24 bits of |
| 35 |
# 192.168.0.0 HAVE TO match (the first 24 bits means the first 3 digits) |
| 36 |
# |
| 37 |
################################################################################# |
| 38 |
|
| 39 |
################################################################################ |
| 40 |
# w3route server ip translation |
| 41 |
# |
| 42 |
# Here you can translate the IP/port of the w3route IP/port as sent by pvpgn |
| 43 |
# to the WAR3 clients. You need this ONLY if you want to have external W3 |
| 44 |
# players that will play PlayGame/ArrangedTeam games. |
| 45 |
# Set exclude to the range of clients you want to recieve the input address |
| 46 |
# instead of the output address |
| 47 |
# Set include to the range of clients you want to recieve the output address |
| 48 |
# |
| 49 |
# input (ip:port) output (ip:port) exclude (ip/netmask) include (ip/netmask) |
| 50 |
#----------------- ------------------ ---------------------- ---------------------- |
| 51 |
|
| 52 |
# Example, if you left w3route = 0.0.0.0:6200 as it is by default in bnetd.conf |
| 53 |
# AND you have the external IP 1.2.3.4 AND you want to exclude from translation |
| 54 |
# the internal W3 clients (those with IPs 192.168.0.x) AND you port forward |
| 55 |
# port 6200 TCP from your router to the pvpgn server port 6200 then here put: |
| 56 |
|
| 57 |
# 0.0.0.0:6200 1.2.3.4:6200 192.168.0.0/24 ANY |
| 58 |
|
| 59 |
|
| 60 |
############################################################################### |
| 61 |
# Game Translations for clients/games (client data ports) |
| 62 |
# |
| 63 |
# You need this ONLY if you will have internal players that want to play with |
| 64 |
# external ones. |
| 65 |
# |
| 66 |
# This setting is NOT NEEDED for D2 closed realm clients (they connect to d2gs |
| 67 |
# to play games not to eachover). |
| 68 |
# |
| 69 |
# Set input address to the client to be translated |
| 70 |
# Set output address to the address to be sent to the other clients |
| 71 |
# Set exclude to the range of clients you want to recieve the input address |
| 72 |
# instead of the output address |
| 73 |
# Set include to the range of clients you want to recieve the output address |
| 74 |
# |
| 75 |
# input (ip:port) output (ip:port) exclude (ip/netmask) include (ip/netmask) |
| 76 |
#----------------- ------------------ ---------------------- ---------------------- |
| 77 |
|
| 78 |
# Example, if you have an internal client on IP 192.168.1.10 AND you have the |
| 79 |
# external IP 1.2.3.4 AND you want to exclude from translation the internal |
| 80 |
# clients (those with IPs 192.168.1.x and 10.x.y.z) AND you port forward |
| 81 |
# port 6118 TCP AND UDP from your router to the client IP and port 6112 then |
| 82 |
# here put: |
| 83 |
|
| 84 |
#192.168.1.10:6112 1.2.3.4:6118 192.168.1.0/24,10.0.0.0/8 ANY |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
################################################################################ |
| 89 |
# Diablo II Character Server translation (d2cs) |
| 90 |
# |
| 91 |
# You need this ONLY if you run a d2cs (ie ONLY if you will host a Diablo2 |
| 92 |
# closed realm). |
| 93 |
# |
| 94 |
# Set input address to the ip of d2cs (same as the ip in the realm.conf) |
| 95 |
# Set output address to the address to be sent to the clients |
| 96 |
# Set exclude to the range of clients you want to recieve the input address |
| 97 |
# instead of the output address |
| 98 |
# Set include to the range of client you want to recieve the output address |
| 99 |
# |
| 100 |
# input (ip:port) output (ip:port) exclude (ip/netmask) include (ip/netmask) |
| 101 |
#----------------- ------------------ ---------------------- ---------------------- |
| 102 |
|
| 103 |
# Example, if you run a d2cs on IP 192.168.1.10 port 6113 and you have put the |
| 104 |
# same IP/port in realm.conf AND you have the external IP 1.2.3.4 AND you want |
| 105 |
# to exclude from translation the internal clients (those with IPs 192.168.1.x) |
| 106 |
# AND you port forward port 6113 TCP from your router to the machine running |
| 107 |
# d2cs and port 6113 then here put: |
| 108 |
|
| 109 |
#192.168.1.10:6113 1.2.3.4:6113 192.168.1.0/24 ANY |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
################################################################################ |
| 114 |
# Diablo II Game Server Translation (d2gs) |
| 115 |
# |
| 116 |
# Set input address to the ip of d2gs (same as the gameservlist in d2cs.conf) |
| 117 |
# Set output address to the address to be sent to the clients |
| 118 |
# Set exclude to the range of clients you want to recieve the input address |
| 119 |
# instead of the output address |
| 120 |
# Set include to the range of client you want to recieve the output address |
| 121 |
# |
| 122 |
# input (ip:port) output (ip:port) exclude (ip/netmask) include (ip/netmask) |
| 123 |
#----------------- ------------------ ---------------------- ---------------------- |
| 124 |
|
| 125 |
# Example, if you run a d2gs on IP 192.168.1.100 (and port 4000, d2gs cannot |
| 126 |
# listen on other port, it will automatically listen on port 4000) and you have |
| 127 |
# put the same IP in d2cs.conf and d2dbs.conf gameservlist setting AND you have |
| 128 |
# the external IP 1.2.3.4 AND you dont want to exclude from translation anyone |
| 129 |
# AND you port forward port 4000 TCP from your router to the machine running |
| 130 |
# d2gs and port 4000 then here put: |
| 131 |
|
| 132 |
#192.168.1.100:4000 1.2.3.4:4000 NONE ANY |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
################################################################################ |
| 137 |
# Westwood Online Game Server Translation (wwol) |
| 138 |
# |
| 139 |
# |
| 140 |
# input (ip:port) output (ip:port) exclude (ip/netmask) include (ip/netmask) |
| 141 |
#----------------- ------------------ ---------------------- ---------------------- |
| 142 |
|
| 143 |
#192.168.1.10:4005 1.2.3.4:4005 192.168.1.0/24 ANY |