View Single Post
  #3   (View Single Post)  
Old 27th February 2013
petter petter is offline
Port Guard
 
Join Date: Feb 2013
Posts: 12
Default rdr-to nat did not work

i tried first this one:
Code:
pass in on $int_if proto tcp from $int_net to $ext_if port { http, https } flags S/SA \
   rdr-to $wwwserver
pass out on $int_if proto tcp to $wwwserver port { http, https } flags S/SA \
   received-on $int_if nat-to $int_if
and so this one:
pf.conf
Code:
pass in on $int_if proto tcp from $int_net to $ext_if port 80 \
   rdr-to 127.0.0.1 port 5000
inetd.conf:
Code:
127.0.0.1:5000 stream tcp nowait proxy /usr/bin/nc nc -w \
   20 192.168.1.12 80
none of them worked cant visit my web server from local net any suggestions? thanks

Last edited by petter; 27th February 2013 at 11:54 PM.
Reply With Quote