hi
how can i block a website for a particular ip in iptables only.
block a website
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re: block a website
Dear venky145,
Salam,
# iptables -A INPUT -p tcp --dport 80 -d www.aol.com -j REJECT
Best Regards.
Salam,
Below command may help you.venky145 wrote:how can i block a website for a particular ip in iptables only.
# iptables -A INPUT -p tcp --dport 80 -d www.aol.com -j REJECT
Best Regards.
Farrukh Ahmed
Re: block a website
iptables -A OUTPUT -p tcp --dport 80 -d www.aol.com -j REJECTLinuxFreaK wrote:Dear venky145,
Salam,
Below command may help you.venky145 wrote:how can i block a website for a particular ip in iptables only.
# iptables -A INPUT -p tcp --dport 80 -d www.aol.com -j REJECT
Best Regards.
block site
hi
i want to block site for particular ip only not for entire pool. and its only in iptables not in suid.
i want to block site for particular ip only not for entire pool. and its only in iptables not in suid.
take a few minutes to read iptable's documentation. google for "netfilter howto".
Code: Select all
iptables -A FORWARD -p tcp -s 192.168.0.10 --dport 80 -d www.aol.com -j REJECT
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact: