diff --git a/docs/FAQ.xml b/docs/FAQ.xml index 7e521b119..363d2ccf8 100644 --- a/docs/FAQ.xml +++ b/docs/FAQ.xml @@ -683,6 +683,15 @@ DNAT loc loc:192.168.1.5 tcp www - Using this technique, you will want to configure your DHCP/PPPoE/PPTP/… client to automatically restart Shorewall each time that you get a new IP address. + + + For optional interfaces, use the function find_first_interface_address_if_any() + rather than find_first_interface_address(). The former + will return 0.0.0.0 if the interface has no configured IP address; + the latter terminates the calling program. + @@ -802,6 +811,15 @@ DNAT loc dmz:192.168.2.4 tcp 80 - and shorewall[-lite] restore. + + + For optional interfaces, use the function find_first_interface_address_if_any() rather + than find_first_interface_address(). The former + will return 0.0.0.0 if the interface has no configured IP address; + the latter terminates the calling program. +