From b52ba9e41e18274da4a05ffb74a57ce6ff84b0d4 Mon Sep 17 00:00:00 2001 From: joereith Date: Mon, 14 Jun 2021 12:51:13 -0400 Subject: [PATCH 1/2] Update srsepc_if_masq.sh This allows bi-directional communications with a COTS UE. --- srsepc/srsepc_if_masq.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srsepc/srsepc_if_masq.sh b/srsepc/srsepc_if_masq.sh index e62a0c8772..2e9f14daee 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 + From b0c7c96c2c5617f143aec078004e4605a7e6609f Mon Sep 17 00:00:00 2001 From: joereith Date: Mon, 14 Jun 2021 13:17:50 -0400 Subject: [PATCH 2/2] Update srsepc_if_masq.sh Sorry, added an extra character that needed to be removed. --- srsepc/srsepc_if_masq.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsepc/srsepc_if_masq.sh b/srsepc/srsepc_if_masq.sh index 2e9f14daee..6d9e837f95 100755 --- a/srsepc/srsepc_if_masq.sh +++ b/srsepc/srsepc_if_masq.sh @@ -34,6 +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 $1 -o srs_spgw_sgi -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i srs_spgw_sgi -o $1 -j ACCEPT