I'm trying to allow access to certain ports on the server, via only one of the server IP addresses.
So for example if the server has two IP addresses: 18.104.22.168 22.214.171.124
I only want for example ports 25, 26 to be accessible via 126.96.36.199. I'm not trying to prevent any external IP addresses from accessing the ports, just trying to make sure that they can only access the ports on a certain IP address on the server.
I've been trying to write this using iptables, but I've so far been unsuccessful - I was wondering if anyone could help?