Subject: Re: Problems with NAT
To: Rafael Almeida <almeidaraf@gmail.com>
From: None <yancm@sdf.lonestar.org>
List: netbsd-users
Date: 08/22/2006 22:03:10
> Hello,
>
> I'm having trouble with my nat, maybe someone can help me out.  I'm
> doing a port forwarding in order to be able to play starcraft on
> another machine. The port seems to be forwarding (I started a server
> there on the port I wanted and I was able to connect from another
> machine outside the network). Still, during the game, people couldn't
> see me and it was extremely laggy (although 1x1 matches work fine).
> When I had linux on the box it used to work fine, the configuration
> files for my former linux system is attached. I tried to have the same
> behaviour on the netbsd, so I did this what is in ipf.conf and
> ipnat.conf (also attachements).
>
> I'm not really good with networks and all, but the netbsd
> configuration seems good to me. I don't know what could be wrong.
>
> Best regards,
> Rafael C. Almeida
>
I think your order may be improper.
****Your Current ipf.conf****
# starcraft goes to windows
rdr pppoe0 0.0.0.0/0 port 6112 -> 192.168.0.3 port 6112

# MSS-clamping
map pppoe0 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp 44000:49999
mssclamp 1440
map pppoe0 192.168.0.0/24 -> 0.0.0.0/32 mssclamp 1440

# FTP proxy
map pppoe0 192.168.0.0/24 -> 0.0.0.0/32 proxy port ftp ftp/tcp

# default configuration
map pppoe0 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp 40000:60000
map pppoe0 192.168.0.0/24 -> 0.0.0.0/32
****
****Try this***
# FTP proxy
map pppoe0 192.168.0.0/24 -> 0.0.0.0/32 proxy port ftp ftp/tcp
# MSS-clamping
map pppoe0 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp 44000:49999
mssclamp 1440
map pppoe0 192.168.0.0/24 -> 0.0.0.0/32 mssclamp 1440
# starcraft goes to windows
rdr pppoe0 0.0.0.0/0 port 6112 -> 192.168.0.3 port 6112
*******

If this does not work, I'd suspect the 0.0.0.0/32 and the 0.0.0.0/0
designators. I have a mostly static IP so I have my IP
hardwired as 1.2.3.4/32 in stead of the 0.0.0.0/x
entries, otherwise I do some quite similar stuff.

Check this link for more details perhaps...
http://coombs.anu.edu.au/~avalon/

Thanks,
gene