Connecting to internet ... as modem or as ecm?

maybe you can skip the the iptables flush commands, or you can enter in UART console.