Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How does masquerade know the interface?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DaveArb
Guru
Guru


Joined: 29 Apr 2004
Posts: 510
Location: Texas, USA

PostPosted: Mon Aug 15, 2005 2:27 pm    Post subject: Reply with quote

tommy_fila wrote:
I connect to port 80 of an evil website. In order to connect in the first place, I have to open a port on my computer. So the web server replies back to the port I opened. Everything correct so far?


Reasonably correct, although the word I've bolded in your text is an unusual use. Generally, if someone says they have opened a port, they mean that the port is allowed to be connected -to-. In this case, the port is not open to be connected to by any incoming request, it is a port that is in use for a current connection.

tommy_fila wrote:
Wouldn't the web server be able to send something through the open port? Or does the port know if the incoming traffic is actually not a response from the webserver, but a malicious file.


Yes, in fact if it cannot respond to that port, your web browsing is going to consist purely of timeout messages. ;)

Example:
You request to connect to a web server, forums.gentoo.org. You do this with the Firefox browser. It picks a port (ex: 15241), creates a connection request to forums.gentoo.org's port 80 (technically, the OS may do some things listed under "it", it makes little difference for this example. ) Once connected, you effectively have a direct connection between Firefox on your computer and Apache (probably? I haven't bothered to check) on one of the forum computers. What the forum computer sends, barring vulnerabilities, is going to be received by Firefox. If you watch the vulnerabilities list and update accordingly (or just update), you're as safe as reasonable, IMHO. Going any further requires setting up things like virus-checking proxies like sschlueter mentioned, which in my experience is quite expensive in processing power if nothing else.

Dave
Back to top
View user's profile Send private message
tommy_fila
Guru
Guru


Joined: 19 Nov 2003
Posts: 450
Location: Phoenix, AZ

PostPosted: Mon Aug 15, 2005 9:00 pm    Post subject: Reply with quote

Great responses just keep coming in. Thanks to both DaveArb and sschlueter for giving me light in the vast darkness of computer networking.

Since programs like Snort and anti-virus software seem like an overkill, I'm going to be happy with my iptables setup. It's nice to finally understand what all the chains actually accomplish.

Thanks again!
_________________
"What goes on in life, that goes for eternity."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum