This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM4376: Linux Sdk version 8: iptables

Part Number: AM4376

Hello,

I am trying to set priority of iptables as below.

1) iptables -t filter -I INPUT -s 169.254.217.162 -p tcp -m multiport --dport 49152:65535 -j ACCEPT

2) iptables -t filter -I INPUT -s 169.254.217.162 -p tcp --dport 44818 -j ACCEPT

3) iptables -t filter -I INPUT -s 169.254.217.162 -p udp --dport 2222 -j ACCEPT

4) iptables -P INPUT DROP

But in tables DROP always comes first and then rest when iptables -L or iptables --list-rule command is executed.

1)how to do that?

2) where can i see the list of iptables in filesystem?

regards,

Vrund 

  • Hello Vrund,

    Please clarify which Ethernet interface you are using (PRU Ethernet or CPSW).

    Regards,

    Nick

  • PRU.

    There are two PRU ports used.

    Over which bridge is created.

    regards,

    Vrund

  • Hello Vrund,

    Just to set expectations, we do not support PRU Ethernet operating as a switch on AM335x or AM437x. Also FYI, we had to drop PRU Ethernet functionality for AM437x in Linux SDK 9.1, but we are planning to add it back for Linux SDK 10.x. So if you are using PRU Ethernet in your design, you would want to stick with SDK 8.2.

    I am not familiar with iptables. It will take a couple of days for me to look into this. Feel free to ping the thread if I have not responded again by next week.

    Regards,

    Nick

  • Hello Vrund,

    We only support questions specifically about TI hardware or software on this forum. It looks like iptables are a generic Linux software instead of anything specific to TI's hardware or software. I will not be able to offer assistance with how the iptables software works, or where iptables data is stored in a Linux system.

    If you run into any issues that DO seem related to TI's drivers or hardware, please feel free to respond here if it's the same subject, or create a new thread if it is a separate topic.

    Regards,

    Nick