From a56e989f55d74fcdc9c91473f7b4937bd4649bdf Mon Sep 17 00:00:00 2001 From: Lionel Gauthier Date: Thu, 26 Jun 2014 09:27:37 +0000 Subject: [PATCH] git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5436 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- .../GENERIC-LTE-EPC/start_enb_and_ue_virt.bash | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/targets/PROJECTS/GENERIC-LTE-EPC/start_enb_and_ue_virt.bash b/targets/PROJECTS/GENERIC-LTE-EPC/start_enb_and_ue_virt.bash index 068999530c..15f66281d2 100755 --- a/targets/PROJECTS/GENERIC-LTE-EPC/start_enb_and_ue_virt.bash +++ b/targets/PROJECTS/GENERIC-LTE-EPC/start_enb_and_ue_virt.bash @@ -229,6 +229,21 @@ fi ip rule add fwmark 5 table lte ip route add default dev $LTEIF table lte +echo_warning "Be careful of the lines below, for a specific virtual box setting" +bash_exec "/sbin/iptables -t mangle -F" +bash_exec "/sbin/iptables -t nat -F" +bash_exec "/sbin/iptables -t raw -F" +bash_exec "/sbin/iptables -t filter -F" +bash_exec "/sbin/ip6tables -t mangle -F" +bash_exec "/sbin/ip6tables -t filter -F" +bash_exec "/sbin/ip6tables -t raw -F" +bash_exec "iptables -A OUTPUT -o eth0 -p sctp -j DROP" +bash_exec "iptables -A INPUT -i eth0 -p sctp -j DROP" +bash_exec "iptables -A FORWARD -i eth0 -p sctp -j DROP" +bash_exec "iptables -A OUTPUT -o eth1 -p sctp -j DROP" +bash_exec "iptables -A INPUT -i eth1 -p sctp -j DROP" +bash_exec "iptables -A FORWARD -i eth1 -p sctp -j DROP" + cd $THIS_SCRIPT_PATH/OUTPUT/$HOSTNAME ITTI_LOG_FILE=itti_enb_ue.$HOSTNAME.log rotate_log_file $ITTI_LOG_FILE @@ -249,4 +264,4 @@ gdb --args $OPENAIR_TARGETS/SIMU/USER/oaisim -a -u1 -l9 -K OUTPUT/$HOSTNAME/$ITT #pkill tshark -cat OUTPUT/$HOSTNAME/$STDOUT_LOG_FILE |grep 'RRC\|S1AP\|SCTP\|PDCP' > OUTPUT/$HOSTNAME/$STDOUT_LOG_FILE.filtered +cat OUTPUT/$HOSTNAME/$STDOUT_LOG_FILE |grep 'RRC\|S1AP\|SCTP\|PDCP' | grep -V 'RRC_MAC_IN_SYNC_IND' > OUTPUT/$HOSTNAME/$STDOUT_LOG_FILE.filtered