IP Tables, How to block range of ip address from ip table
Hi, chillispot
Im using chillispot software and for that using UBUNTU server my problem is eth0 connected to Internal Network eth1 connected to WIFI Router chillipoint clients are accessing internet throw wifi... but they can able to access out internal network also, i want to prevent internal network immediately. in ip table iptables -A INPUT -s "$BLOCK_THIS_IP" -j DROP from this command i can block one ip but i want to block entire ip to block access from external clients other then gateway (192.168.1.1) Please help me out its urgent me to block and prevent accessing those wifi clients to our internal network all kind of helps highly appriciated |
Greetings, you could try something like
Code:
iptables -i eth1 -d 192.168.1.0/24 -j DROP |
hi .... thanks for your reply,
if i do that it'll block gateway also if it happen those clients cant able to talk with gateway... and i'm really not sure wheather clients need to talk with gateway for username password verification and access adsl thanks again looking some more solution help me pls |
Code:
~ $ iptables -m iprange --help |
Well if you
Code:
iptables -A INPUT -i eth1 -d 192.168.1.1 -j ACCEPT Code:
iptables -A INPUT -i eth1 -d 192.168.1.0/24 -j DROP |
All times are GMT -5. The time now is 09:16 PM. |