Score:0

Block IPv6 Traffic using iptables on Linux using Layer 2 info [bad substitution/argument]

vi flag

i'm trying to block IPv6 traffic on my router's end following the tutorial here by Claudius's suggestion, with the following command:

ip6tables -I FORWARD -d ${IP(Node1)} -j REJECT

But i'm getting the output error:

bash: ${IP(Node1)}: bad substitution

Any idea how to fix this issue?

Terrance avatar
id flag
You have to supply that information. `-d` is used for the Destination of where the packet is going to. So, that would be the fixed IP of a system that it is being forwarded to. So you would replace the `${IP(Node1)}` with the IP of the Node. The first line of `ip6tables -I FORWARD -o eth0 -j REJECT` should be enough and make sure to change `eth0` to match the port or interface name of the network device. When in doubt, check the man pages. `man ip6tables`
Jess el avatar
vi flag
Much obliged. Thank you for the help.
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.