hi!!!
how can i allow a port to a certain IP add at my localnetwork
open port 1036-1050 and 8080 for IP 192.168.0.10 and the rest of the network IP add can only access port 8080. is it possible?
--------xxxxxxxxxx---------
let us say that eth1 is bind to your local network
iptables -A INPUT -i eth1 -p tcp -m tcp -d 192.168.0.10 --dport 1036:1051 -j ACCEPT
for the port 8080 just change 1036:1051 ---> 8080
also you should have an output rule after this just replace -i --> -o , -d --> -s , --dport --> --sport
for the other network (add this before at the top of the first rule)
iptables -A INPUT -i eth1 -p tcp -m tcp -d 192.168.0.1/xx --dport 8080 -j ACCEPT
again just edit same as the above mention.
at the last line add the DROP all rule