View Single Post
  #5   (View Single Post)  
Old 20th June 2019
junk's Avatar
junk junk is offline
Port Guard
 
Join Date: Jun 2018
Posts: 17
Default

I've spent at least six hours trying to make it work before starting this thread. Read the pf user's guide on Traffic Redirection (Port Forwarding), the pf.conf man page, i've taken a look at Peter Hansteen's tutorials, also tried the fwbuilder interface to see the fw compilation results:

Code:
# Rule  0 (NAT)
match in on re0 proto tcp from 192.168.0.3 to 192.168.0.1 port 8080 rdr-to 192.168.1.2 port 80
match out on re0 proto tcp from 192.168.0.3 to 192.168.1.2 port 80 nat-to (re1)
I've got this in the kernel config:

Code:
test# sysctl |grep net.inet.ip
net.inet.ip.forwarding=1
net.inet.ip.redirect=1
I guess it has to be studied more in depth, i wouldn't want to waste your time... I just thought it was something simple to configure.

Last edited by junk; 20th June 2019 at 01:35 PM.
Reply With Quote