View Single Post
  #4   (View Single Post)  
Old 27th February 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Quote:
Originally Posted by petter View Post
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.10 80
none of them worked cant visit my web server from local net any suggestions? thanks
The proxy is redirecting to 192.168.1.10 while in your case the webserver is at 192.168.1.12

Also make sure you restarted inetd. Does $ netstat -an -f inet confirm that the proxy is listening on port 5000?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote