I edited iptables so that when the VPN service is disconnected, no program will access the internet.
Well, I did an experiment. I disconnected the VPN service manually and immediately did a ping by issuing the following command:
sudo ping www.yahoo.com
Below are the results:
PING ds-any-fp3-real.wa1.b.yahoo.com (206.190.36.45) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
^C
--- ds-any-fp3-real.wa1.b.yahoo.com ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 7056ms
Was any data including geolocation information sent out from my computer and received by the destination party during the ping session?
www.yahoo.com
was resolved to an IP, so unless your DNS server is local, information has been sent out. – Alaa Ali Jun 02 '13 at 15:234.2.2.2
for example, it'll definitely go out on the internet to get the IP of yahoo, but if your configured DNS is your router (which is local, and most likely the case), then your computer went to the router and asked for the IP of yahoo. To find out what your configured DNS is, docat /etc/resolv.conf'. If it reads
nameserver 127.x.x.x, then do
nmcli dev list iface eth0 | grep DNS`, that's your configured DNS server(s). – Alaa Ali Jun 03 '13 at 05:21ping
program all together is denied everything. And since your computer did find the IP of yahoo, it means that you didn't block DNS. Which brings us to Eric's answer. – Alaa Ali Jun 03 '13 at 05:26