Browse Source

Merge commit '0c4a046bd5c1f790bb547f53f0b5ee049c7ab885' into dora

dora
Harald Welte 5 years ago
parent
commit
e595d424f4
  1. 0
      meta-sysmocom-bsp/recipes-config/openggsn-config/files/ggsn.conf
  2. 0
      meta-sysmocom-bsp/recipes-config/openggsn-config/files/gprs_routing
  3. 23
      meta-sysmocom-bsp/recipes-config/openggsn-config/files/sysmocom-bsc/gprs_routing

0
meta-sysmocom-bsp/recipes-config/openggsn-config/files/sysmocom-bsc/ggsn.conf → meta-sysmocom-bsp/recipes-config/openggsn-config/files/ggsn.conf

0
meta-sysmocom-bsp/recipes-config/openggsn-config/files/sysmobts-v2/gprs_routing → meta-sysmocom-bsp/recipes-config/openggsn-config/files/gprs_routing

23
meta-sysmocom-bsp/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