View Single Post
  #4   (View Single Post)  
Old 10th June 2009
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default

I've got it working but I have to run this command everytime my firewall restarts:

# natd -interface tun0 -redirect_port tcp 192.168.1.2:80 80

and I've added these lines to my firewall
# NAT
${fwcmd} add divert natd all from any to any via tun0
${fwcmd} add check-state allow all from any to any

${fwcmd} add pass tcp from any to ${oip} 80 setup
${fwcmd} add divert natd all from any to any via ${oif}
${fwcmd} add check-state allow all from any to any


What is the proper way of starting that nat command at startup? Should I be using the natd.conf?
Reply With Quote