0

I need to allow only one website and to block remaining all for that I need iptable coding in Linux OS.kindly let me if any body knows.

  • First of all it's iptables and not iptable. Second, iptables is no programming language so there is no code for the end user to use. It is a tool that you can configure. Try to get your terminology right. And last, get your logic straight and don't jump to conclusions as to what tool you need BEFORE having described and investigated the problem. It leads you nowhere, ever. – Marki Apr 10 '16 at 12:19

1 Answers1

0

For that purpose iptables is not the correct tool (keep OSI in mind).

If you want to block/allow traffic to websites a proxy (ex. Squid) should do the job.

deagh
  • 2,039