Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a station that has port X opened to the outside, on the local machine I want to forward data to port Y on the same network interface. BUT, I want port Y to be hidden from outside. Is this possible? I am on Debian EDIT: For ex. I want that all traffic that comes on port 22 to be seen as coming from port 8000.


migration rejected from Jul 2 '13 at 10:37

This question came from our site for system and network administrators. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as unclear what you're asking by Scott, gronostaj, Sathya Jul 2 '13 at 10:37

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

I am very confused about what you're asking. Are you saying you want to forward traffic from your machine to some other machine, and have your machine remain unreachable from the internet? – Robbie Mckennie Jun 21 '13 at 10:16
No, to the same computer. Edited my question. – Alexandru C. Jun 21 '13 at 12:20
Umm… Get a firewall and configure it to allow port X and block port Y? If you have iptables, you should be able to use that. – Scott Jun 21 '13 at 23:24
By the way, your edit doesn’t make the question any clearer, AFAICT (as far as I can tell). My interpretation of the first release of your question is that you want to do something (hypothetically) like running an FTP server (which listens on port 21), but make it accessible to outside clients on port 4321, and block port 21 connection attempts coming in to your network from outside. If that’s not what you mean, please clarify some more. – Scott Jun 21 '13 at 23:26
I have a feeling there's a linguistic problem here – Robbie Mckennie Jun 22 '13 at 13:28

Browse other questions tagged .