[K12OSN] Allow only HTTP requests

Sudev Barar sbarar at gmail.com
Tue Dec 13 04:30:38 UTC 2005


On 12/13/05, Brad Thomas <bthomas at psysolutions.com> wrote:
> Is there a setting that I can make to only allow HTTP requests on ETH1
> and block any other type of requests?
>


Easy way:
If you are using stock k12ltsp as root from a terminal give command
"setup" Choose menu firewall>customize Set eth1 as non trusted device
(default) and then set allow http Save before quitting. The command
"service iptables restart" should do the trick. Caution assuming eth0
is ltsp network device always set this as trusted device other wise
ltsp network will also come to halt.

Simpler way:
"man iptables" and edit /etc/sysconfig/iptables suitably and restart service.

In both cases take backup of /etc/sysconfig/iptables before
attampting. This way you can alsways copy back and come back to status
quo.

--
Sudev Barar
Learning Linux




More information about the K12OSN mailing list