Quote:
Originally Posted by win32sux
something like this should work:
Code:
iptables -I OUTPUT -p TCP -d ! xxx.xxx.xxx.xxx -j REJECT
repeat as necessary for each ip address you want to be allowed... you can also use a domain name (such as cnn.com, for example) but:
this kinda thing is better done with a proxy server, unless you are 100% positive the IP address of the two websites will not change...
|
I have tried this and set xxx.xxx.xxx.xxx to be the IP
address of a proxy server I was using and the iptables
command seems to work.
When I tried to visit another site, the browser would just
hang. Is there anyway to make it so that rather than timeouts
happening, that the connection drops are immediate? i.e. the
browser is more responsive?
I would prefer that it be obvious to the user that only one
or two websites are accessible and nothing else is accessible.
Thank you.