Score:0

iptable rules for ACL rules between routers

cn flag

Assuming by default everything is allowed between routers. I would like to add iptable rules in "Router1" to implement ACL rules as shown in the diagram.

  • In the below image, client1 and client2 CAN establish a connection to client3 and client4.

  • client3 and client4 CANNOT establish a connection to client1 and client3.

enter image description here

In a similar way, I want to add rules in Router1, where:

  • client1 and client2 CAN establish a connection to client3 and client4
  • client1 and client2 CANNOT establish connection to client5.
  • client3 and client4 CANNOT establish connection to client1, client2, and client5.
  • client5 CAN establish connection to client1, client2, client3 and client4

enter image description here

I was trying to use this iptable rule but didnt succeed.

  • iptables -A FORWARD -s {router_network} -m conntrack --ctstate ESTABLISHED,RELATED -j DROP

Any help in letting me know what rules I need to add in Router1 to make this work will be greatly appreciated.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.