Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to redirect packets that are going to internal network to localhost of firewall.

I wrote this rule but it doesn't work.

int_net = "{}"
ext_if = "{igb0}"
int_if = "{igb1}"

rdr on $ext_if proto tcp from any to $int_net port www -> port 9999

When I wrote on browser, It should get a test page from firewall. But as far as I couldn't do that.

What am I missing here?

share|improve this question
up vote 1 down vote accepted

I think you also want "pass" here:

rdr pass on $ext_if proto tcp from any to $int_net port www -> port 9999

share|improve this answer
Is there any way to make the mapping work for connections from localhost as well? – weiyin Apr 10 '15 at 18:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.