Hey all. I'm using FreeBSD 7.1-RELEASE-p8 on a PC under the desk as a combination Apache webserver, plus using ipf / ipnat as a router for my two-machine LAN. The webserver hosts a "fan site" running some continuous PHP scripts that poke the online game dragcave.net, and in addition the two desktop users may be playing the game - in effect, three machines (router + desktop + desktop) trying to access dragcave.net at once.
What seems to be happening is that one or two machines sometimes get a "monopoly" on connections. When this happens, the favored machine gets quick access to dragcave.net. The other users get hit with very slow HTTP connections (just about 10 seconds exactly) - each time they try to do an access. Effectively this stops us down to one user at a time, or the webserver, but not all three. Highly frustrating. (Interestingly, it seems to be affected by the OS used on each desktop... my Linux box always gets stuck with slow connects, the Windows one almost never, and the Mac was intermittent until recently when it got much worse.)
I don't believe this is a connection limit imposed by dragcave.net, as other users report successfully hosting up to six players at once from a single IP, each reloading frantically or doing things which hammered the server, and nobody experienced problems. I would like to try to pin this down if it is happening at my end, and I think the FreeBSD router is highly suspect.
Here is my complete ipnat.rules. I have a couple of specific forwarded ports but I don't think that will affect anything. I don't know where else to look to troubleshoot this... any advice would be appreciated.
What seems to be happening is that one or two machines sometimes get a "monopoly" on connections. When this happens, the favored machine gets quick access to dragcave.net. The other users get hit with very slow HTTP connections (just about 10 seconds exactly) - each time they try to do an access. Effectively this stops us down to one user at a time, or the webserver, but not all three. Highly frustrating. (Interestingly, it seems to be affected by the OS used on each desktop... my Linux box always gets stuck with slow connects, the Windows one almost never, and the Mac was intermittent until recently when it got much worse.)
I don't believe this is a connection limit imposed by dragcave.net, as other users report successfully hosting up to six players at once from a single IP, each reloading frantically or doing things which hammered the server, and nobody experienced problems. I would like to try to pin this down if it is happening at my end, and I think the FreeBSD router is highly suspect.
Here is my complete ipnat.rules. I have a couple of specific forwarded ports but I don't think that will affect anything. I don't know where else to look to troubleshoot this... any advice would be appreciated.
Code:
# cat /etc/ipnat.rules
map sis0 192.168.1.0/24 -> 0/32 portmap tcp/udp auto
map sis0 192.168.1.0/24 -> 0/32
rdr sis0 0/0 port 51413 -> 192.168.1.253 port 51413 tcp/udp
rdr sis0 0/0 port 41203 -> 192.168.1.252 port 41203 tcp/udp
rdr sis0 0/0 port 41203 -> 192.168.1.252 port 23399 tcp/udp