> how do i close port 80 to all users except for a few ips ?
> the generic match
> of --dport doesn't work for me.
Why not ?
Are these users on your LAN or on the internet ?
Do these users have a fixed IP ?
iptables -P INPUT DROP
iptables -A INPUT -s-p tcp --dport 80 -j ACCEPT
...
iptables -A INPUT -s-p tcp --dport 80 -j ACCEPT
Or maybe you can use the MAC address match.
iptables -P INPUT DROP
iptables -A INPUT -m mac --mac-source-p tcp --dport 80 -j
ACCEPT
...
iptables -A INPUT -m mac --mac-source-p tcp --dport 80 -j
ACCEPT
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Langganan:
Posting Komentar (Atom)
EmoticonEmoticon