LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-06-2008, 03:14 PM   #1
olddocks
LQ Newbie
 
Registered: Dec 2006
Posts: 23

Rep: Reputation: 15
Inbound vs Outbound ports?


what is the difference between inbound (ingress) and outbound(egress) in tcp?

i am using apf firewall, just confused about opening port 22 (SSH) for both inbound and outbound.

i experimented only allowing inbound and SSH works fine. But then again , how do i understand inbound and outbound?
 
Old 02-06-2008, 03:20 PM   #2
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 517

Rep: Reputation: 39
Hi,
If its anything like iptables with inbound and outbound. Inbound is connections coming to the device from remote locations(including the localhost). Outbound is if the localhost was going to send data packets to a destination port of 22(ssh) those packets can be stopped and dropped. Meaning you could stop anyone connecting to port 22 on a remote device from the localhost, not always that useful as of course ssh and most server services can run on any port number you specify as long as its free. All depends on what you might use it for

cheers
Hope its useful
 
Old 02-06-2008, 03:38 PM   #3
olddocks
LQ Newbie
 
Registered: Dec 2006
Posts: 23

Original Poster
Rep: Reputation: 15
wonderful answer thanks

i am using putty to connect to ssh. so that means putty is also running at 22 in my windows xp computer or it connects through port 80. i am remotely logging to my server.

what all services in linux server require both inbound and outbound?

Last edited by olddocks; 02-06-2008 at 03:39 PM.
 
Old 02-10-2008, 12:19 AM   #4
t1n0m3n
Member
 
Registered: Nov 2004
Distribution: Kubuntu 7.10
Posts: 69

Rep: Reputation: 15
Point of view from the client:
Connecting to an SSH server would be an outbound connection.

Point of view from the server:
A client connecting to you would be an inbound connection.

Telling APF (that is running on your Linux box) to allow port 22 inbound is basically telling it that you have an SSH server running on your Linux box and want others to get a shell that is running on your Linux box.
Telling APF that you want to allow outbound connections means that you want to connect from your Linux box to an SSH server running elsewhere (perhaps on your XP box?)

Last edited by t1n0m3n; 02-10-2008 at 12:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
linux multi wan (separate inbound and outbound) wartelz Linux - Networking 1 01-11-2007 12:40 AM
Suspicious Inbound/Outbound traffic dimitris.kalamaras Linux - Security 5 04-04-2006 09:30 AM
Newbie:What are inbound and outbound memory windows? halturata Programming 3 04-03-2006 02:10 PM
catch all inbound and outbound emails mitzadej Linux - Software 1 04-03-2006 11:56 AM
Inbound/Outbound email messages full control miguel Linux - General 0 05-07-2002 11:36 AM


All times are GMT -5. The time now is 01:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration