I have a IP security video camera. I would like to open up a port forward on my router to the internal camera but only accept incoming connections on a limited set of about 10 unique (and non sequential) IP addresses. The incoming connection addresses are fixed and static. I don't want the entire Internet to have access.
This was easy to do using my previous Tomato based firewall because the port forwarding table allowed you to specify both external and internal IP addresses.
For example (addresses are made up):
Prot, Ext Address, Ext Port, Int Port, Int Address
TCP, 189.41.125.21, 8086, 80, 192.168.1.160
TCP, 189.41.134.215, 8086, 80, 192.168.1.160
TCP, 189.41.136.212, 8086, 80, 192.168.1.160
UDP, 189.41.125.21, 8086, 80, 192.168.1.160
UDP, 189.41.134.215, 8086, 80, 192.168.1.160
UDP, 189.41.136.212, 8086, 80, 192.168.1.160
I have a vague understanding of IPTables. How would I configure my firewall to do this?
This was easy to do using my previous Tomato based firewall because the port forwarding table allowed you to specify both external and internal IP addresses.
For example (addresses are made up):
Prot, Ext Address, Ext Port, Int Port, Int Address
TCP, 189.41.125.21, 8086, 80, 192.168.1.160
TCP, 189.41.134.215, 8086, 80, 192.168.1.160
TCP, 189.41.136.212, 8086, 80, 192.168.1.160
UDP, 189.41.125.21, 8086, 80, 192.168.1.160
UDP, 189.41.134.215, 8086, 80, 192.168.1.160
UDP, 189.41.136.212, 8086, 80, 192.168.1.160
I have a vague understanding of IPTables. How would I configure my firewall to do this?