Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 = "{10.0.0.0/24}"
ext_if = "{igb0}"
int_if = "{igb1}"

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

When I wrote 10.0.0.2 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
add comment

1 Answer

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 -> 127.0.0.1 port 9999

share|improve this answer
add comment

Your Answer

 
discard

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.