Go Back   DaemonForums > FreeBSD > FreeBSD Security

FreeBSD Security Securing FreeBSD.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd May 2008
nenduvel nenduvel is offline
New User
Join Date: May 2008
Posts: 1
Default flush natd rules


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

redirect_port tcp 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,

Edit/Delete Message
Reply With Quote
  #2   (View Single Post)  
Old 3rd May 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
Join Date: May 2008
Posts: 696

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.

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
natd redirect_port problems map7 FreeBSD General 7 9th June 2010 06:22 AM
pf flush persist file ijk FreeBSD Security 5 3rd February 2009 01:42 PM
Freebsd 7.0 natd problem with jail bsduser FreeBSD Installation and Upgrading 2 26th July 2008 12:40 AM
Pf need natd? TiN-MAN FreeBSD Installation and Upgrading 2 5th July 2008 08:25 PM
samba wont operate under natd/ipfw Johnny2Bad FreeBSD General 3 24th May 2008 09:46 PM

All times are GMT. The time now is 02:35 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick