Trouble with rdr in pf.conf

Submitted by Anonymous
on November 5, 2004 - 9:57am

Hello, I can't get my redirection working:

ext_if="dc0"
int_if="fxp0"
all_if = "{" $ext_if $int_if "}"
lan_net = "172.17.5.0/24"
ext_addr = "66.88.132.39"
#scrub
#nat on $ext_if from $int_if:network to any -> ($ext_if)
rdr pass on $ext_if proto tcp from any to any port 81 -> 172.17.5.253
pass all

When I try to telnet from the LAN to the bsd box port 81, it refuses.

When I try to telnet from the bsd box to 172.17.5.253 port 81, it works great.

When I run nc -l 81 on the bsd box and telnet to the bsd box from the outside, it works great.

Why won't the redirect work?

When I try to telnet from the

Anonymous
on
November 6, 2004 - 1:36am

When I try to telnet from the LAN to the bsd box port 81, it refuses.

Are you trying to telnet from the LAN to the BSD box's external IP either indirectly through DNS, or directly?

Short version: You need either split-horizon DNS or you need to install a TCP proxy on the BSD box.

Long version: See the FAQ.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.