94 reputation
5
bio website
location
age
visits member for 2 years, 2 months
seen Jul 17 at 20:38

Feb
6
awarded  Teacher
Jan
25
comment iptables rules whitelist web traffic
Problem solved. Thanks anyway Raj..
Sep
27
awarded  Talkative
Sep
27
awarded  Supporter
Sep
27
revised looking for iptables example
added 61 characters in body
Sep
27
comment iptables rules whitelist web traffic
I added the output in the post. I am running this on my machine, not the network gateway.
Sep
27
revised iptables rules whitelist web traffic
@Khaled added iptables -nL output after running the script
Sep
27
comment looking for iptables example
I tried the method you indicated with iptables, and it works ! Thank you ! But It seems if I rerun it, and try to access serverfault.com from chrome, the request just .. lags, so blank screen and still loading. if I curl serverfault.com it works on the commandline but the browser doesn't want to load the page. if I do /etc/init.d/networking restart while the page is loading, the page loads in chrome also.. but that's just for one page, I can't do that each time..
Sep
27
comment looking for iptables example
does it make sense to have a squid locally on my workstation ?
Sep
27
awarded  Commentator
Sep
27
comment iptables rules whitelist web traffic
I don't mind re-running my script weekly for example.. But at the moment if I run the script that I wrote above, everything stops working(I can't access any website)
Sep
27
comment iptables rules whitelist web traffic
Ok, so what do I write in a script to use that ? filter is not iptables is it ? Do they have the same syntax ? How do I use what you wrote ?
Sep
27
comment iptables rules whitelist web traffic
I posted the output of iptables -L , please refresh
Sep
27
revised iptables rules whitelist web traffic
added default rules output of `iptables -L` asked by Raj
Sep
27
comment iptables rules whitelist web traffic
I don't understand your example. Can you write a working example ? Thanks
Sep
27
asked looking for iptables example
Sep
27
comment iptables rules whitelist web traffic
So why line number 8 ? Can you please give me an example of an iptables script that restrict access to anything but two websites ?
Sep
27
comment iptables rules whitelist web traffic
I don't understand what you wrote, can you please write bash that does this ? Thanks
Sep
27
comment iptables rules whitelist web traffic
what does -I INPUT 8 mean ? is that a typo ?
Sep
27
comment iptables rules whitelist web traffic
Why won't it be able to detect DNS-IP changes ? Does it have a cache and it stores there the IP for each domain name ? Can't I refresh that cache somehow ? But still, my main problem at this moment is not performance, it is that I can't access anything after I run the script I wrote(I can't access any website, not even ping them, nothing)