On 03/25/2016 09:23 AM, Tom Eastep wrote:

> Use find_first_interface_address or find_first_interface_address_if_any.
> The former terminates the program if the specified interface has no
> address while the second returns '0.0.0.0' in that case.
> 
> I'll correct the article.

Actually, a better approach is to simply use &eth0 in the ORIGDEST
column. See configuration_file_basics.htm#AddressVariables.

-Tom

PS -- I just updated the three-interface guide to use that approach.

http://www.shorewall.org/three-interface.html
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to