ll.net/configuration_file_basics.htm#Variables.
> 
> Ahhh.  &<ifname>?  Note that those first three variables in my list
> above are interface names not their addresses.  The .ipaddr ones are
> addresses.  Can I assume these runtime variables will work for
> shorewall-lite installations?

Yes.

> 
>> Shorewall will detect the gateway addresses for you and store them in
>> shell variables in the generated script, but so far I haven't
>> implemented gateway Runtime Address Variables, though. Not hard to do,
>> though...
> 
> Is this answering my question about application in shorewall-lite
> configurations perhaps?

Yes.
>  
> I guess ultimately it would be nice to generalize my above ssh-and-eval
> for an arbitrary list of <variable>=<the-result-of-some-command-on-gateway>
> but with optimizing the remote executions into a single round-trip.
> 
> The above trick does work though it not entirely straightforward for
> the average user to figure out.

You could run a script on the remote system that simply returned a list
of assignment statements separated by semicolons or newlines that you
could then just source locally.

-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 \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to