change ip without restart

Sten Daniel Sørsdal sten.daniel.sorsdal at wan.no
Wed Jul 2 01:19:26 PDT 2003


> allo all,
> is there scripts or commands to change ip (on the fly) 
> without restart pc ..
> specially with ipfw and natd 
> when i change the ip.. client behind firewall can't connect 
> to outsides 
>  
> thanks
> -sn-
> 

IPFW/IPFW2 supports the source/destination of "me". Example;

allow tcp from me to any 80
allow tcp from any 80 to me

NATD has the option "dynamic" which monitors your interface for IP changes, interface specified by "interface" option.

I hope this would be of help.

- Sten


More information about the freebsd-ipfw mailing list