GPRS Services: Temporarily open to all
Open GPRS services and do not restart the osmo-sgsn every 24 hours. Let's see how long it runs and how everything behaves with the maximum load we can give it.
This commit is contained in:
parent
e2c3d2736c
commit
893ba49e68
3 changed files with 47 additions and 1 deletions
|
@ -134,6 +134,13 @@ class rhizo_base::openbsc {
|
||||||
content => template('rhizo_base/make_sgsn_acl_config.erb'),
|
content => template('rhizo_base/make_sgsn_acl_config.erb'),
|
||||||
mode => "0750",
|
mode => "0750",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/etc/osmocom/osmo-sgsn.cfg':
|
||||||
|
content => template('rhizo_base/osmo-sgsn.cfg.erb'),
|
||||||
|
mode => "0750",
|
||||||
|
notify => Service['osmo-sgsn'],
|
||||||
|
}
|
||||||
|
|
||||||
package { [ 'osmo-sgsn' ]:
|
package { [ 'osmo-sgsn' ]:
|
||||||
ensure => 'installed',
|
ensure => 'installed',
|
||||||
require => Class['rhizo_base::apt'],
|
require => Class['rhizo_base::apt'],
|
||||||
|
|
39
modules/rhizo_base/templates/osmo-sgsn.cfg.erb
Normal file
39
modules/rhizo_base/templates/osmo-sgsn.cfg.erb
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
!
|
||||||
|
! Osmocom SGSN configuration
|
||||||
|
!
|
||||||
|
!
|
||||||
|
log stderr
|
||||||
|
logging level set-all fatal
|
||||||
|
logging print category 1
|
||||||
|
logging print file basename last
|
||||||
|
logging print level 1
|
||||||
|
logging print extended-timestamp 1
|
||||||
|
logging level gprs error
|
||||||
|
logging level mm error
|
||||||
|
logging level llc error
|
||||||
|
line vty
|
||||||
|
no login
|
||||||
|
!
|
||||||
|
sgsn
|
||||||
|
gtp local-ip <%= @vpn_ip_address %>
|
||||||
|
ggsn 0 remote-ip <%= @ggsn_ip_address %>
|
||||||
|
ggsn 0 gtp-version 1
|
||||||
|
ggsn 0 echo-interval 60
|
||||||
|
auth-policy accept-all
|
||||||
|
gsup remote-ip 127.0.0.1
|
||||||
|
gsup remote-port 4222
|
||||||
|
authentication optional
|
||||||
|
!
|
||||||
|
ns
|
||||||
|
timer tns-block 3
|
||||||
|
timer tns-block-retries 3
|
||||||
|
timer tns-reset 3
|
||||||
|
timer tns-reset-retries 3
|
||||||
|
timer tns-test 30
|
||||||
|
timer tns-alive 3
|
||||||
|
timer tns-alive-retries 10
|
||||||
|
encapsulation udp local-port 23000
|
||||||
|
encapsulation framerelay-gre enabled 0
|
||||||
|
!
|
||||||
|
bssgp
|
||||||
|
!
|
|
@ -75,7 +75,7 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
|
||||||
# 0 */6 * * * root /usr/bin/sv restart osmo-nitb 2>&1 > /dev/null
|
# 0 */6 * * * root /usr/bin/sv restart osmo-nitb 2>&1 > /dev/null
|
||||||
|
|
||||||
# Rebuild ACL config and restart the SGSN (stopgap pre HLR solution, we loose all PDP contexts)
|
# Rebuild ACL config and restart the SGSN (stopgap pre HLR solution, we loose all PDP contexts)
|
||||||
55 2 * * * root /etc/osmocom/make_sgsn_acl_config > /etc/osmocom/osmo-sgsn.cfg ; systemctl restart osmo-sgsn
|
# 55 2 * * * root /etc/osmocom/make_sgsn_acl_config > /etc/osmocom/osmo-sgsn.cfg ; systemctl restart osmo-sgsn
|
||||||
|
|
||||||
# It's a new day....
|
# It's a new day....
|
||||||
30 5 * * * root /home/rhizomatica/bin/check_broken.sh
|
30 5 * * * root /home/rhizomatica/bin/check_broken.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue