diff --git a/srsepc/srsepc_if_masq.sh b/srsepc/srsepc_if_masq.sh index e62a0c8772..6d9e837f95 100755 --- a/srsepc/srsepc_if_masq.sh +++ b/srsepc/srsepc_if_masq.sh @@ -34,3 +34,6 @@ echo "Masquerading Interface "$1 echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward 1>/dev/null sudo iptables -t nat -A POSTROUTING -o $1 -j MASQUERADE +sudo iptables -A FORWARD -i $1 -o srs_spgw_sgi -m state --state RELATED,ESTABLISHED -j ACCEPT +sudo iptables -A FORWARD -i srs_spgw_sgi -o $1 -j ACCEPT +