I'm trying to drop all access to 8180 (TCP) port except for one IP.
The drop:
iptables -A INPUT -p tcp --dport 8180 -j DROP
The exception:
iptables -A INPUT -s 1.2.3.4 -p tcp --dport 8180 -j ACCEPT
Where 1.2.3.4 is the IP that is allowed to access the specific port.
What's wrong?