On 7/16/2014 1:04 PM, [email protected] wrote:
> I'm configuring Shorewall to manage a Comcast dynamic connection.
> 
> I'm following http://shorewall.net/MyNetwork.html
> 
> Setting up the lsm-script in /lib.private the instructions show
> 
>       /lib.private
> 
>               start_lsm() {
>               ...
>                  cat <<EOF > /etc/lsm/shorewall.conf
>               ...
>               EOF
>               ...
>                  /usr/sbin/lsm /etc/lsm/lsm.conf >> /var/log/lsm
>               }
> 
> The script populates "shorewall.conf", but then execs lsm using "lsm.conf".
> 
> Seems like you'd use what you just populated.
> 
> Is this a mistake, or intended?

Did you read the part about adding the appropriate 'include' directive
in your lsm.conf file?

From the above-linked article:

"The sample lsm.conf included with the product shows some of the
possibilities for configuration. One feature that is not mentioned in
the sample is that an "include" directive is supported. This allows
additional files to be sourced in from the main configuration file."

Then:

/etc/lsm/lsm.conf:

#
# Defaults for the connection entries
#
defaults {
  name=defaults
  checkip=127.0.0.1
  eventscript=/etc/lsm/script
  max_packet_loss=20
  max_successive_pkts_lost=7
  min_packet_loss=5
  min_successive_pkts_rcvd=10
  interval_ms=2000
  timeout_ms=2000
  [email protected]
  check_arp=0
  sourceip=
  ttl=0
}

include /etc/lsm/shorewall.conf <===============


-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

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to