MatthewF
asked on
How to make iptables to allow only certain IP's addresses
How do config iptables to allow only certain IP's addresses
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I want to allow access to all protocol put only server ip addresses
If you see my rules, I am not restricting on protocols. For all protocols as I said, don't mention the protocol part
check
iptables -L
for see the ip tables using
iptables -L
for see the ip tables using
For example to allow ip's in the range of 192.168.1.100-192.168.1.20
iptables -A INPUT -p tcp --destination-port 22 -m iprange --src-range 192.168.1.100-192.168.1.20
Here is a nice how-to for a start..
http://www.cyberciti.biz/tips/linux-iptables-how-to-specify-a-range-of-ip-addresses-or-ports.html