0

I have set of iptables rules running on Raspian RPI (Ubuntu 14.4). For example entry like this:

/sbin/iptables -A INPUT -p tcp --dport 8080 -i eth0 -m mac --mac-source 84:f3:eb:b7:45:42 -j ACCEPT

It works good on RPi. But now I want to use it in Ubuntu 16.04.6 LTS Xenial, installed in LXC container on QNAP NAS. QNAP FW is based on UBUNTU 14.4. Container and NAS have addresses from the same subnet. But when I try to run the command above on Ubuntu in container I get such error:

root@Xenial:/home/ubuntu/Pobrane# /sbin/iptables -A INPUT -p tcp --dport 8080 -i eth0 -m mac --mac-source 84:f3:eb:b7:45:42 -j ACCEPT
iptables: No chain/target/match by that name.

Currently I have no any definition in UBUNTU locacted in LXC container:

root@Xenial:/home/ubuntu/Pobrane# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

I try many syntax's and it is possible to enter such command without error but only without MAC address specification. What mistake I am doing? Any help?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.