LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-29-2012, 10:24 PM   #1
hemite
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Rep: Reputation: Disabled
Redirecting all traffic through another port.


I have a basic understanding of how internet ports work, but obviously not enough to help me solve this problem.

Basically I'm located at a university, and the only ports available to me are ports that are open to me, as far as I know, are 25 (SMTP) and 1029. Also I assume 8000 - 8999 or how else would I be writing this post?

This is causing a problem whenever I try to host anything, I clearly can't make any port that i want open.

Would someone please explain to me (preferably as if I was incompetent) how internet ports work. Why can I not route all traffic manually from my computer to whatever port I want. Why can't I just host everything out of port 8000. Why do I have to deal with the router whenever I want to "port forward".
 
Old 01-30-2012, 01:57 AM   #2
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
If I'm not wrong, you are accessing Internet through university's systems, so the access is granted by those systems. The fact that you can connect to a port in one way doesn't mean you can connect to that same port the other way.

A connection is stablished through two ports, one through wich connection is originated and one that receives it. Usually, the originating port is provided by the system and you don't have control on it (it may appear as a random number to you), on the other side, the destination port should be always the same, otherwise you wouldn't know where to stablish connection to.

Firewalls allow control on communications in both ways, so you can limit access to a port outside your network or you can limit access to a port inside the network. So, you can surf the net through port 80 but that doesn't mean you can host a web server in port 80.

You have to deal with the router because it is the one that gives you access to the outside. You could probably configure your router to route all trafic to a DMZ machine. That way you won't need the router to port forward, and you will have all Internet traffic arriving to your machine, so that machine should have a firewall set up for the incoming traffic if you don't want surprises. (Here is where I get lost, are you accessing Internet through University's machines or are you accessing through a DSL router? if you have control of the router you can configure it as you please.)
 
1 members found this post helpful.
  


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
iptables is not redirecting traffic anandnenwani Linux - Newbie 6 11-19-2011 11:34 PM
Redirecting local traffic from port 80 to 8080 Last Attacker Linux - Networking 11 02-03-2009 12:52 PM
redirecting traffic Tareq85 Linux - Networking 1 05-28-2008 03:47 PM
Redirecting all port 80 traffic to SSL s0n|k Linux - Software 1 10-29-2007 11:44 AM
redirecting vpn traffic brb5548 Linux - Networking 1 07-01-2003 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration