FreeBSD Port-Forwarding With PF?
I new to FreeBSD, wanted to know how to forward ports, im assuming i have to edit pf.conf.
Basicly i wanted to used utorrent and call of duty mod2, but i really just want learn the process.
Thanks in advance ps. The ports needed are 1500,3005,3101,28960,27015 and a random port for utorrent like 121247.
Ive tried the follow...
then typed
(Reloading pf rules.)
I new to FreeBSD, wanted to know how to forward ports, im assuming i have to edit pf.conf.
Basicly i wanted to used utorrent and call of duty mod2, but i really just want learn the process.
Thanks in advance ps. The ports needed are 1500,3005,3101,28960,27015 and a random port for utorrent like 121247.
Ive tried the follow...
then typed
/etc/rc.d/pf reload
(Reloading pf rules.)
Code:
tcp_services="{ 1500,2390,2049,3005,3101,27015,28960 }"
udp_services="{ 1500,2390,2049,3005,3101,27015,28960 }"
icmp_types="echoreq"
comp3="192.168.1.109"
rdr on $ext_if proto tcp from any to any port 1500 -> $comp3
rdr on $ext_if proto tcp from any to any port 2390 -> $comp3
rdr on $ext_if proto tcp from any to any port 2049 -> $comp3
rdr on $ext_if proto tcp from any to any port 3005 -> $comp3
rdr on $ext_if proto tcp from any to any port 3101 -> $comp3
rdr on $ext_if proto tcp from any to any port 27015 -> $comp3
rdr on $ext_if proto tcp from any to any port 28960 -> $comp3
rdr on $ext_if proto udp from any to any port 1500 -> $comp3
rdr on $ext_if proto udp from any to any port 2390 -> $comp3
rdr on $ext_if proto udp from any to any port 2049 -> $comp3
rdr on $ext_if proto udp from any to any port 3005 -> $comp3
rdr on $ext_if proto udp from any to any port 3101 -> $comp3
rdr on $ext_if proto udp from any to any port 27015 -> $comp3
rdr on $ext_if proto udp from any to any port 28960 -> $comp3