http://groups.yahoo.com/group/ipfilter/message/5643
----------------------------------------------------------------
The following lines in my /etc/ipnat.conf are all I needed to make
Asheron's Call work. Everything else gets handled by a normal tcp/udp
portmap.
map ep0 from 10.0.0.9/32 to 207.46.204.1/24 port = 9000 -> 0/32
map ep0 from 10.0.0.9/32 to 207.46.204.1/24 port = 9001 -> 0/32
map ep0 from 207.46.204.1/24 port = 9000 to 12.225.100.78/32 -> 10.0.0.9/32
map ep0 from 207.46.204.1/24 port = 9001 to 12.225.100.78/32 -> 10.0.0.9/32
Interesting, the above worked for one computer.
But on another computer, it required that I add lines also for ports
9004, 9005, 9008, 9009, 9012, 9013
-------------------------------------------------------------------------
This is what i get from a TCPDUMP of the EXTIF ("port 1277" changes to another port each time the game is run):
10:26:59.467310 cmyserver.mirnd1.nsw.optusnet.com.au > 207.46.204.86: icmp: cmyserver.mirnd1.nsw.optusnet.com.au udp port 1227 unreachable
10:26:59.468356 207.46.204.86.9001 > cmyserver.mirnd1.nsw.optusnet.com.au.1227: udp 484
10:26:59.468383 cmyserver.mirnd1.nsw.optusnet.com.au > 207.46.204.86: icmp: cmyserver.mirnd1.nsw.optusnet.com.au udp port 1227 unreachable
10:26:59.468794 207.46.204.86.9001 > cmyserver.mirnd1.nsw.optusnet.com.au.1227: udp 484
10:26:59.468819 cmyserver.mirnd1.nsw.optusnet.com.au > 207.46.204.86: icmp: cmyserver.mirnd1.nsw.optusnet.com.au udp port 1227 unreachable
10:26:59.469463 207.46.204.86.9001 > cmyserver.mirnd1.nsw.optusnet.com.au.1227: udp 484
10:26:59.469487 cmyserver.mirnd1.nsw.optusnet.com.au > 207.46.204.86: icmp: cmyserver.mirnd1.nsw.optusnet.com.au udp port 1227 unreachable
The INTIF has:
10:27:30.987580 192.168.0.47.9000 > 207.46.204.86.9000: udp 20
10:27:31.194727 207.46.204.86.9000 > 192.168.0.47.9000: udp 250
10:27:31.198996 192.168.0.47.9000 > 207.46.204.86.9000: udp 20
10:27:31.413988 207.46.204.86.9000 > 192.168.0.47.9000: udp 250
10:27:31.422564 192.168.0.47.9000 > 207.46.204.86.9000: udp 20
10:27:31.632082 207.46.204.86.9000 > 192.168.0.47.9000: udp 250
At 03:53 PM 21/10/2003 +1000, you wrote:
> Yeh the port is set at 9000 in the game. I would have to open every port to
> satisfy the problem as the freebsd server picks a random port to send udp
> packets to microsoft. Then map every udp packet sent from microsoft's
> zone.com game server back to that internal pc.
rdr rl1 203.X.Y.0/24 -> 192.168.1.47/32 port 9000 udp
rdr rl1 203.X.Y.0/24 -> 192.168.1.47/32 port 9001 udp
map rl1 192.168.1.47/32 -> 0/32 portmap 9000:9025 udp
<insert the other map rules here>
pass in quick proto udp from 203.X.Y.0/24 to 192.168.1.47/32 port 8999 >< 9026 keep state
Jason.
--------------------------
Jason Oakley +612 82821434
Open and Intel Systems
Systems Administrator
http://www.eds.com
Add a dab of lavender to milk
Leave town with an orange
and pretend you are laughing at it
