Computing.Net > Forums > Networking > change a port

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

change a port

Reply to Message Icon

Name: newslacker
Date: September 8, 2006 at 16:32:54 Pacific
OS: Slackware 10.2
CPU/Ram: Pentium-MMX/128
Product: Custom/1997
Comment:

I posted this in the linux forum a few days ago, but didnt get a response. Maybe somehere can help me out?

I am new to Linux and it's firewall, and I am trying to get the TCP packets of a program to go through my proxy server. How exactly do i do this? Is it possible with iptables or ipchains without completly reconfiguring my system as a router? Is there a simple program that can do it? I need to change the destination address and port. I know the address and port the program is sending to and what that needs to be changed to. However, the source port on my machine is randomly selected by the program, so i cannot use a program like desproxy or rinetd. The damn prog simply selects a different port.



Sponsored Link
Ads by Google

Response Number 1
Name: don2006
Date: September 8, 2006 at 19:26:46 Pacific
Reply:

First of all, destination ports are on the server. Your Linux box is a client, not a server. Both Unix and Windows use random source ports. You can't change a port on a remote server.


0

Response Number 2
Name: don2006
Date: September 10, 2006 at 16:39:02 Pacific
Reply:

I found a tool you might want to play with. It's called FPipe from www.foundstone.com
Go to free tools.


0

Response Number 3
Name: newslacker
Date: September 11, 2006 at 13:39:17 Pacific
Reply:

I dont want to change to port on the server, I want to change the outgoing port on my machine based on the destination port


0

Response Number 4
Name: jefro
Date: September 11, 2006 at 15:31:56 Pacific
Reply:

NAT's are really PAT's. Not only can you change network address but you can change network ports with a NAT. All linux distro's can be setup to run a nat. Almost all newer home/SOHO internet router's support complex natting.

You can even run a linux virtual machine within the linux setup to both firewall and nat.


0

Response Number 5
Name: don2006
Date: September 11, 2006 at 17:53:40 Pacific
Reply:

Look at FPipe that I mentioned in the post above. You can control the source port.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: change a port

Changing a hub for a switch www.computing.net/answers/networking/changing-a-hub-for-a-switch/9005.html

changing a workstation on a network www.computing.net/answers/networking/changing-a-workstation-on-a-network/23316.html

How do you open a port? www.computing.net/answers/networking/how-do-you-open-a-port/13994.html