On 03/25/2016 05:00 AM, Csányi Pál wrote: > Hi, > > I'm following http://www.shorewall.net/three-interface.htm > > At header: > Example 1. You run a Web Server on DMZ Computer 2 and you want to > forward incoming TCP port 80 to that system > > it is advised to Include the following in /etc/shorewall/params: > ETH0_IP=$(find_interface_address eth0) > > I did so but when run 'shorewall check' I get: > # shorewall check > /etc/shorewall/params: line 28: find_interface_address: command not found > > What can I do to solve this problem? >
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. -Tom -- 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 \________________________________________________ ------------------------------------------------------------------------------ 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
