ipfilter - port forward question

Mike Maltese mike at pcmedx.com
Thu Aug 7 14:13:39 PDT 2003


> map ep0 192.168.1.0/24 -> 0/32
> rdr epo 24.225.33.0/32 port 31240 -> 192.168.1.35 port 31240 tcp

Try "rdr ep0 0/0 port 31240 -> 192.168.1.35 port 31240 tcp" in your nat
rules and try something like "pass in quick on ed0 all keep state/pass out
quick on ed0 all keep state" in your ipf rules. There's really no need to
open up the whole machine like this though. Why not "pass in quick on ed0
proto tcp from any to any port  = 31240 flags S keep state"? One last thing
that I just thought of...are you sure the game uses TCP? Most games use UDP
because of the lower overhead.



More information about the freebsd-questions mailing list