LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-07-2019, 06:09 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Rep: Reputation: 110Reputation: 110
Facebook bypasses my firewall


I am flummoxed. I run this script when I want to block my Internet connection:

#!/bin/bash
iptables -F
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

Everything stops. I can't check my email, I can't ping any address at all and I can't open any site... except Facebook. Facebook keeps opening as if noothing had happened. The Messenger won't work, but all other pages still open, even pages I don't think I ever opened before so they can't be cached.

Or can they? I just tested it here, on linuxquestions, and I can open and read threads I had never opened until now. Many of them. Does Firefox read all those posts and cache them preemptively?

I am posting this with firewall blocked. Let's see if it goes through...
 
Old 12-07-2019, 06:10 PM   #2
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Original Poster
Rep: Reputation: 110Reputation: 110
Yes, it still works. How is that possible? What am I doing wrong?

Code:
# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            

Chain FORWARD (policy DROP)
target     prot opt source               destination         

Chain OUTPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            

Chain LOGME (0 references)
target     prot opt source               destination         

Chain TRUSTED (0 references)
target     prot opt source               destination
 
Old 12-07-2019, 06:29 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by lucmove View Post
Yes, it still works. How is that possible? What am I doing wrong?

Code:
# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere        

Chain FORWARD (policy DROP)
target     prot opt source               destination         

Chain OUTPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            

Chain LOGME (0 references)
target     prot opt source               destination         

Chain TRUSTED (0 references)
target     prot opt source               destination
You, or something running on your machine, told it to ACCEPT everything...

Last edited by astrogeek; 12-07-2019 at 06:31 PM.
 
Old 12-07-2019, 06:37 PM   #4
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Original Poster
Rep: Reputation: 110Reputation: 110
Not me. Then who/what? I have no idea.

iptables -F should reset everything before the instructions to block it all.
 
Old 12-07-2019, 06:46 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by lucmove View Post
Not me. Then who/what? I have no idea.

iptables -F should reset everything before the instructions to block it all.
No one here can know, only you are sitting at the machine...

If you do iptables -F followed shortly by iptables -L, without opening anything else in between, does it flush all and remain flushed? Does it remain clear if you do nothing else? If so, do one thing at a time until it changes to try to find out what is changing it.
 
Old 12-10-2019, 03:45 PM   #6
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
A little late to the game but Facebook is a web site. ALL web traffic is stateless and there are no connections between client and web server other than those initiated by the client. Immediately after a request from the client, the server responds and that's it for the traffic. Facebook, or any web site for that matter, cannot initiate a connection to anyone.

Unless I misunderstood OPs post title...in which case "nevermind"
 
1 members found this post helpful.
Old 12-10-2019, 11:21 PM   #7
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by lucmove View Post
I am flummoxed. I run this script when I want to block my Internet connection:

#!/bin/bash
iptables -F
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

Everything stops. I can't check my email, I can't ping any address at all and I can't open any site... except Facebook. Facebook keeps opening as if noothing had happened. The Messenger won't work, but all other pages still open, even pages I don't think I ever opened before so they can't be cached.

Or can they? I just tested it here, on linuxquestions, and I can open and read threads I had never opened until now. Many of them. Does Firefox read all those posts and cache them preemptively?

I am posting this with firewall blocked. Let's see if it goes through...
How is the system that you're seeing FB pages on communicating with the Internet? If your Linux firewall is locked down as you've shown, you have a wifi router on the "clean" side of the firewall, and you're connecting to the internet through that "internal" wifi, then you do indeed have a mystery. If, on the other hand, you're using a laptop that's connecting to the wifi provided by your ISP-provided router, the firewall settings mean nothing---you're bypassing them. Are you certain this isn't the case?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_jk bypasses apache authentication t0bias Linux - Server 1 04-27-2008 07:52 PM
LXer: Linux kernel patch bypasses Barcelona/Phenom bug LXer Syndicated Linux News 0 12-09-2007 03:30 AM
Boot process bypasses amiro Debian 1 11-25-2007 10:35 PM
LXer: Web 2.0 Made Easy: How the Internet revolution bypasses the middlemen LXer Syndicated Linux News 0 06-12-2006 08:33 AM
MS Security Virus Email bypasses Procmail Filter lewt Linux - Security 3 09-24-2003 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration