On Thu, 12 May 2005, Chris Robertson wrote:

I need a rule in Iptables to block that port from external inquiry, only
Squid, on the same machine, should be able to see it. How do I do that?

Something like:

iptables -A INPUT -i eth0 --dport 3128 -j REJECT

Good except that it for practical reasons need to go into the nat table just before the REDIRECT rule..


iptables -t nat -I PREROUTING -i eth0 --dport 3128 -j DROP

Regards
Henrik

Reply via email to