Chris Morley wrote:
Hi, I don't think its shorewalls job to assign interfaces. With pppd I use 'unit x' in the peers config file where x is the ppp interface number. That way I can assure right shorewall rules are applied to each interface.
I agree with Chris and Roberto.I'm not clear what exact problem Michael is trying to solve but if it involves the interface address, it is possible to store the IP address of an interface into a shell variable and to use that variable in the configuration files. There is an example in Shorewall FAQ 2.
In addition to find_first_interface_address(), there is a find_first_interface_address_if_any() function. That function will return 0.0.0.0 if the passed interface has no IPv4 address.
For more information about using shell variables, see http://www.shorewall.net/configuration_file_basics.htm#Variables
-Tom -- Tom Eastep \ The ultimate result of shielding men from the effects of Shoreline, \ folly is to fill the world with fools. Washington, USA \ -- Herbert Spencer ------------------------------------------------------------------------ http://www.shorewall.net
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
