Browse Source

openggsn-config: share one gprs_routing file for different machines

there's no point in having two identical gprs_routing files in the
two machine-specific directories.  So let's share one common file.
sysmo2osmo
Harald Welte 5 years ago
parent
commit
be388bd7d5
  1. 0
      recipes-config/openggsn-config/files/gprs_routing
  2. 23
      recipes-config/openggsn-config/files/sysmocom-bsc/gprs_routing

0
recipes-config/openggsn-config/files/sysmobts-v2/gprs_routing → recipes-config/openggsn-config/files/gprs_routing

23
recipes-config/openggsn-config/files/sysmocom-bsc/gprs_routing

@ -1,23 +0,0 @@
#!/bin/sh
NAME=gprs_routing
set -e
case "$1" in
start)
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
echo "Enabled masquerading"
;;
stop)
echo 0 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
esac
exit 0
Loading…
Cancel
Save