Blocking internet access on a centos 6 machine
I am currently working on a centos 6 machine that has its network configured, and access to the internet. What I am looking to test is for the machine to still have the same network configured but block access to the internet.
Can I please get some assistance on how to get this done? |
I would think that could be achieved by a simple edit of /etc/resolv.conf
|
Thank you Habitual, I'll try changing that and also my gateway to the internet and see if that gives me what I am looking for.
|
Quote:
|
Get rid of gateway address.
Could go wild and make hosts file only set of ip's allowed. Other firewall rules, block ports and such. |
Yeah, just add:
/sbin/ip route del default to /etc/rc.local |
...or you could simply pull the Ethernet cable if any?
Quote:
|
All times are GMT -5. The time now is 02:01 AM. |