> In the remote compile/push case, from my desktop
Reading at
http://shorewall.net/manpages/shorewall.html
this
sh shorewall remote-reload -c -s ${MY_FIREWALL}
is equivalent to
/sbin/shorewall compile -e directory directory/firewall && \
scp directory/firewall directory/firewall.conf \
root@${MY_FIREWALL}:/var/lib/shorewall-lite/ && \
ssh root@${MY_FIREWALL} '/sbin/shorewall-lite reload'
I suppose I could use the expansion instead, modified to
/sbin/shorewall compile -e directory directory/firewall && \
scp directory/firewall directory/firewall.conf \
root@${MY_FIREWALL}:/var/lib/shorewall-lite/ && \
ssh root@${MY_FIREWALL} 'MY_CURRENT_IP=$(cat /etc/MY_CURRENT_IP)
/sbin/shorewall-lite reload'
although I'm not sure about the syntax fcor the remote expansion of
$(cat /etc/MY_CURRENT_IP)
Is that modified expansion the best way to do that? Or is there a way to
modify the command itself
sh shorewall remote-reload -c -s ${MY_FIREWALL}
?
DT
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users