PDA

View Full Version : flush natd rules


nenduvel
05-03-2008, 08:42 PM
hello,

i'm using port forwarding with freebsd. i have an /etc/natd.conf file with

redirect_port tcp 192.168.0.4:80 80

when i try to change the address (i moved my webserver) and restart the network with "/etc/netstart restart" , the natd process complains. address allready in use.

rebooting, flushes the natd rules, and this solves the problem. can i also do this at runtime?

or how can i flush my natd-rules without rebooting my system.

thanks in advance,

nenduvel
Edit/Delete Message

phoenix
05-03-2008, 09:59 PM
Do a pgrep -lf natd or ps ax | grep natd to see what the full natd commandline.

Then use pkill natd to terminate the existing natd process, wait 30 seconds for it to actually stop, and then run the command-line manually with the new IP.